#181F89#181F89
#181F89 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.170 H 269.6°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).
Color values
| HEX | #181F89 |
|---|---|
| RGB | rgb(24, 31, 137) |
| HSL | hsl(236, 70%, 32%) |
| HSV | hsv(236, 82%, 54%) |
| CMYK | cmyk(82.5%, 77.4%, 0%, 46.3%) |
| CIE-LAB | lab(19.96, 36.97, -58.73) |
| CIE-LCH | lch(19.96, 69.40, 302.19°) |
| OKLab | oklab(32.56% -0.0012 -0.1701) |
| OKLCH | oklch(32.56% 0.17 269.6) |
| XYZ | xyz(5.3805, 2.9797, 23.9536) |
| Luminance | 0.0298 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.37
Midnight Blue
#191970
ΔE00 3.96
Cobalt Blue
#030AA7
ΔE00 5.35
Darkblue
#00008B
ΔE00 5.47
Navy
#000080
ΔE00 5.88
Royal Blue (survey)
#0504AA
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181F89 #898218
analogous
#185889 #181F89 #4A1889
triadic
#181F89 #89181F #1F8918
tetradic
#181F89 #891858 #898218 #18894A
square
#181F89 #891858 #898218 #18894A
split-complementary
#181F89 #894A18 #588918
monochromatic
#060721 #0F1355 #181F89 #212BBD #3E48DD
Accessibility & contrast
On white
13.16
#181F89 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#181F89 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181F89
13.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181F89 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181F89 | 1.00 | 13.16 | 1.60 | 13.16 |
| #FFFFFF | 13.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #181f89; /* rgb */ color: rgb(24, 31, 137); /* oklch */ color: oklch(32.6% 0.170 269.6);
Tailwind
colors: {
custom: {
50: '#6c5cad',
500: '#181f89',
950: '#000000',
},
}SCSS
$custom: #181f89; $custom-light: #6c5cad; $custom-dark: #000000;
JSON
{
"hex": "#181f89",
"rgb": {
"r": 24,
"g": 31,
"b": 137
},
"hsl": {
"h": 236.283,
"s": 70.186,
"l": 31.569
},
"oklch": {
"l": 0.32558,
"c": 0.17014,
"h": 269.6
},
"luminance": 0.0298
}Semantic roles & 50–950 ramp
primary
#181F89
secondary
#BDB540
accent
#E23BED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F