#271886#271886
#271886 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.169 H 277.3°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).
Color values
| HEX | #271886 |
|---|---|
| RGB | rgb(39, 24, 134) |
| HSL | hsl(248, 70%, 31%) |
| HSV | hsv(248, 82%, 53%) |
| CMYK | cmyk(70.9%, 82.1%, 0%, 47.5%) |
| CIE-LAB | lab(19.25, 41.06, -58.00) |
| CIE-LCH | lch(19.25, 71.06, 305.29°) |
| OKLab | oklab(32.21% 0.0214 -0.1676) |
| OKLCH | oklch(32.21% 0.169 277.3) |
| XYZ | xyz(5.4650, 2.8053, 22.8031) |
| Luminance | 0.0281 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.59
Midnight Blue
#191970
ΔE00 3.94
Indigo (survey)
#380282
ΔE00 4.04
Darkblue
#00008B
ΔE00 4.29
Navy
#000080
ΔE00 4.65
Cobalt Blue
#030AA7
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271886 #778618
analogous
#184086 #271886 #5E1886
triadic
#271886 #862718 #188627
tetradic
#271886 #861840 #778618 #18865E
square
#271886 #861840 #778618 #18865E
split-complementary
#271886 #865E18 #408618
monochromatic
#09051E #180F52 #271886 #3621BA #523CDC
Accessibility & contrast
On white
13.45
#271886 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#271886 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271886
13.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271886 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271886 | 1.00 | 13.45 | 1.56 | 13.45 |
| #FFFFFF | 13.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002A84
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #271886; /* rgb */ color: rgb(39, 24, 134); /* oklch */ color: oklch(32.2% 0.169 277.3);
Tailwind
colors: {
custom: {
50: '#7158aa',
500: '#271886',
950: '#000000',
},
}SCSS
$custom: #271886; $custom-light: #7158aa; $custom-dark: #000000;
JSON
{
"hex": "#271886",
"rgb": {
"r": 39,
"g": 24,
"b": 134
},
"hsl": {
"h": 248.182,
"s": 69.62,
"l": 30.98
},
"oklch": {
"l": 0.32212,
"c": 0.16896,
"h": 277.3
},
"luminance": 0.02806
}Semantic roles & 50–950 ramp
primary
#271886
secondary
#A9BA40
accent
#EC3BD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F