#21237C#21237C
#21237C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.146 H 273.6°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).
Color values
| HEX | #21237C |
|---|---|
| RGB | rgb(33, 35, 124) |
| HSL | hsl(239, 58%, 31%) |
| HSV | hsv(239, 73%, 49%) |
| CMYK | cmyk(73.4%, 71.8%, 0%, 51.4%) |
| CIE-LAB | lab(19.96, 30.63, -50.50) |
| CIE-LCH | lch(19.96, 59.06, 301.24°) |
| OKLab | oklab(32.28% 0.0092 -0.146) |
| OKLCH | oklch(32.28% 0.146 273.6) |
| XYZ | xyz(4.8651, 2.9802, 19.3837) |
| Luminance | 0.0298 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.96
Royal
#0C1793
ΔE00 4.79
Dark Royal Blue
#02066F
ΔE00 6.70
Darkblue (survey)
#030764
ΔE00 7.17
Deep Blue
#040273
ΔE00 7.18
Navy
#000080
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21237C #7C7A21
analogous
#21507C #21237C #4C217C
triadic
#21237C #7C2123 #237C21
tetradic
#21237C #7C2150 #7C7A21 #217C4C
square
#21237C #7C2150 #7C7A21 #217C4C
split-complementary
#21237C #7C4C21 #507C21
monochromatic
#07081B #14154C #21237C #2E31AC #494CCF
Accessibility & contrast
On white
13.16
#21237C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#21237C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21237C
13.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21237C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21237C | 1.00 | 13.16 | 1.60 | 13.16 |
| #FFFFFF | 13.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #21237c; /* rgb */ color: rgb(33, 35, 124); /* oklch */ color: oklch(32.3% 0.146 273.6);
Tailwind
colors: {
custom: {
50: '#6b5ea3',
500: '#21237c',
950: '#000000',
},
}SCSS
$custom: #21237c; $custom-light: #6b5ea3; $custom-dark: #000000;
JSON
{
"hex": "#21237c",
"rgb": {
"r": 33,
"g": 35,
"b": 124
},
"hsl": {
"h": 238.681,
"s": 57.962,
"l": 30.784
},
"oklch": {
"l": 0.32279,
"c": 0.14629,
"h": 273.6
},
"luminance": 0.02981
}Semantic roles & 50–950 ramp
primary
#21237C
secondary
#AFAD4A
accent
#DE47E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F