#181F7E#181F7E
#181F7E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.156 H 270.2°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).
Color values
| HEX | #181F7E |
|---|---|
| RGB | rgb(24, 31, 126) |
| HSL | hsl(236, 68%, 29%) |
| HSV | hsv(236, 81%, 49%) |
| CMYK | cmyk(81%, 75.4%, 0%, 50.6%) |
| CIE-LAB | lab(18.71, 33.00, -53.85) |
| CIE-LCH | lch(18.71, 63.16, 301.50°) |
| OKLab | oklab(31.3% 0.0005 -0.156) |
| OKLCH | oklch(31.3% 0.156 270.2) |
| XYZ | xyz(4.6313, 2.6800, 20.0078) |
| Luminance | 0.0268 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.51
Royal
#0C1793
ΔE00 3.79
Dark Royal Blue
#02066F
ΔE00 5.68
Navy
#000080
ΔE00 6.07
Darkblue
#00008B
ΔE00 6.09
Deep Blue
#040273
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181F7E #7E7718
analogous
#18527E #181F7E #44187E
triadic
#181F7E #7E181F #1F7E18
tetradic
#181F7E #7E1852 #7E7718 #187E44
square
#181F7E #7E1852 #7E7718 #187E44
split-complementary
#181F7E #7E4418 #527E18
monochromatic
#05061A #0E124B #181F7E #222CB1 #3743D9
Accessibility & contrast
On white
13.67
#181F7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#181F7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181F7E
13.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181F7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181F7E | 1.00 | 13.67 | 1.54 | 13.67 |
| #FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #181f7e; /* rgb */ color: rgb(24, 31, 126); /* oklch */ color: oklch(31.3% 0.156 270.2);
Tailwind
colors: {
custom: {
50: '#695ba4',
500: '#181f7e',
950: '#000000',
},
}SCSS
$custom: #181f7e; $custom-light: #695ba4; $custom-dark: #000000;
JSON
{
"hex": "#181f7e",
"rgb": {
"r": 24,
"g": 31,
"b": 126
},
"hsl": {
"h": 235.882,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.313,
"c": 0.15597,
"h": 270.2
},
"luminance": 0.02681
}Semantic roles & 50–950 ramp
primary
#181F7E
secondary
#B2AB3F
accent
#DF3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F