#20297F#20297F
#20297F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.143 H 271.5°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).
Color values
| HEX | #20297F |
|---|---|
| RGB | rgb(32, 41, 127) |
| HSL | hsl(234, 60%, 31%) |
| HSV | hsv(234, 75%, 50%) |
| CMYK | cmyk(74.8%, 67.7%, 0%, 50.2%) |
| CIE-LAB | lab(21.67, 27.66, -49.61) |
| CIE-LCH | lch(21.67, 56.80, 299.14°) |
| OKLab | oklab(33.59% 0.0036 -0.1434) |
| OKLCH | oklch(33.59% 0.143 271.5) |
| XYZ | xyz(5.2181, 3.4247, 20.4606) |
| Luminance | 0.0343 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.61
Royal
#0C1793
ΔE00 5.81
Sapphire (survey)
#2138AB
ΔE00 7.23
Darkslateblue
#483D8B
ΔE00 7.52
Marine
#042E60
ΔE00 7.78
Blueberry
#464196
ΔE00 8.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20297F #7F7620
analogous
#20587F #20297F #46207F
triadic
#20297F #7F2029 #297F20
tetradic
#20297F #7F2058 #7F7620 #207F46
square
#20297F #7F2058 #7F7620 #207F46
split-complementary
#20297F #7F4620 #587F20
monochromatic
#07091D #14194E #20297F #2C39B0 #4855D1
Accessibility & contrast
On white
12.46
#20297F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#20297F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20297F
12.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20297F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20297F | 1.00 | 12.46 | 1.69 | 12.46 |
| #FFFFFF | 12.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #20297f; /* rgb */ color: rgb(32, 41, 127); /* oklch */ color: oklch(33.6% 0.143 271.5);
Tailwind
colors: {
custom: {
50: '#6b63a5',
500: '#20297f',
950: '#000000',
},
}SCSS
$custom: #20297f; $custom-light: #6b63a5; $custom-dark: #000000;
JSON
{
"hex": "#20297f",
"rgb": {
"r": 32,
"g": 41,
"b": 127
},
"hsl": {
"h": 234.316,
"s": 59.748,
"l": 31.176
},
"oklch": {
"l": 0.3359,
"c": 0.14344,
"h": 271.5
},
"luminance": 0.03425
}Semantic roles & 50–950 ramp
primary
#20297F
secondary
#B2A849
accent
#D445E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F