#202A7F#202A7F
#202A7F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.142 H 271.2°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).
Color values
| HEX | #202A7F |
|---|---|
| RGB | rgb(32, 42, 127) |
| HSL | hsl(234, 60%, 31%) |
| HSV | hsv(234, 75%, 50%) |
| CMYK | cmyk(74.8%, 66.9%, 0%, 50.2%) |
| CIE-LAB | lab(21.93, 26.98, -49.19) |
| CIE-LCH | lch(21.93, 56.10, 298.75°) |
| OKLab | oklab(33.78% 0.0029 -0.1422) |
| OKLCH | oklch(33.78% 0.142 271.2) |
| XYZ | xyz(5.2531, 3.4948, 20.4723) |
| Luminance | 0.0350 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.89
Royal
#0C1793
ΔE00 6.09
Sapphire (survey)
#2138AB
ΔE00 7.12
Darkslateblue
#483D8B
ΔE00 7.38
Marine
#042E60
ΔE00 7.57
Blueberry
#464196
ΔE00 7.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#202A7F #7F7520
analogous
#20597F #202A7F #45207F
triadic
#202A7F #7F202A #2A7F20
tetradic
#202A7F #7F2059 #7F7520 #207F45
square
#202A7F #7F2059 #7F7520 #207F45
split-complementary
#202A7F #7F4520 #597F20
monochromatic
#070A1D #141A4E #202A7F #2C3AB0 #4857D1
Accessibility & contrast
On white
12.36
#202A7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#202A7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #202A7F
12.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##202A7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##202A7F | 1.00 | 12.36 | 1.70 | 12.36 |
| #FFFFFF | 12.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #202a7f; /* rgb */ color: rgb(32, 42, 127); /* oklch */ color: oklch(33.8% 0.142 271.2);
Tailwind
colors: {
custom: {
50: '#6b63a5',
500: '#202a7f',
950: '#000000',
},
}SCSS
$custom: #202a7f; $custom-light: #6b63a5; $custom-dark: #000000;
JSON
{
"hex": "#202a7f",
"rgb": {
"r": 32,
"g": 42,
"b": 127
},
"hsl": {
"h": 233.684,
"s": 59.748,
"l": 31.176
},
"oklch": {
"l": 0.33777,
"c": 0.14219,
"h": 271.2
},
"luminance": 0.03495
}Semantic roles & 50–950 ramp
primary
#202A7F
secondary
#B2A749
accent
#D245E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F