#271888#271888
#271888 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.171 H 277.0°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).
Color values
| HEX | #271888 |
|---|---|
| RGB | rgb(39, 24, 136) |
| HSL | hsl(248, 70%, 31%) |
| HSV | hsv(248, 82%, 53%) |
| CMYK | cmyk(71.3%, 82.4%, 0%, 46.7%) |
| CIE-LAB | lab(19.48, 41.69, -58.87) |
| CIE-LCH | lch(19.48, 72.14, 305.31°) |
| OKLab | oklab(32.44% 0.0208 -0.1701) |
| OKLCH | oklch(32.44% 0.171 277) |
| XYZ | xyz(5.6058, 2.8617, 23.5447) |
| Luminance | 0.0286 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.39
Indigo (survey)
#380282
ΔE00 4.07
Midnight Blue
#191970
ΔE00 4.21
Darkblue
#00008B
ΔE00 4.24
Cobalt Blue
#030AA7
ΔE00 4.70
Navy
#000080
ΔE00 4.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271888 #798818
analogous
#184188 #271888 #5F1888
triadic
#271888 #882718 #188827
tetradic
#271888 #881841 #798818 #18885F
square
#271888 #881841 #798818 #18885F
split-complementary
#271888 #885F18 #418818
monochromatic
#090620 #180F54 #271888 #3621BC #533EDD
Accessibility & contrast
On white
13.36
#271888 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#271888 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271888
13.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271888 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271888 | 1.00 | 13.36 | 1.57 | 13.36 |
| #FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002A86
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #271888; /* rgb */ color: rgb(39, 24, 136); /* oklch */ color: oklch(32.4% 0.171 277.0);
Tailwind
colors: {
custom: {
50: '#7159ac',
500: '#271888',
950: '#000000',
},
}SCSS
$custom: #271888; $custom-light: #7159ac; $custom-dark: #000000;
JSON
{
"hex": "#271888",
"rgb": {
"r": 39,
"g": 24,
"b": 136
},
"hsl": {
"h": 248.036,
"s": 70,
"l": 31.373
},
"oklch": {
"l": 0.32443,
"c": 0.17139,
"h": 277
},
"luminance": 0.02862
}Semantic roles & 50–950 ramp
primary
#271888
secondary
#ABBC40
accent
#ED3BD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F