#27187E#27187E
#27187E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.159 H 278.6°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).
Color values
| HEX | #27187E |
|---|---|
| RGB | rgb(39, 24, 126) |
| HSL | hsl(249, 68%, 29%) |
| HSV | hsv(249, 81%, 49%) |
| CMYK | cmyk(69%, 81%, 0%, 50.6%) |
| CIE-LAB | lab(18.32, 38.50, -54.46) |
| CIE-LCH | lch(18.32, 66.70, 305.26°) |
| OKLab | oklab(31.3% 0.0238 -0.1573) |
| OKLCH | oklch(31.3% 0.159 278.6) |
| XYZ | xyz(4.9280, 2.5905, 19.9749) |
| Luminance | 0.0259 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.92
Royal
#0C1793
ΔE00 3.58
Indigo (survey)
#380282
ΔE00 4.15
Navy
#000080
ΔE00 4.69
Dark Royal Blue
#02066F
ΔE00 4.71
Darkblue
#00008B
ΔE00 4.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27187E #6F7E18
analogous
#183C7E #27187E #5A187E
triadic
#27187E #7E2718 #187E27
tetradic
#27187E #7E183C #6F7E18 #187E5A
square
#27187E #7E183C #6F7E18 #187E5A
split-complementary
#27187E #7E5A18 #3C7E18
monochromatic
#08051A #170E4B #27187E #3722B1 #4F37D9
Accessibility & contrast
On white
13.83
#27187E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#27187E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27187E
13.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27187E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27187E | 1.00 | 13.83 | 1.52 | 13.83 |
| #FFFFFF | 13.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #27187e; /* rgb */ color: rgb(39, 24, 126); /* oklch */ color: oklch(31.3% 0.159 278.6);
Tailwind
colors: {
custom: {
50: '#6f58a5',
500: '#27187e',
950: '#000000',
},
}SCSS
$custom: #27187e; $custom-light: #6f58a5; $custom-dark: #000000;
JSON
{
"hex": "#27187e",
"rgb": {
"r": 39,
"g": 24,
"b": 126
},
"hsl": {
"h": 248.824,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.31297,
"c": 0.15909,
"h": 278.6
},
"luminance": 0.02591
}Semantic roles & 50–950 ramp
primary
#27187E
secondary
#A2B23F
accent
#EB3DD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F