#24217F#24217F
#24217F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.152 H 275.2°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).
Color values
| HEX | #24217F |
|---|---|
| RGB | rgb(36, 33, 127) |
| HSL | hsl(242, 59%, 31%) |
| HSV | hsv(242, 74%, 50%) |
| CMYK | cmyk(71.7%, 74%, 0%, 50.2%) |
| CIE-LAB | lab(20.02, 33.33, -52.30) |
| CIE-LCH | lch(20.02, 62.02, 302.51°) |
| OKLab | oklab(32.47% 0.0139 -0.1512) |
| OKLCH | oklch(32.47% 0.152 275.2) |
| XYZ | xyz(5.1009, 2.9946, 20.3838) |
| Luminance | 0.0300 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.95
Royal
#0C1793
ΔE00 4.07
Dark Royal Blue
#02066F
ΔE00 6.29
Indigo (survey)
#380282
ΔE00 6.37
Darkblue
#00008B
ΔE00 6.49
Navy
#000080
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#24217F #7C7F21
analogous
#214D7F #24217F #53217F
triadic
#24217F #7F2421 #217F24
tetradic
#24217F #7F214D #7C7F21 #217F53
square
#24217F #7F214D #7C7F21 #217F53
split-complementary
#24217F #7F5321 #4D7F21
monochromatic
#08081E #16144E #24217F #322EB0 #4F4AD0
Accessibility & contrast
On white
13.13
#24217F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#24217F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #24217F
13.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##24217F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##24217F | 1.00 | 13.13 | 1.60 | 13.13 |
| #FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #24217f; /* rgb */ color: rgb(36, 33, 127); /* oklch */ color: oklch(32.5% 0.152 275.2);
Tailwind
colors: {
custom: {
50: '#6d5da5',
500: '#24217f',
950: '#000000',
},
}SCSS
$custom: #24217f; $custom-light: #6d5da5; $custom-dark: #000000;
JSON
{
"hex": "#24217f",
"rgb": {
"r": 36,
"g": 33,
"b": 127
},
"hsl": {
"h": 241.915,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.32469,
"c": 0.15182,
"h": 275.2
},
"luminance": 0.02995
}Semantic roles & 50–950 ramp
primary
#24217F
secondary
#AEB24A
accent
#E246DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F