#18188B#18188B
#18188B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.179 H 270.1°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).
Color values
| HEX | #18188B |
|---|---|
| RGB | rgb(24, 24, 139) |
| HSL | hsl(240, 71%, 32%) |
| HSV | hsv(240, 83%, 55%) |
| CMYK | cmyk(82.7%, 82.7%, 0%, 45.5%) |
| CIE-LAB | lab(18.85, 41.56, -61.83) |
| CIE-LCH | lch(18.85, 74.50, 303.91°) |
| OKLab | oklab(31.84% 0.0004 -0.179) |
| OKLCH | oklch(31.84% 0.179 270.1) |
| XYZ | xyz(5.3619, 2.7109, 24.6618) |
| Luminance | 0.0271 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.22
Darkblue
#00008B
ΔE00 3.82
Cobalt Blue
#030AA7
ΔE00 4.15
Midnight Blue
#191970
ΔE00 4.26
Navy
#000080
ΔE00 4.41
Royal Blue (survey)
#0504AA
ΔE00 4.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18188B #8B8B18
analogous
#18528B #18188B #52188B
triadic
#18188B #8B1818 #188B18
tetradic
#18188B #8B1852 #8B8B18 #188B52
square
#18188B #8B1852 #8B8B18 #188B52
split-complementary
#18188B #8B5218 #528B18
monochromatic
#060623 #0F0F57 #18188B #2121BF #3F3FDE
Accessibility & contrast
On white
13.62
#18188B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#18188B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18188B
13.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18188B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18188B | 1.00 | 13.62 | 1.54 | 13.62 |
| #FFFFFF | 13.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002889
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #18188b; /* rgb */ color: rgb(24, 24, 139); /* oklch */ color: oklch(31.8% 0.179 270.1);
Tailwind
colors: {
custom: {
50: '#6d58ae',
500: '#18188b',
950: '#000000',
},
}SCSS
$custom: #18188b; $custom-light: #6d58ae; $custom-dark: #000000;
JSON
{
"hex": "#18188b",
"rgb": {
"r": 24,
"g": 24,
"b": 139
},
"hsl": {
"h": 240,
"s": 70.552,
"l": 31.961
},
"oklch": {
"l": 0.31844,
"c": 0.17903,
"h": 270.1
},
"luminance": 0.02712
}Semantic roles & 50–950 ramp
primary
#18188B
secondary
#BEBE40
accent
#ED3AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080310
muted
#7B787F