#181F7F#181F7F
#181F7F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.157 H 270.1°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).
Color values
| HEX | #181F7F |
|---|---|
| RGB | rgb(24, 31, 127) |
| HSL | hsl(236, 68%, 30%) |
| HSV | hsv(236, 81%, 50%) |
| CMYK | cmyk(81.1%, 75.6%, 0%, 50.2%) |
| CIE-LAB | lab(18.83, 33.36, -54.30) |
| CIE-LCH | lch(18.83, 63.73, 301.57°) |
| OKLab | oklab(31.41% 0.0004 -0.1573) |
| OKLCH | oklch(31.41% 0.157 270.1) |
| XYZ | xyz(4.6961, 2.7059, 20.3494) |
| Luminance | 0.0271 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.63
Royal
#0C1793
ΔE00 3.64
Dark Royal Blue
#02066F
ΔE00 5.71
Darkblue
#00008B
ΔE00 6.01
Navy
#000080
ΔE00 6.03
Deep Blue
#040273
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181F7F #7F7818
analogous
#18537F #181F7F #44187F
triadic
#181F7F #7F181F #1F7F18
tetradic
#181F7F #7F1853 #7F7818 #187F44
square
#181F7F #7F1853 #7F7818 #187F44
split-complementary
#181F7F #7F4418 #537F18
monochromatic
#05061A #0E124C #181F7F #222CB2 #3843D9
Accessibility & contrast
On white
13.63
#181F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#181F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181F7F
13.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181F7F | 1.00 | 13.63 | 1.54 | 13.63 |
| #FFFFFF | 13.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #181f7f; /* rgb */ color: rgb(24, 31, 127); /* oklch */ color: oklch(31.4% 0.157 270.1);
Tailwind
colors: {
custom: {
50: '#695ba5',
500: '#181f7f',
950: '#000000',
},
}SCSS
$custom: #181f7f; $custom-light: #695ba5; $custom-dark: #000000;
JSON
{
"hex": "#181f7f",
"rgb": {
"r": 24,
"g": 31,
"b": 127
},
"hsl": {
"h": 235.922,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.31413,
"c": 0.15728,
"h": 270.1
},
"luminance": 0.02706
}Semantic roles & 50–950 ramp
primary
#181F7F
secondary
#B3AB3F
accent
#DF3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F