#18217B#18217B
#18217B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.150 H 270.0°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).
Color values
| HEX | #18217B |
|---|---|
| RGB | rgb(24, 33, 123) |
| HSL | hsl(235, 67%, 29%) |
| HSV | hsv(235, 80%, 48%) |
| CMYK | cmyk(80.5%, 73.2%, 0%, 51.8%) |
| CIE-LAB | lab(18.85, 30.60, -51.72) |
| CIE-LCH | lch(18.85, 60.09, 300.61°) |
| OKLab | oklab(31.3% 0 -0.1498) |
| OKLCH | oklch(31.3% 0.15 270) |
| XYZ | xyz(4.4945, 2.7115, 19.0215) |
| Luminance | 0.0271 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.57
Royal
#0C1793
ΔE00 4.59
Dark Royal Blue
#02066F
ΔE00 6.17
Darkblue (survey)
#030764
ΔE00 6.63
Deep Blue
#040273
ΔE00 6.70
Navy
#000080
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18217B #7B7218
analogous
#18537B #18217B #41187B
triadic
#18217B #7B1821 #217B18
tetradic
#18217B #7B1853 #7B7218 #187B41
square
#18217B #7B1853 #7B7218 #187B41
split-complementary
#18217B #7B4118 #537B18
monochromatic
#05071A #0E1348 #18217B #222FAE #3644D8
Accessibility & contrast
On white
13.62
#18217B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#18217B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18217B
13.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18217B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18217B | 1.00 | 13.62 | 1.54 | 13.62 |
| #FFFFFF | 13.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #18217b; /* rgb */ color: rgb(24, 33, 123); /* oklch */ color: oklch(31.3% 0.150 270.0);
Tailwind
colors: {
custom: {
50: '#685da2',
500: '#18217b',
950: '#000000',
},
}SCSS
$custom: #18217b; $custom-light: #685da2; $custom-dark: #000000;
JSON
{
"hex": "#18217b",
"rgb": {
"r": 24,
"g": 33,
"b": 123
},
"hsl": {
"h": 234.545,
"s": 67.347,
"l": 28.824
},
"oklch": {
"l": 0.313,
"c": 0.14976,
"h": 270
},
"luminance": 0.02712
}Semantic roles & 50–950 ramp
primary
#18217B
secondary
#B0A53F
accent
#DB3EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F