#271C2B Color Information

Hex color code: #271C2B

The hex color #271C2B is a rich purple with RGB values of (39, 28, 43) and HSL of (284°, 21%, 14%). It is often used for branding and logos.

Try:
Color NameDark Slate Gray
HEX
#271C2B
RGB
39, 28, 43
HSL
284°, 21%, 14%
CMYK
9%, 35%, 0%, 83%

Shades

CSS Usage
color: #271C2B;
background-color: #271C2B;
border-color: #271C2B;
box-shadow: 0 0 10px #271C2B;
border: 2px solid #271C2B;
Tailwind Usage
bg-[#271C2B]
text-[#271C2B]
border-[#271C2B]
shadow-[0_0_10px_271C2B]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #271C2B, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #271C2B; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #271C2B; color: #FFFFFF; }

Text Highlight

The quick brown fox jumps over the lazy dog. highlighted text example shows how the color looks as a text highlight.

Card

Card Title

This card uses your color as a border accent.

.card-accent { border: 2px solid #271C2B; background-color: #271C2B15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #271C2B20; border-left: 4px solid #271C2B; }

Link / Accent

This is a paragraph with a link using your color. The color can be applied to interactive elements.

a { color: #271C2B; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #271C2B in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

39, 28, 43

Red: 39 / Green: 28 / Blue: 43

HSL

284°, 21%, 14%

Hue: 284° / Saturation: 21% / Lightness: 14%

CMYK

9%, 35%, 0%, 83%

Cyan: 9% / Magenta: 35% / Yellow: 0% / Key: 83%

What color is #271C2B?

#271C2B is a very dark shade associated with sophistication and elegance.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #271C2B to RGB:

rgb(39, 28, 43)HEX to RGB Converter →

HEX to HSL

Convert #271C2B to HSL:

hsl(284, 21%, 14%)RGB to HSL Converter →

HEX to CMYK

Convert #271C2B to CMYK:

cmyk(9%, 35%, 0%, 83%)Color Converter →

Color Meaning and Usage

#271C2B is a dramatic purple color with RGB values of 39, 28, 43 and HSL of 284°, 21%, 14%. This very dark shade evokes sophistication and elegance, making it suitable for typically applied in digital products. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #271C2B is #202B1C, creating high-contrast pairings. For softer combinations, try analogous colors like #201C2B.

Use #271C2B in CSS: color: #271C2B or background-color: #271C2B. Create palettes with Color Palette Generator or check contrast with Contrast Checker.

Contrast with #271C2B

Sample text on this color - The quick brown fox jumps over the lazy dog.

Contrast Ratio: 1.29:1
WCAG AA: Fail
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #271C2B?

#271C2B is a dramatic purple color - a very dark shade that evokes sophistication and elegance.

What is the RGB value of #271C2B?

#271C2B in RGB is (39, 28, 43) - 39 red, 28 green, and 43 blue.

How to use #271C2B in CSS?

Use #271C2B directly in your CSS properties like color or background-color.

What colors go well with #271C2B?

#202B1C (complementary), #201C2B (analogous), and #000000 (lighter shade) work well with #271C2B.