#271E34#271E34
#271E34 is a dark, muted violet. Relative luminance 0.016; OKLCH L 25.6% C 0.042 H 302.3°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).
Color values
| HEX | #271E34 |
|---|---|
| RGB | rgb(39, 30, 52) |
| HSL | hsl(265, 27%, 16%) |
| HSV | hsv(265, 42%, 20%) |
| CMYK | cmyk(25%, 42.3%, 0%, 79.6%) |
| CIE-LAB | lab(13.28, 9.99, -12.85) |
| CIE-LCH | lch(13.28, 16.28, 307.86°) |
| OKLab | oklab(25.64% 0.0225 -0.0356) |
| OKLCH | oklch(25.64% 0.042 302.3) |
| XYZ | xyz(1.9207, 1.6078, 3.4573) |
| Luminance | 0.0161 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Navy Blue
#1B2A4A
ΔE00 9.79
Midnight
#03012D
ΔE00 10.28
Navy (survey)
#01153E
ΔE00 10.35
Dark Navy Blue
#00022E
ΔE00 10.68
Eggplant
#380835
ΔE00 11.18
Dark
#1B2431
ΔE00 11.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271E34 #2B341E
analogous
#1E2034 #271E34 #321E34
triadic
#271E34 #34271E #1E3427
tetradic
#271E34 #341E20 #2B341E #1E3432
square
#271E34 #341E20 #2B341E #1E3432
split-complementary
#271E34 #34321E #20341E
monochromatic
#0F0B13 #0F0B13 #271E34 #44345B #614B82
Accessibility & contrast
On white
15.89
#271E34 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.32
#271E34 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271E34
15.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271E34 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271E34 | 1.00 | 15.89 | 1.32 | 15.89 |
| #FFFFFF | 15.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#192235
Deuteranopia (green-blind)
#1B2233
Tritanopia (blue-blind)
#252126
Achromatopsia (no color)
#222222
Design tokens & code
CSS
--color: #271e34; /* rgb */ color: rgb(39, 30, 52); /* oklch */ color: oklch(25.6% 0.042 302.3);
Tailwind
colors: {
custom: {
50: '#61596b',
500: '#271e34',
950: '#000000',
},
}SCSS
$custom: #271e34; $custom-light: #61596b; $custom-dark: #000000;
JSON
{
"hex": "#271e34",
"rgb": {
"r": 39,
"g": 30,
"b": 52
},
"hsl": {
"h": 264.545,
"s": 26.829,
"l": 16.078
},
"oklch": {
"l": 0.25635,
"c": 0.04214,
"h": 302.3
},
"luminance": 0.01608
}Semantic roles & 50–950 ramp
primary
#271E34
secondary
#5A6747
accent
#C3659C
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050306
muted
#79787A