#21237E#21237E
#21237E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.149 H 273.4°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).
Color values
| HEX | #21237E |
|---|---|
| RGB | rgb(33, 35, 126) |
| HSL | hsl(239, 58%, 31%) |
| HSV | hsv(239, 74%, 49%) |
| CMYK | cmyk(73.8%, 72.2%, 0%, 50.6%) |
| CIE-LAB | lab(20.17, 31.36, -51.44) |
| CIE-LCH | lch(20.17, 60.24, 301.37°) |
| OKLab | oklab(32.49% 0.0089 -0.1487) |
| OKLCH | oklch(32.49% 0.149 273.4) |
| XYZ | xyz(4.9929, 3.0313, 20.0566) |
| Luminance | 0.0303 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.11
Royal
#0C1793
ΔE00 4.52
Dark Royal Blue
#02066F
ΔE00 6.71
Darkblue
#00008B
ΔE00 7.08
Navy
#000080
ΔE00 7.13
Deep Blue
#040273
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21237E #7E7C21
analogous
#21517E #21237E #4D217E
triadic
#21237E #7E2123 #237E21
tetradic
#21237E #7E2151 #7E7C21 #217E4D
square
#21237E #7E2151 #7E7C21 #217E4D
split-complementary
#21237E #7E4D21 #517E21
monochromatic
#08081D #14164E #21237E #2E30AE #4A4DD0
Accessibility & contrast
On white
13.07
#21237E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#21237E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21237E
13.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21237E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21237E | 1.00 | 13.07 | 1.61 | 13.07 |
| #FFFFFF | 13.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #21237e; /* rgb */ color: rgb(33, 35, 126); /* oklch */ color: oklch(32.5% 0.149 273.4);
Tailwind
colors: {
custom: {
50: '#6b5ea4',
500: '#21237e',
950: '#000000',
},
}SCSS
$custom: #21237e; $custom-light: #6b5ea4; $custom-dark: #000000;
JSON
{
"hex": "#21237e",
"rgb": {
"r": 33,
"g": 35,
"b": 126
},
"hsl": {
"h": 238.71,
"s": 58.491,
"l": 31.176
},
"oklch": {
"l": 0.32488,
"c": 0.149,
"h": 273.4
},
"luminance": 0.03032
}Semantic roles & 50–950 ramp
primary
#21237E
secondary
#B1AF4A
accent
#DE46E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F