#181B8F#181B8F
#181B8F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.181 H 269.6°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).
Color values
| HEX | #181B8F |
|---|---|
| RGB | rgb(24, 27, 143) |
| HSL | hsl(238, 71%, 33%) |
| HSV | hsv(238, 83%, 56%) |
| CMYK | cmyk(83.2%, 81.1%, 0%, 43.9%) |
| CIE-LAB | lab(19.89, 41.32, -62.61) |
| CIE-LCH | lch(19.89, 75.01, 303.42°) |
| OKLab | oklab(32.71% -0.0011 -0.1813) |
| OKLCH | oklch(32.71% 0.181 269.6) |
| XYZ | xyz(5.7249, 2.9606, 26.2510) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.09
Cobalt Blue
#030AA7
ΔE00 4.00
Darkblue
#00008B
ΔE00 4.46
Royal Blue (survey)
#0504AA
ΔE00 4.60
Midnight Blue
#191970
ΔE00 4.75
Navy
#000080
ΔE00 5.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181B8F #8F8C18
analogous
#18578F #181B8F #50188F
triadic
#181B8F #8F181B #1B8F18
tetradic
#181B8F #8F1857 #8F8C18 #188F50
square
#181B8F #8F1857 #8F8C18 #188F50
split-complementary
#181B8F #8F5018 #578F18
monochromatic
#060726 #0F115B #181B8F #2125C3 #4246DF
Accessibility & contrast
On white
13.19
#181B8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#181B8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181B8F
13.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181B8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181B8F | 1.00 | 13.19 | 1.59 | 13.19 |
| #FFFFFF | 13.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #181b8f; /* rgb */ color: rgb(24, 27, 143); /* oklch */ color: oklch(32.7% 0.181 269.6);
Tailwind
colors: {
custom: {
50: '#6e5ab1',
500: '#181b8f',
950: '#000000',
},
}SCSS
$custom: #181b8f; $custom-light: #6e5ab1; $custom-dark: #000000;
JSON
{
"hex": "#181b8f",
"rgb": {
"r": 24,
"g": 27,
"b": 143
},
"hsl": {
"h": 238.487,
"s": 71.257,
"l": 32.745
},
"oklch": {
"l": 0.32712,
"c": 0.18132,
"h": 269.6
},
"luminance": 0.02961
}Semantic roles & 50–950 ramp
primary
#181B8F
secondary
#C0BD43
accent
#E93AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980