#18187C#18187C
#18187C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.160 H 271.3°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).
Color values
| HEX | #18187C |
|---|---|
| RGB | rgb(24, 24, 124) |
| HSL | hsl(240, 68%, 29%) |
| HSV | hsv(240, 81%, 49%) |
| CMYK | cmyk(80.6%, 80.6%, 0%, 51.4%) |
| CIE-LAB | lab(17.00, 36.48, -55.41) |
| CIE-LCH | lch(17.00, 66.34, 303.35°) |
| OKLab | oklab(30.02% 0.0037 -0.1604) |
| OKLCH | oklch(30.02% 0.16 271.3) |
| XYZ | xyz(4.3402, 2.3022, 19.2805) |
| Luminance | 0.0230 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.02
Royal
#0C1793
ΔE00 3.38
Dark Royal Blue
#02066F
ΔE00 4.03
Navy
#000080
ΔE00 4.37
Deep Blue
#040273
ΔE00 4.38
Darkblue
#00008B
ΔE00 4.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18187C #7C7C18
analogous
#184A7C #18187C #4A187C
triadic
#18187C #7C1818 #187C18
tetradic
#18187C #7C184A #7C7C18 #187C4A
square
#18187C #7C184A #7C7C18 #187C4A
split-complementary
#18187C #7C4A18 #4A7C18
monochromatic
#05051A #0E0E49 #18187C #2222AF #3636D8
Accessibility & contrast
On white
14.38
#18187C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#18187C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18187C
14.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18187C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18187C | 1.00 | 14.38 | 1.46 | 14.38 |
| #FFFFFF | 14.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #18187c; /* rgb */ color: rgb(24, 24, 124); /* oklch */ color: oklch(30.0% 0.160 271.3);
Tailwind
colors: {
custom: {
50: '#6957a3',
500: '#18187c',
950: '#000000',
},
}SCSS
$custom: #18187c; $custom-light: #6957a3; $custom-dark: #000000;
JSON
{
"hex": "#18187c",
"rgb": {
"r": 24,
"g": 24,
"b": 124
},
"hsl": {
"h": 240,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.30017,
"c": 0.16047,
"h": 271.3
},
"luminance": 0.02303
}Semantic roles & 50–950 ramp
primary
#18187C
secondary
#B1B13F
accent
#EA3DEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F