#181F71#181F71
#181F71 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.138 H 271.0°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).
Color values
| HEX | #181F71 |
|---|---|
| RGB | rgb(24, 31, 113) |
| HSL | hsl(235, 65%, 27%) |
| HSV | hsv(235, 79%, 44%) |
| CMYK | cmyk(78.8%, 72.6%, 0%, 55.7%) |
| CIE-LAB | lab(17.30, 28.12, -47.84) |
| CIE-LCH | lch(17.30, 55.50, 300.44°) |
| OKLab | oklab(29.86% 0.0023 -0.1385) |
| OKLCH | oklch(29.86% 0.138 271) |
| XYZ | xyz(3.8463, 2.3660, 15.8736) |
| Luminance | 0.0237 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.79
Dark Royal Blue
#02066F
ΔE00 5.81
Royal
#0C1793
ΔE00 5.84
Darkblue (survey)
#030764
ΔE00 5.84
Deep Blue
#040273
ΔE00 6.52
Navy
#000080
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181F71 #716A18
analogous
#184C71 #181F71 #3E1871
triadic
#181F71 #71181F #1F7118
tetradic
#181F71 #71184C #716A18 #18713E
square
#181F71 #71184C #716A18 #18713E
split-complementary
#181F71 #713E18 #4C7118
monochromatic
#050719 #0D113F #181F71 #232DA3 #303DD3
Accessibility & contrast
On white
14.25
#181F71 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#181F71 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181F71
14.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181F71 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181F71 | 1.00 | 14.25 | 1.47 | 14.25 |
| #FFFFFF | 14.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F73
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #181f71; /* rgb */ color: rgb(24, 31, 113); /* oklch */ color: oklch(29.9% 0.138 271.0);
Tailwind
colors: {
custom: {
50: '#655b9b',
500: '#181f71',
950: '#000000',
},
}SCSS
$custom: #181f71; $custom-light: #655b9b; $custom-dark: #000000;
JSON
{
"hex": "#181f71",
"rgb": {
"r": 24,
"g": 31,
"b": 113
},
"hsl": {
"h": 235.281,
"s": 64.964,
"l": 26.863
},
"oklch": {
"l": 0.29863,
"c": 0.13848,
"h": 271
},
"luminance": 0.02366
}Semantic roles & 50–950 ramp
primary
#181F71
secondary
#A69E3E
accent
#DB40E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E