#20228E#20228E
#20228E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.171 H 271.9°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).
Color values
| HEX | #20228E |
|---|---|
| RGB | rgb(32, 34, 142) |
| HSL | hsl(239, 63%, 34%) |
| HSV | hsv(239, 77%, 56%) |
| CMYK | cmyk(77.5%, 76.1%, 0%, 44.3%) |
| CIE-LAB | lab(21.59, 37.58, -59.14) |
| CIE-LCH | lch(21.59, 70.08, 302.44°) |
| OKLab | oklab(34% 0.0056 -0.1712) |
| OKLCH | oklch(34% 0.171 271.9) |
| XYZ | xyz(6.0485, 3.4035, 25.9241) |
| Luminance | 0.0340 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.70
Midnight Blue
#191970
ΔE00 4.89
Cobalt Blue
#030AA7
ΔE00 5.26
Royal Blue (survey)
#0504AA
ΔE00 5.86
Darkblue
#00008B
ΔE00 6.12
Indigo Blue
#3A18B1
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20228E #8E8C20
analogous
#20598E #20228E #55208E
triadic
#20228E #8E2022 #228E20
tetradic
#20228E #8E2059 #8E8C20 #208E55
square
#20228E #8E2059 #8E8C20 #208E55
split-complementary
#20228E #8E5520 #598E20
monochromatic
#090A2A #15165C #20228E #2B2EC0 #5153D8
Accessibility & contrast
On white
12.49
#20228E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#20228E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20228E
12.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20228E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20228E | 1.00 | 12.49 | 1.68 | 12.49 |
| #FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #20228e; /* rgb */ color: rgb(32, 34, 142); /* oklch */ color: oklch(34.0% 0.171 271.9);
Tailwind
colors: {
custom: {
50: '#6f5eb0',
500: '#20228e',
950: '#000000',
},
}SCSS
$custom: #20228e; $custom-light: #6f5eb0; $custom-dark: #000000;
JSON
{
"hex": "#20228e",
"rgb": {
"r": 32,
"g": 34,
"b": 142
},
"hsl": {
"h": 238.909,
"s": 63.218,
"l": 34.118
},
"oklch": {
"l": 0.34,
"c": 0.1713,
"h": 271.9
},
"luminance": 0.03404
}Semantic roles & 50–950 ramp
primary
#20228E
secondary
#BBB94F
accent
#E342E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980