#20318F#20318F
#20318F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.156 H 269.0°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).
Color values
| HEX | #20318F |
|---|---|
| RGB | rgb(32, 49, 143) |
| HSL | hsl(231, 63%, 34%) |
| HSV | hsv(231, 78%, 56%) |
| CMYK | cmyk(77.6%, 65.7%, 0%, 43.9%) |
| CIE-LAB | lab(25.22, 28.37, -53.80) |
| CIE-LCH | lch(25.22, 60.82, 297.80°) |
| OKLab | oklab(36.65% -0.0026 -0.1556) |
| OKLCH | oklch(36.65% 0.156 269) |
| XYZ | xyz(6.6502, 4.4861, 26.4967) |
| Luminance | 0.0449 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.28
Blueberry
#464196
ΔE00 6.31
Darkslateblue
#483D8B
ΔE00 6.56
Royal
#0C1793
ΔE00 6.80
Midnight Blue
#191970
ΔE00 7.53
Cobalt
#0047AB
ΔE00 8.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20318F #8F7E20
analogous
#20698F #20318F #47208F
triadic
#20318F #8F2031 #318F20
tetradic
#20318F #8F2069 #8F7E20 #208F47
square
#20318F #8F2069 #8F7E20 #208F47
split-complementary
#20318F #8F4720 #698F20
monochromatic
#0A0F2B #15205D #20318F #2B42C1 #5166D8
Accessibility & contrast
On white
11.07
#20318F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#20318F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20318F
11.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20318F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20318F | 1.00 | 11.07 | 1.90 | 11.07 |
| #FFFFFF | 11.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #20318f; /* rgb */ color: rgb(32, 49, 143); /* oklch */ color: oklch(36.7% 0.156 269.0);
Tailwind
colors: {
custom: {
50: '#6e69b1',
500: '#20318f',
950: '#000000',
},
}SCSS
$custom: #20318f; $custom-light: #6e69b1; $custom-dark: #000000;
JSON
{
"hex": "#20318f",
"rgb": {
"r": 32,
"g": 49,
"b": 143
},
"hsl": {
"h": 230.811,
"s": 63.429,
"l": 34.314
},
"oklch": {
"l": 0.36651,
"c": 0.15562,
"h": 269
},
"luminance": 0.04487
}Semantic roles & 50–950 ramp
primary
#20318F
secondary
#BBAB4F
accent
#CD41E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80