#271F33#271F33
#271F33 is a dark, muted violet. Relative luminance 0.017; OKLCH L 25.8% C 0.038 H 302.2°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).
Color values
| HEX | #271F33 |
|---|---|
| RGB | rgb(39, 31, 51) |
| HSL | hsl(264, 24%, 16%) |
| HSV | hsv(264, 39%, 20%) |
| CMYK | cmyk(23.5%, 39.2%, 0%, 80%) |
| CIE-LAB | lab(13.53, 8.97, -11.74) |
| CIE-LCH | lch(13.53, 14.78, 307.38°) |
| OKLab | oklab(25.81% 0.0204 -0.0324) |
| OKLCH | oklch(25.81% 0.038 302.2) |
| XYZ | xyz(1.9241, 1.6503, 3.3485) |
| Luminance | 0.0165 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Navy Blue
#1B2A4A
ΔE00 9.67
Dark
#1B2431
ΔE00 10.53
Navy (survey)
#01153E
ΔE00 10.79
Midnight
#03012D
ΔE00 10.81
Dark Navy Blue
#00022E
ΔE00 11.16
Eggplant
#380835
ΔE00 11.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271F33 #2B331F
analogous
#1F2133 #271F33 #311F33
triadic
#271F33 #33271F #1F3327
tetradic
#271F33 #331F21 #2B331F #1F3331
square
#271F33 #331F21 #2B331F #1F3331
split-complementary
#271F33 #33311F #21331F
monochromatic
#0F0C13 #0F0C13 #271F33 #443659 #614D7F
Accessibility & contrast
On white
15.79
#271F33 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.33
#271F33 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271F33
15.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271F33 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271F33 | 1.00 | 15.79 | 1.33 | 15.79 |
| #FFFFFF | 15.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B2234
Deuteranopia (green-blind)
#1C2332
Tritanopia (blue-blind)
#252226
Achromatopsia (no color)
#232323
Design tokens & code
CSS
--color: #271f33; /* rgb */ color: rgb(39, 31, 51); /* oklch */ color: oklch(25.8% 0.038 302.2);
Tailwind
colors: {
custom: {
50: '#615a6a',
500: '#271f33',
950: '#000000',
},
}SCSS
$custom: #271f33; $custom-light: #615a6a; $custom-dark: #000000;
JSON
{
"hex": "#271f33",
"rgb": {
"r": 39,
"g": 31,
"b": 51
},
"hsl": {
"h": 264,
"s": 24.39,
"l": 16.078
},
"oklch": {
"l": 0.25812,
"c": 0.03829,
"h": 302.2
},
"luminance": 0.0165
}Semantic roles & 50–950 ramp
primary
#271F33
secondary
#5A6648
accent
#C1679D
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#050306
muted
#79787A