#21227F#21227F
#21227F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.151 H 273.6°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).
Color values
| HEX | #21227F |
|---|---|
| RGB | rgb(33, 34, 127) |
| HSL | hsl(239, 59%, 31%) |
| HSV | hsv(239, 74%, 50%) |
| CMYK | cmyk(74%, 73.2%, 0%, 50.2%) |
| CIE-LAB | lab(20.04, 32.36, -52.28) |
| CIE-LCH | lch(20.04, 61.48, 301.75°) |
| OKLab | oklab(32.43% 0.0094 -0.1512) |
| OKLCH | oklch(32.43% 0.151 273.6) |
| XYZ | xyz(5.0287, 2.9992, 20.3884) |
| Luminance | 0.0300 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.03
Royal
#0C1793
ΔE00 4.19
Dark Royal Blue
#02066F
ΔE00 6.48
Darkblue
#00008B
ΔE00 6.74
Navy
#000080
ΔE00 6.81
Indigo (survey)
#380282
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21227F #7F7E21
analogous
#21517F #21227F #4F217F
triadic
#21227F #7F2122 #227F21
tetradic
#21227F #7F2151 #7F7E21 #217F4F
square
#21227F #7F2151 #7F7E21 #217F4F
split-complementary
#21227F #7F4F21 #517F21
monochromatic
#08081E #14154E #21227F #2E2FB0 #4A4CD0
Accessibility & contrast
On white
13.13
#21227F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#21227F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21227F
13.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21227F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21227F | 1.00 | 13.13 | 1.60 | 13.13 |
| #FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #21227f; /* rgb */ color: rgb(33, 34, 127); /* oklch */ color: oklch(32.4% 0.151 273.6);
Tailwind
colors: {
custom: {
50: '#6c5ea5',
500: '#21227f',
950: '#000000',
},
}SCSS
$custom: #21227f; $custom-light: #6c5ea5; $custom-dark: #000000;
JSON
{
"hex": "#21227f",
"rgb": {
"r": 33,
"g": 34,
"b": 127
},
"hsl": {
"h": 239.362,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.32427,
"c": 0.15148,
"h": 273.6
},
"luminance": 0.03
}Semantic roles & 50–950 ramp
primary
#21227F
secondary
#B2B14A
accent
#E046E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F