#181F8F#181F8F
#181F8F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.178 H 269.3°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).
Color values
| HEX | #181F8F |
|---|---|
| RGB | rgb(24, 31, 143) |
| HSL | hsl(236, 71%, 33%) |
| HSV | hsv(236, 83%, 56%) |
| CMYK | cmyk(83.2%, 78.3%, 0%, 43.9%) |
| CIE-LAB | lab(20.66, 39.09, -61.32) |
| CIE-LCH | lch(20.66, 72.72, 302.51°) |
| OKLab | oklab(33.26% -0.0022 -0.1777) |
| OKLCH | oklch(33.26% 0.178 269.3) |
| XYZ | xyz(5.8229, 3.1566, 26.2837) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.88
Cobalt Blue
#030AA7
ΔE00 4.64
Midnight Blue
#191970
ΔE00 4.80
Royal Blue (survey)
#0504AA
ΔE00 5.26
Darkblue
#00008B
ΔE00 5.37
Navy
#000080
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181F8F #8F8818
analogous
#185A8F #181F8F #4D188F
triadic
#181F8F #8F181F #1F8F18
tetradic
#181F8F #8F185A #8F8818 #188F4D
square
#181F8F #8F185A #8F8818 #188F4D
split-complementary
#181F8F #8F4D18 #5A8F18
monochromatic
#060826 #0F145B #181F8F #212AC3 #424BDF
Accessibility & contrast
On white
12.87
#181F8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#181F8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181F8F
12.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181F8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181F8F | 1.00 | 12.87 | 1.63 | 12.87 |
| #FFFFFF | 12.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #181f8f; /* rgb */ color: rgb(24, 31, 143); /* oklch */ color: oklch(33.3% 0.178 269.3);
Tailwind
colors: {
custom: {
50: '#6e5cb1',
500: '#181f8f',
950: '#000000',
},
}SCSS
$custom: #181f8f; $custom-light: #6e5cb1; $custom-dark: #000000;
JSON
{
"hex": "#181f8f",
"rgb": {
"r": 24,
"g": 31,
"b": 143
},
"hsl": {
"h": 236.471,
"s": 71.257,
"l": 32.745
},
"oklch": {
"l": 0.33257,
"c": 0.17767,
"h": 269.3
},
"luminance": 0.03157
}Semantic roles & 50–950 ramp
primary
#181F8F
secondary
#C0B943
accent
#E33AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980