#18187B#18187B
#18187B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.159 H 271.4°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).
Color values
| HEX | #18187B |
|---|---|
| RGB | rgb(24, 24, 123) |
| HSL | hsl(240, 67%, 29%) |
| HSV | hsv(240, 80%, 48%) |
| CMYK | cmyk(80.5%, 80.5%, 0%, 51.8%) |
| CIE-LAB | lab(16.88, 36.13, -54.98) |
| CIE-LCH | lch(16.88, 65.78, 303.31°) |
| OKLab | oklab(29.9% 0.0039 -0.1592) |
| OKLCH | oklch(29.9% 0.159 271.4) |
| XYZ | xyz(4.2773, 2.2770, 18.9491) |
| Luminance | 0.0228 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.87
Royal
#0C1793
ΔE00 3.54
Dark Royal Blue
#02066F
ΔE00 3.98
Deep Blue
#040273
ΔE00 4.36
Navy
#000080
ΔE00 4.42
Darkblue
#00008B
ΔE00 4.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18187B #7B7B18
analogous
#184A7B #18187B #4A187B
triadic
#18187B #7B1818 #187B18
tetradic
#18187B #7B184A #7B7B18 #187B4A
square
#18187B #7B184A #7B7B18 #187B4A
split-complementary
#18187B #7B4A18 #4A7B18
monochromatic
#05051A #0E0E48 #18187B #2222AE #3636D8
Accessibility & contrast
On white
14.43
#18187B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#18187B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18187B
14.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18187B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18187B | 1.00 | 14.43 | 1.46 | 14.43 |
| #FFFFFF | 14.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #18187b; /* rgb */ color: rgb(24, 24, 123); /* oklch */ color: oklch(29.9% 0.159 271.4);
Tailwind
colors: {
custom: {
50: '#6957a2',
500: '#18187b',
950: '#000000',
},
}SCSS
$custom: #18187b; $custom-light: #6957a2; $custom-dark: #000000;
JSON
{
"hex": "#18187b",
"rgb": {
"r": 24,
"g": 24,
"b": 123
},
"hsl": {
"h": 240,
"s": 67.347,
"l": 28.824
},
"oklch": {
"l": 0.29897,
"c": 0.15921,
"h": 271.4
},
"luminance": 0.02278
}Semantic roles & 50–950 ramp
primary
#18187B
secondary
#B0B03F
accent
#EA3EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F