#18187F#18187F
#18187F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.164 H 271.0°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).
Color values
| HEX | #18187F |
|---|---|
| RGB | rgb(24, 24, 127) |
| HSL | hsl(240, 68%, 30%) |
| HSV | hsv(240, 81%, 50%) |
| CMYK | cmyk(81.1%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(17.36, 37.51, -56.72) |
| CIE-LCH | lch(17.36, 68.00, 303.48°) |
| OKLab | oklab(30.38% 0.003 -0.1642) |
| OKLCH | oklch(30.38% 0.164 271) |
| XYZ | xyz(4.5328, 2.3793, 20.2949) |
| Luminance | 0.0238 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.48
Royal
#0C1793
ΔE00 2.92
Dark Royal Blue
#02066F
ΔE00 4.22
Navy
#000080
ΔE00 4.27
Darkblue
#00008B
ΔE00 4.33
Deep Blue
#040273
ΔE00 4.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18187F #7F7F18
analogous
#184C7F #18187F #4C187F
triadic
#18187F #7F1818 #187F18
tetradic
#18187F #7F184C #7F7F18 #187F4C
square
#18187F #7F184C #7F7F18 #187F4C
split-complementary
#18187F #7F4C18 #4C7F18
monochromatic
#05051A #0E0E4C #18187F #2222B2 #3838D9
Accessibility & contrast
On white
14.23
#18187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#18187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18187F
14.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18187F | 1.00 | 14.23 | 1.48 | 14.23 |
| #FFFFFF | 14.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #18187f; /* rgb */ color: rgb(24, 24, 127); /* oklch */ color: oklch(30.4% 0.164 271.0);
Tailwind
colors: {
custom: {
50: '#6a57a5',
500: '#18187f',
950: '#000000',
},
}SCSS
$custom: #18187f; $custom-light: #6a57a5; $custom-dark: #000000;
JSON
{
"hex": "#18187f",
"rgb": {
"r": 24,
"g": 24,
"b": 127
},
"hsl": {
"h": 240,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.30379,
"c": 0.16426,
"h": 271
},
"luminance": 0.0238
}Semantic roles & 50–950 ramp
primary
#18187F
secondary
#B3B33F
accent
#EB3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F