#27187F#27187F
#27187F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.160 H 278.4°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).
Color values
| HEX | #27187F |
|---|---|
| RGB | rgb(39, 24, 127) |
| HSL | hsl(249, 68%, 30%) |
| HSV | hsv(249, 81%, 50%) |
| CMYK | cmyk(69.3%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(18.44, 38.82, -54.91) |
| CIE-LCH | lch(18.44, 67.25, 305.26°) |
| OKLab | oklab(31.41% 0.0235 -0.1586) |
| OKLCH | oklch(31.41% 0.16 278.4) |
| XYZ | xyz(4.9929, 2.6165, 20.3165) |
| Luminance | 0.0262 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.04
Royal
#0C1793
ΔE00 3.44
Indigo (survey)
#380282
ΔE00 4.11
Darkblue
#00008B
ΔE00 4.65
Navy
#000080
ΔE00 4.66
Dark Royal Blue
#02066F
ΔE00 4.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27187F #707F18
analogous
#183D7F #27187F #5B187F
triadic
#27187F #7F2718 #187F27
tetradic
#27187F #7F183D #707F18 #187F5B
square
#27187F #7F183D #707F18 #187F5B
split-complementary
#27187F #7F5B18 #3D7F18
monochromatic
#08051A #170E4C #27187F #3722B2 #5038D9
Accessibility & contrast
On white
13.78
#27187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#27187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27187F
13.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27187F | 1.00 | 13.78 | 1.52 | 13.78 |
| #FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #27187f; /* rgb */ color: rgb(39, 24, 127); /* oklch */ color: oklch(31.4% 0.160 278.4);
Tailwind
colors: {
custom: {
50: '#6f58a5',
500: '#27187f',
950: '#000000',
},
}SCSS
$custom: #27187f; $custom-light: #6f58a5; $custom-dark: #000000;
JSON
{
"hex": "#27187f",
"rgb": {
"r": 39,
"g": 24,
"b": 127
},
"hsl": {
"h": 248.738,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.3141,
"c": 0.16034,
"h": 278.4
},
"luminance": 0.02617
}Semantic roles & 50–950 ramp
primary
#27187F
secondary
#A2B33F
accent
#EB3DD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F