#271786#271786
#271786 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.170 H 277.4°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).
Color values
| HEX | #271786 |
|---|---|
| RGB | rgb(39, 23, 134) |
| HSL | hsl(249, 71%, 31%) |
| HSV | hsv(249, 83%, 53%) |
| CMYK | cmyk(70.9%, 82.8%, 0%, 47.5%) |
| CIE-LAB | lab(19.08, 41.55, -58.28) |
| CIE-LCH | lch(19.08, 71.58, 305.49°) |
| OKLab | oklab(32.09% 0.0219 -0.1684) |
| OKLCH | oklch(32.09% 0.17 277.4) |
| XYZ | xyz(5.4448, 2.7649, 22.7964) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.60
Indigo (survey)
#380282
ΔE00 3.87
Midnight Blue
#191970
ΔE00 4.01
Darkblue
#00008B
ΔE00 4.12
Navy
#000080
ΔE00 4.49
Cobalt Blue
#030AA7
ΔE00 4.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#271786 #768617
analogous
#173E86 #271786 #5E1786
triadic
#271786 #862717 #178627
tetradic
#271786 #86173E #768617 #17865E
square
#271786 #86173E #768617 #17865E
split-complementary
#271786 #865E17 #3E8617
monochromatic
#09051E #180E52 #271786 #3620BA #523ADD
Accessibility & contrast
On white
13.52
#271786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#271786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #271786
13.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##271786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##271786 | 1.00 | 13.52 | 1.55 | 13.52 |
| #FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002A84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #271786; /* rgb */ color: rgb(39, 23, 134); /* oklch */ color: oklch(32.1% 0.170 277.4);
Tailwind
colors: {
custom: {
50: '#7158aa',
500: '#271786',
950: '#000000',
},
}SCSS
$custom: #271786; $custom-light: #7158aa; $custom-dark: #000000;
JSON
{
"hex": "#271786",
"rgb": {
"r": 39,
"g": 23,
"b": 134
},
"hsl": {
"h": 248.649,
"s": 70.701,
"l": 30.784
},
"oklch": {
"l": 0.32094,
"c": 0.16982,
"h": 277.4
},
"luminance": 0.02765
}Semantic roles & 50–950 ramp
primary
#271786
secondary
#A8BA3F
accent
#ED3AD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F