#24237F#24237F
#24237F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.150 H 274.8°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).
Color values
| HEX | #24237F |
|---|---|
| RGB | rgb(36, 35, 127) |
| HSL | hsl(241, 57%, 32%) |
| HSV | hsv(241, 72%, 50%) |
| CMYK | cmyk(71.7%, 72.4%, 0%, 50.2%) |
| CIE-LAB | lab(20.48, 32.08, -51.56) |
| CIE-LCH | lch(20.48, 60.72, 301.89°) |
| OKLab | oklab(32.79% 0.0126 -0.149) |
| OKLCH | oklch(32.79% 0.15 274.8) |
| XYZ | xyz(5.1581, 3.1090, 20.4028) |
| Luminance | 0.0311 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.24
Royal
#0C1793
ΔE00 4.42
Dark Royal Blue
#02066F
ΔE00 6.76
Indigo (survey)
#380282
ΔE00 6.90
Darkblue
#00008B
ΔE00 7.00
Navy
#000080
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#24237F #7E7F23
analogous
#23507F #24237F #52237F
triadic
#24237F #7F2423 #237F24
tetradic
#24237F #7F2350 #7E7F23 #237F52
square
#24237F #7F2350 #7E7F23 #237F52
split-complementary
#24237F #7F5223 #507F23
monochromatic
#09091F #16164F #24237F #3230AF #504ECE
Accessibility & contrast
On white
12.95
#24237F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#24237F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #24237F
12.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##24237F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##24237F | 1.00 | 12.95 | 1.62 | 12.95 |
| #FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #24237f; /* rgb */ color: rgb(36, 35, 127); /* oklch */ color: oklch(32.8% 0.150 274.8);
Tailwind
colors: {
custom: {
50: '#6d5fa5',
500: '#24237f',
950: '#000000',
},
}SCSS
$custom: #24237f; $custom-light: #6d5fa5; $custom-dark: #000000;
JSON
{
"hex": "#24237f",
"rgb": {
"r": 36,
"g": 35,
"b": 127
},
"hsl": {
"h": 240.652,
"s": 56.79,
"l": 31.765
},
"oklch": {
"l": 0.32793,
"c": 0.14954,
"h": 274.8
},
"luminance": 0.03109
}Semantic roles & 50–950 ramp
primary
#24237F
secondary
#B0B14C
accent
#E048DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F