#271F35#271F35
#271F35 is a dark, muted violet. Relative luminance 0.017; OKLCH L 25.9% C 0.042 H 300.2°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).
Color values
| HEX | #271F35 |
|---|---|
| RGB | rgb(39, 31, 53) |
| HSL | hsl(262, 26%, 16%) |
| HSV | hsv(262, 42%, 21%) |
| CMYK | cmyk(26.4%, 41.5%, 0%, 79.2%) |
| CIE-LAB | lab(13.64, 9.56, -13.00) |
| CIE-LCH | lch(13.64, 16.14, 306.34°) |
| OKLab | oklab(25.93% 0.021 -0.036) |
| OKLCH | oklch(25.93% 0.042 300.2) |
| XYZ | xyz(1.9691, 1.6683, 3.5858) |
| Luminance | 0.0167 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Navy Blue
#1B2A4A
ΔE00 9.33
Navy (survey)
#01153E
ΔE00 10.20
Midnight
#03012D
ΔE00 10.30
Dark Navy Blue
#00022E
ΔE00 10.67
Dark
#1B2431
ΔE00 10.87
Dark Navy
#000435
ΔE00 11.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271F35 #2D351F
analogous
#1F2235 #271F35 #321F35
triadic
#271F35 #35271F #1F3527
tetradic
#271F35 #351F22 #2D351F #1F3532
square
#271F35 #351F22 #2D351F #1F3532
split-complementary
#271F35 #35321F #22351F
monochromatic
#0E0B13 #0E0B13 #271F35 #43365C #604C82
Accessibility & contrast
On white
15.75
#271F35 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.33
#271F35 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271F35
15.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271F35 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271F35 | 1.00 | 15.75 | 1.33 | 15.75 |
| #FFFFFF | 15.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A2336
Deuteranopia (green-blind)
#1B2334
Tritanopia (blue-blind)
#242327
Achromatopsia (no color)
#232323
Design tokens & code
CSS
--color: #271f35; /* rgb */ color: rgb(39, 31, 53); /* oklch */ color: oklch(25.9% 0.042 300.2);
Tailwind
colors: {
custom: {
50: '#615a6c',
500: '#271f35',
950: '#000000',
},
}SCSS
$custom: #271f35; $custom-light: #615a6c; $custom-dark: #000000;
JSON
{
"hex": "#271f35",
"rgb": {
"r": 39,
"g": 31,
"b": 53
},
"hsl": {
"h": 261.818,
"s": 26.19,
"l": 16.471
},
"oklch": {
"l": 0.25929,
"c": 0.0417,
"h": 300.2
},
"luminance": 0.01668
}Semantic roles & 50–950 ramp
primary
#271F35
secondary
#5C6848
accent
#C365A1
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050307
muted
#79787A