#21229F#21229F
#21229F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.192 H 271.1°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).
Color values
| HEX | #21229F |
|---|---|
| RGB | rgb(33, 34, 159) |
| HSL | hsl(240, 66%, 38%) |
| HSV | hsv(240, 79%, 62%) |
| CMYK | cmyk(79.2%, 78.6%, 0%, 37.6%) |
| CIE-LAB | lab(23.57, 43.46, -66.34) |
| CIE-LCH | lch(23.57, 79.31, 303.23°) |
| OKLab | oklab(35.98% 0.0035 -0.1921) |
| OKLCH | oklch(35.98% 0.192 271.1) |
| XYZ | xyz(7.4551, 3.9698, 33.1675) |
| Luminance | 0.0397 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.09
Cobalt Blue
#030AA7
ΔE00 4.04
Indigo Blue
#3A18B1
ΔE00 4.05
Royal Blue (survey)
#0504AA
ΔE00 4.57
Ultramarine
#2000B1
ΔE00 4.88
True Blue
#010FCC
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21229F #9F9E21
analogous
#21619F #21229F #5F219F
triadic
#21229F #9F2122 #229F21
tetradic
#21229F #9F2161 #9F9E21 #219F5F
square
#21229F #9F2161 #9F9E21 #219F5F
split-complementary
#21229F #9F5F21 #619F21
monochromatic
#0C0C3A #16176C #21229F #2C2DD2 #5D5EDD
Accessibility & contrast
On white
11.70
#21229F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#21229F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21229F
11.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21229F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21229F | 1.00 | 11.70 | 1.79 | 11.70 |
| #FFFFFF | 11.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #21229f; /* rgb */ color: rgb(33, 34, 159); /* oklch */ color: oklch(36.0% 0.192 271.1);
Tailwind
colors: {
custom: {
50: '#745fbd',
500: '#21229f',
950: '#000000',
},
}SCSS
$custom: #21229f; $custom-light: #745fbd; $custom-dark: #000000;
JSON
{
"hex": "#21229f",
"rgb": {
"r": 33,
"g": 34,
"b": 159
},
"hsl": {
"h": 239.524,
"s": 65.625,
"l": 37.647
},
"oklch": {
"l": 0.35979,
"c": 0.19212,
"h": 271.1
},
"luminance": 0.03971
}Semantic roles & 50–950 ramp
primary
#21229F
secondary
#C2C15A
accent
#E73FE9
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981