#20297E#20297E
#20297E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.142 H 271.5°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).
Color values
| HEX | #20297E |
|---|---|
| RGB | rgb(32, 41, 126) |
| HSL | hsl(234, 59%, 31%) |
| HSV | hsv(234, 75%, 49%) |
| CMYK | cmyk(74.6%, 67.5%, 0%, 50.6%) |
| CIE-LAB | lab(21.58, 27.28, -49.13) |
| CIE-LCH | lch(21.58, 56.20, 299.04°) |
| OKLab | oklab(33.49% 0.0037 -0.142) |
| OKLCH | oklch(33.49% 0.142 271.5) |
| XYZ | xyz(5.1532, 3.3988, 20.1191) |
| Luminance | 0.0340 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.58
Royal
#0C1793
ΔE00 5.94
Sapphire (survey)
#2138AB
ΔE00 7.36
Darkslateblue
#483D8B
ΔE00 7.54
Marine
#042E60
ΔE00 7.67
Blueberry
#464196
ΔE00 8.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20297E #7E7520
analogous
#20587E #20297E #46207E
triadic
#20297E #7E2029 #297E20
tetradic
#20297E #7E2058 #7E7520 #207E46
square
#20297E #7E2058 #7E7520 #207E46
split-complementary
#20297E #7E4620 #587E20
monochromatic
#07091C #14194D #20297E #2C39AF #4855D0
Accessibility & contrast
On white
12.50
#20297E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#20297E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20297E
12.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20297E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20297E | 1.00 | 12.50 | 1.68 | 12.50 |
| #FFFFFF | 12.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #20297e; /* rgb */ color: rgb(32, 41, 126); /* oklch */ color: oklch(33.5% 0.142 271.5);
Tailwind
colors: {
custom: {
50: '#6a63a4',
500: '#20297e',
950: '#000000',
},
}SCSS
$custom: #20297e; $custom-light: #6a63a4; $custom-dark: #000000;
JSON
{
"hex": "#20297e",
"rgb": {
"r": 32,
"g": 41,
"b": 126
},
"hsl": {
"h": 234.255,
"s": 59.494,
"l": 30.98
},
"oklch": {
"l": 0.33491,
"c": 0.14204,
"h": 271.5
},
"luminance": 0.03399
}Semantic roles & 50–950 ramp
primary
#20297E
secondary
#B1A749
accent
#D445E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F