#181B8B#181B8B
#181B8B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.176 H 269.9°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).
Color values
| HEX | #181B8B |
|---|---|
| RGB | rgb(24, 27, 139) |
| HSL | hsl(238, 71%, 32%) |
| HSV | hsv(238, 83%, 55%) |
| CMYK | cmyk(82.7%, 80.6%, 0%, 45.5%) |
| CIE-LAB | lab(19.40, 39.96, -60.92) |
| CIE-LCH | lch(19.40, 72.86, 303.26°) |
| OKLab | oklab(32.23% -0.0003 -0.1764) |
| OKLCH | oklch(32.23% 0.176 269.9) |
| XYZ | xyz(5.4272, 2.8415, 24.6835) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.47
Midnight Blue
#191970
ΔE00 4.17
Darkblue
#00008B
ΔE00 4.47
Cobalt Blue
#030AA7
ΔE00 4.49
Navy
#000080
ΔE00 5.01
Royal Blue (survey)
#0504AA
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181B8B #8B8818
analogous
#18558B #181B8B #4F188B
triadic
#181B8B #8B181B #1B8B18
tetradic
#181B8B #8B1855 #8B8818 #188B4F
square
#181B8B #8B1855 #8B8818 #188B4F
split-complementary
#181B8B #8B4F18 #558B18
monochromatic
#060723 #0F1157 #181B8B #2125BF #3F44DE
Accessibility & contrast
On white
13.39
#181B8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#181B8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181B8B
13.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181B8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181B8B | 1.00 | 13.39 | 1.57 | 13.39 |
| #FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002989
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #181b8b; /* rgb */ color: rgb(24, 27, 139); /* oklch */ color: oklch(32.2% 0.176 269.9);
Tailwind
colors: {
custom: {
50: '#6d5aae',
500: '#181b8b',
950: '#000000',
},
}SCSS
$custom: #181b8b; $custom-light: #6d5aae; $custom-dark: #000000;
JSON
{
"hex": "#181b8b",
"rgb": {
"r": 24,
"g": 27,
"b": 139
},
"hsl": {
"h": 238.435,
"s": 70.552,
"l": 31.961
},
"oklch": {
"l": 0.32229,
"c": 0.17644,
"h": 269.9
},
"luminance": 0.02842
}Semantic roles & 50–950 ramp
primary
#181B8B
secondary
#BEBB40
accent
#E93AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F