#18217F#18217F
#18217F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.155 H 269.8°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).
Color values
| HEX | #18217F |
|---|---|
| RGB | rgb(24, 33, 127) |
| HSL | hsl(235, 68%, 30%) |
| HSV | hsv(235, 81%, 50%) |
| CMYK | cmyk(81.1%, 74%, 0%, 50.2%) |
| CIE-LAB | lab(19.28, 32.09, -53.55) |
| CIE-LCH | lch(19.28, 62.43, 300.94°) |
| OKLab | oklab(31.74% -0.0005 -0.1551) |
| OKLCH | oklch(31.74% 0.155 269.8) |
| XYZ | xyz(4.7500, 2.8137, 20.3673) |
| Luminance | 0.0281 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.92
Royal
#0C1793
ΔE00 4.01
Dark Royal Blue
#02066F
ΔE00 6.22
Darkblue
#00008B
ΔE00 6.55
Navy
#000080
ΔE00 6.59
Deep Blue
#040273
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18217F #7F7618
analogous
#18557F #18217F #42187F
triadic
#18217F #7F1821 #217F18
tetradic
#18217F #7F1855 #7F7618 #187F42
square
#18217F #7F1855 #7F7618 #187F42
split-complementary
#18217F #7F4218 #557F18
monochromatic
#05071A #0E144C #18217F #222EB2 #3846D9
Accessibility & contrast
On white
13.44
#18217F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#18217F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18217F
13.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18217F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18217F | 1.00 | 13.44 | 1.56 | 13.44 |
| #FFFFFF | 13.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #18217f; /* rgb */ color: rgb(24, 33, 127); /* oklch */ color: oklch(31.7% 0.155 269.8);
Tailwind
colors: {
custom: {
50: '#695da5',
500: '#18217f',
950: '#000000',
},
}SCSS
$custom: #18217f; $custom-light: #695da5; $custom-dark: #000000;
JSON
{
"hex": "#18217f",
"rgb": {
"r": 24,
"g": 33,
"b": 127
},
"hsl": {
"h": 234.757,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.3174,
"c": 0.1551,
"h": 269.8
},
"luminance": 0.02814
}Semantic roles & 50–950 ramp
primary
#18217F
secondary
#B3A93F
accent
#DC3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F