#24117E#24117E
#24117E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.166 H 277.8°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).
Color values
| HEX | #24117E |
|---|---|
| RGB | rgb(36, 17, 126) |
| HSL | hsl(250, 76%, 28%) |
| HSV | hsv(250, 87%, 49%) |
| CMYK | cmyk(71.4%, 86.5%, 0%, 50.6%) |
| CIE-LAB | lab(16.90, 41.61, -56.82) |
| CIE-LCH | lch(16.90, 70.43, 306.21°) |
| OKLab | oklab(30.25% 0.0224 -0.1641) |
| OKLCH | oklch(30.25% 0.166 277.8) |
| XYZ | xyz(4.6927, 2.2819, 19.9278) |
| Luminance | 0.0228 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.35
Navy
#000080
ΔE00 3.41
Midnight Blue
#191970
ΔE00 3.50
Darkblue
#00008B
ΔE00 3.57
Royal
#0C1793
ΔE00 3.60
Deep Blue
#040273
ΔE00 3.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#24117E #6B7E11
analogous
#11347E #24117E #5A117E
triadic
#24117E #7E2411 #117E24
tetradic
#24117E #7E1134 #6B7E11 #117E5A
square
#24117E #7E1134 #6B7E11 #117E5A
split-complementary
#24117E #7E5A11 #347E11
monochromatic
#08041B #150A48 #24117E #3318B4 #4827E2
Accessibility & contrast
On white
14.42
#24117E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#24117E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #24117E
14.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##24117E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##24117E | 1.00 | 14.42 | 1.46 | 14.42 |
| #FFFFFF | 14.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #24117e; /* rgb */ color: rgb(36, 17, 126); /* oklch */ color: oklch(30.2% 0.166 277.8);
Tailwind
colors: {
custom: {
50: '#6e54a5',
500: '#24117e',
950: '#000000',
},
}SCSS
$custom: #24117e; $custom-light: #6e54a5; $custom-dark: #000000;
JSON
{
"hex": "#24117e",
"rgb": {
"r": 36,
"g": 17,
"b": 126
},
"hsl": {
"h": 250.459,
"s": 76.224,
"l": 28.039
},
"oklch": {
"l": 0.30248,
"c": 0.16567,
"h": 277.8
},
"luminance": 0.02282
}Semantic roles & 50–950 ramp
primary
#24117E
secondary
#9EB437
accent
#F335D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F