#24217C#24217C
#24217C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.148 H 275.6°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).
Color values
| HEX | #24217C |
|---|---|
| RGB | rgb(36, 33, 124) |
| HSL | hsl(242, 58%, 31%) |
| HSV | hsv(242, 73%, 49%) |
| CMYK | cmyk(71%, 73.4%, 0%, 51.4%) |
| CIE-LAB | lab(19.71, 32.27, -50.91) |
| CIE-LCH | lch(19.71, 60.28, 302.37°) |
| OKLab | oklab(32.15% 0.0144 -0.1471) |
| OKLCH | oklch(32.15% 0.148 275.6) |
| XYZ | xyz(4.9083, 2.9176, 19.3694) |
| Luminance | 0.0292 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.65
Royal
#0C1793
ΔE00 4.48
Dark Royal Blue
#02066F
ΔE00 6.22
Indigo (survey)
#380282
ΔE00 6.53
Deep Blue
#040273
ΔE00 6.65
Navy
#000080
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#24217C #797C21
analogous
#214B7C #24217C #51217C
triadic
#24217C #7C2421 #217C24
tetradic
#24217C #7C214B #797C21 #217C51
square
#24217C #7C214B #797C21 #217C51
split-complementary
#24217C #7C5121 #4B7C21
monochromatic
#08071B #16144C #24217C #322EAC #4D49CF
Accessibility & contrast
On white
13.26
#24217C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#24217C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #24217C
13.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##24217C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##24217C | 1.00 | 13.26 | 1.58 | 13.26 |
| #FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #24217c; /* rgb */ color: rgb(36, 33, 124); /* oklch */ color: oklch(32.2% 0.148 275.6);
Tailwind
colors: {
custom: {
50: '#6c5da3',
500: '#24217c',
950: '#000000',
},
}SCSS
$custom: #24217c; $custom-light: #6c5da3; $custom-dark: #000000;
JSON
{
"hex": "#24217c",
"rgb": {
"r": 36,
"g": 33,
"b": 124
},
"hsl": {
"h": 241.978,
"s": 57.962,
"l": 30.784
},
"oklch": {
"l": 0.32152,
"c": 0.14781,
"h": 275.6
},
"luminance": 0.02918
}Semantic roles & 50–950 ramp
primary
#24217C
secondary
#ACAF4A
accent
#E147DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F