#21237B#21237B
#21237B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.145 H 273.7°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).
Color values
| HEX | #21237B |
|---|---|
| RGB | rgb(33, 35, 123) |
| HSL | hsl(239, 58%, 31%) |
| HSV | hsv(239, 73%, 48%) |
| CMYK | cmyk(73.2%, 71.5%, 0%, 51.8%) |
| CIE-LAB | lab(19.86, 30.26, -50.03) |
| CIE-LCH | lch(19.86, 58.47, 301.17°) |
| OKLab | oklab(32.17% 0.0093 -0.1446) |
| OKLCH | oklch(32.17% 0.145 273.7) |
| XYZ | xyz(4.8022, 2.9550, 19.0523) |
| Luminance | 0.0295 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.89
Royal
#0C1793
ΔE00 4.94
Dark Royal Blue
#02066F
ΔE00 6.69
Darkblue (survey)
#030764
ΔE00 7.12
Deep Blue
#040273
ΔE00 7.19
Navy
#000080
ΔE00 7.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21237B #7B7921
analogous
#21507B #21237B #4C217B
triadic
#21237B #7B2123 #237B21
tetradic
#21237B #7B2150 #7B7921 #217B4C
square
#21237B #7B2150 #7B7921 #217B4C
split-complementary
#21237B #7B4C21 #507B21
monochromatic
#07081A #14154B #21237B #2E31AB #484BCE
Accessibility & contrast
On white
13.20
#21237B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#21237B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21237B
13.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21237B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21237B | 1.00 | 13.20 | 1.59 | 13.20 |
| #FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #21237b; /* rgb */ color: rgb(33, 35, 123); /* oklch */ color: oklch(32.2% 0.145 273.7);
Tailwind
colors: {
custom: {
50: '#6b5ea2',
500: '#21237b',
950: '#000000',
},
}SCSS
$custom: #21237b; $custom-light: #6b5ea2; $custom-dark: #000000;
JSON
{
"hex": "#21237b",
"rgb": {
"r": 33,
"g": 35,
"b": 123
},
"hsl": {
"h": 238.667,
"s": 57.692,
"l": 30.588
},
"oklch": {
"l": 0.32175,
"c": 0.14492,
"h": 273.7
},
"luminance": 0.02955
}Semantic roles & 50–950 ramp
primary
#21237B
secondary
#AEAC4A
accent
#DE47E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F