#24218C#24218C
#24218C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.169 H 273.9°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).
Color values
| HEX | #24218C |
|---|---|
| RGB | rgb(36, 33, 140) |
| HSL | hsl(242, 62%, 34%) |
| HSV | hsv(242, 76%, 55%) |
| CMYK | cmyk(74.3%, 76.4%, 0%, 45.1%) |
| CIE-LAB | lab(21.42, 37.85, -58.18) |
| CIE-LCH | lch(21.42, 69.41, 303.05°) |
| OKLab | oklab(33.88% 0.0114 -0.1683) |
| OKLCH | oklch(33.88% 0.169 273.9) |
| XYZ | xyz(6.0035, 3.3556, 25.1372) |
| Luminance | 0.0336 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.72
Midnight Blue
#191970
ΔE00 4.62
Cobalt Blue
#030AA7
ΔE00 5.30
Royal Blue (survey)
#0504AA
ΔE00 5.87
Darkblue
#00008B
ΔE00 5.93
Indigo Blue
#3A18B1
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#24218C #898C21
analogous
#21548C #24218C #5A218C
triadic
#24218C #8C2421 #218C24
tetradic
#24218C #8C2154 #898C21 #218C5A
square
#24218C #8C2154 #898C21 #218C5A
split-complementary
#24218C #8C5A21 #548C21
monochromatic
#0B0A29 #17155A #24218C #312DBE #5551D6
Accessibility & contrast
On white
12.57
#24218C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#24218C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #24218C
12.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##24218C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##24218C | 1.00 | 12.57 | 1.67 | 12.57 |
| #FFFFFF | 12.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #24218c; /* rgb */ color: rgb(36, 33, 140); /* oklch */ color: oklch(33.9% 0.169 273.9);
Tailwind
colors: {
custom: {
50: '#705eaf',
500: '#24218c',
950: '#000000',
},
}SCSS
$custom: #24218c; $custom-light: #705eaf; $custom-dark: #000000;
JSON
{
"hex": "#24218c",
"rgb": {
"r": 36,
"g": 33,
"b": 140
},
"hsl": {
"h": 241.682,
"s": 61.85,
"l": 33.922
},
"oklch": {
"l": 0.33876,
"c": 0.16869,
"h": 273.9
},
"luminance": 0.03356
}Semantic roles & 50–950 ramp
primary
#24218C
secondary
#B7B94F
accent
#E543E0
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F