#18217C#18217C
#18217C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.151 H 270.0°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).
Color values
| HEX | #18217C |
|---|---|
| RGB | rgb(24, 33, 124) |
| HSL | hsl(235, 68%, 29%) |
| HSV | hsv(235, 81%, 49%) |
| CMYK | cmyk(80.6%, 73.4%, 0%, 51.4%) |
| CIE-LAB | lab(18.96, 30.97, -52.18) |
| CIE-LCH | lch(18.96, 60.68, 300.69°) |
| OKLab | oklab(31.41% -0.0001 -0.1511) |
| OKLCH | oklch(31.41% 0.151 270) |
| XYZ | xyz(4.5574, 2.7366, 19.3529) |
| Luminance | 0.0274 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.65
Royal
#0C1793
ΔE00 4.44
Dark Royal Blue
#02066F
ΔE00 6.17
Darkblue (survey)
#030764
ΔE00 6.68
Deep Blue
#040273
ΔE00 6.69
Navy
#000080
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18217C #7C7318
analogous
#18537C #18217C #41187C
triadic
#18217C #7C1821 #217C18
tetradic
#18217C #7C1853 #7C7318 #187C41
square
#18217C #7C1853 #7C7318 #187C41
split-complementary
#18217C #7C4118 #537C18
monochromatic
#05071A #0E1349 #18217C #222FAF #3645D8
Accessibility & contrast
On white
13.57
#18217C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#18217C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18217C
13.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18217C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18217C | 1.00 | 13.57 | 1.55 | 13.57 |
| #FFFFFF | 13.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #18217c; /* rgb */ color: rgb(24, 33, 124); /* oklch */ color: oklch(31.4% 0.151 270.0);
Tailwind
colors: {
custom: {
50: '#685da3',
500: '#18217c',
950: '#000000',
},
}SCSS
$custom: #18217c; $custom-light: #685da3; $custom-dark: #000000;
JSON
{
"hex": "#18217c",
"rgb": {
"r": 24,
"g": 33,
"b": 124
},
"hsl": {
"h": 234.6,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.31409,
"c": 0.1511,
"h": 270
},
"luminance": 0.02737
}Semantic roles & 50–950 ramp
primary
#18217C
secondary
#B1A63F
accent
#DB3DEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F