#20339C#20339C
#20339C is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.3% C 0.171 H 268.5°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).
Color values
| HEX | #20339C |
|---|---|
| RGB | rgb(32, 51, 156) |
| HSL | hsl(231, 66%, 37%) |
| HSV | hsv(231, 79%, 61%) |
| CMYK | cmyk(79.5%, 67.3%, 0%, 38.8%) |
| CIE-LAB | lab(26.94, 31.97, -58.95) |
| CIE-LCH | lch(26.94, 67.06, 298.47°) |
| OKLab | oklab(38.29% -0.0045 -0.1706) |
| OKLCH | oklch(38.29% 0.171 268.5) |
| XYZ | xyz(7.7782, 5.0741, 32.0155) |
| Luminance | 0.0508 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.42
Blueberry
#464196
ΔE00 6.00
Darkslateblue
#483D8B
ΔE00 6.81
Blue Blue
#2242C7
ΔE00 6.98
Royal
#0C1793
ΔE00 7.04
Cobalt
#0047AB
ΔE00 7.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20339C #9C8920
analogous
#20719C #20339C #4B209C
triadic
#20339C #9C2033 #339C20
tetradic
#20339C #9C2071 #9C8920 #209C4B
square
#20339C #9C2071 #9C8920 #209C4B
split-complementary
#20339C #9C4B20 #719C20
monochromatic
#0B1236 #162269 #20339C #2A44CF #596EDD
Accessibility & contrast
On white
10.42
#20339C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#20339C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20339C
10.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20339C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20339C | 1.00 | 10.42 | 2.02 | 10.42 |
| #FFFFFF | 10.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #20339c; /* rgb */ color: rgb(32, 51, 156); /* oklch */ color: oklch(38.3% 0.171 268.5);
Tailwind
colors: {
custom: {
50: '#716aba',
500: '#20339c',
950: '#000000',
},
}SCSS
$custom: #20339c; $custom-light: #716aba; $custom-dark: #000000;
JSON
{
"hex": "#20339c",
"rgb": {
"r": 32,
"g": 51,
"b": 156
},
"hsl": {
"h": 230.806,
"s": 65.957,
"l": 36.863
},
"oklch": {
"l": 0.38292,
"c": 0.17071,
"h": 268.5
},
"luminance": 0.05075
}Semantic roles & 50–950 ramp
primary
#20339C
secondary
#C1B157
accent
#CF3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81