#18187E#18187E
#18187E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.163 H 271.1°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).
Color values
| HEX | #18187E |
|---|---|
| RGB | rgb(24, 24, 126) |
| HSL | hsl(240, 68%, 29%) |
| HSV | hsv(240, 81%, 49%) |
| CMYK | cmyk(81%, 81%, 0%, 50.6%) |
| CIE-LAB | lab(17.24, 37.17, -56.29) |
| CIE-LCH | lch(17.24, 67.45, 303.44°) |
| OKLab | oklab(30.26% 0.0032 -0.163) |
| OKLCH | oklch(30.26% 0.163 271.1) |
| XYZ | xyz(4.4679, 2.3533, 19.9534) |
| Luminance | 0.0235 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.33
Royal
#0C1793
ΔE00 3.08
Dark Royal Blue
#02066F
ΔE00 4.15
Navy
#000080
ΔE00 4.30
Darkblue
#00008B
ΔE00 4.41
Deep Blue
#040273
ΔE00 4.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18187E #7E7E18
analogous
#184B7E #18187E #4B187E
triadic
#18187E #7E1818 #187E18
tetradic
#18187E #7E184B #7E7E18 #187E4B
square
#18187E #7E184B #7E7E18 #187E4B
split-complementary
#18187E #7E4B18 #4B7E18
monochromatic
#05051A #0E0E4B #18187E #2222B1 #3737D9
Accessibility & contrast
On white
14.28
#18187E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#18187E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18187E
14.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18187E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18187E | 1.00 | 14.28 | 1.47 | 14.28 |
| #FFFFFF | 14.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #18187e; /* rgb */ color: rgb(24, 24, 126); /* oklch */ color: oklch(30.3% 0.163 271.1);
Tailwind
colors: {
custom: {
50: '#6a57a5',
500: '#18187e',
950: '#000000',
},
}SCSS
$custom: #18187e; $custom-light: #6a57a5; $custom-dark: #000000;
JSON
{
"hex": "#18187e",
"rgb": {
"r": 24,
"g": 24,
"b": 126
},
"hsl": {
"h": 240,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.30258,
"c": 0.163,
"h": 271.1
},
"luminance": 0.02354
}Semantic roles & 50–950 ramp
primary
#18187E
secondary
#B2B23F
accent
#EB3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F