#212786#212786
#212786 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.155 H 272.0°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).
Color values
| HEX | #212786 |
|---|---|
| RGB | rgb(33, 39, 134) |
| HSL | hsl(236, 60%, 33%) |
| HSV | hsv(236, 75%, 53%) |
| CMYK | cmyk(75.4%, 70.9%, 0%, 47.5%) |
| CIE-LAB | lab(21.93, 31.71, -53.59) |
| CIE-LCH | lch(21.93, 62.27, 300.61°) |
| OKLab | oklab(34% 0.0054 -0.155) |
| OKLCH | oklch(34% 0.155 272) |
| XYZ | xyz(5.6543, 3.4950, 22.9262) |
| Luminance | 0.0350 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 4.52
Midnight Blue
#191970
ΔE00 4.59
Sapphire (survey)
#2138AB
ΔE00 6.71
Cobalt Blue
#030AA7
ΔE00 7.22
Darkblue
#00008B
ΔE00 7.69
Darkslateblue
#483D8B
ΔE00 7.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212786 #868021
analogous
#215986 #212786 #4E2186
triadic
#212786 #862127 #278621
tetradic
#212786 #862159 #868021 #21864E
square
#212786 #862159 #868021 #21864E
split-complementary
#212786 #864E21 #598621
monochromatic
#090A24 #151955 #212786 #2D35B7 #4E56D3
Accessibility & contrast
On white
12.36
#212786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#212786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212786
12.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212786 | 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)
#003989
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #212786; /* rgb */ color: rgb(33, 39, 134); /* oklch */ color: oklch(34.0% 0.155 272.0);
Tailwind
colors: {
custom: {
50: '#6d61aa',
500: '#212786',
950: '#000000',
},
}SCSS
$custom: #212786; $custom-light: #6d61aa; $custom-dark: #000000;
JSON
{
"hex": "#212786",
"rgb": {
"r": 33,
"g": 39,
"b": 134
},
"hsl": {
"h": 236.436,
"s": 60.479,
"l": 32.745
},
"oklch": {
"l": 0.34002,
"c": 0.15511,
"h": 272
},
"luminance": 0.03496
}Semantic roles & 50–950 ramp
primary
#212786
secondary
#B7B04C
accent
#DA44E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F