#212386#212386
#212386 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.160 H 272.8°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).
Color values
| HEX | #212386 |
|---|---|
| RGB | rgb(33, 35, 134) |
| HSL | hsl(239, 60%, 33%) |
| HSV | hsv(239, 75%, 53%) |
| CMYK | cmyk(75.4%, 73.9%, 0%, 47.5%) |
| CIE-LAB | lab(21.00, 34.25, -55.11) |
| CIE-LCH | lch(21.00, 64.89, 301.86°) |
| OKLab | oklab(33.34% 0.0077 -0.1594) |
| OKLCH | oklch(33.34% 0.16 272.8) |
| XYZ | xyz(5.5299, 3.2461, 22.8848) |
| Luminance | 0.0325 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.56
Midnight Blue
#191970
ΔE00 3.96
Cobalt Blue
#030AA7
ΔE00 6.38
Darkblue
#00008B
ΔE00 6.59
Indigo (survey)
#380282
ΔE00 6.87
Navy
#000080
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212386 #868421
analogous
#215586 #212386 #512186
triadic
#212386 #862123 #238621
tetradic
#212386 #862155 #868421 #218651
square
#212386 #862155 #868421 #218651
split-complementary
#212386 #865121 #558621
monochromatic
#090924 #151655 #212386 #2D30B7 #4E51D3
Accessibility & contrast
On white
12.73
#212386 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#212386 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212386
12.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212386 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212386 | 1.00 | 12.73 | 1.65 | 12.73 |
| #FFFFFF | 12.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #212386; /* rgb */ color: rgb(33, 35, 134); /* oklch */ color: oklch(33.3% 0.160 272.8);
Tailwind
colors: {
custom: {
50: '#6e5faa',
500: '#212386',
950: '#000000',
},
}SCSS
$custom: #212386; $custom-light: #6e5faa; $custom-dark: #000000;
JSON
{
"hex": "#212386",
"rgb": {
"r": 33,
"g": 35,
"b": 134
},
"hsl": {
"h": 238.812,
"s": 60.479,
"l": 32.745
},
"oklch": {
"l": 0.33338,
"c": 0.15963,
"h": 272.8
},
"luminance": 0.03247
}Semantic roles & 50–950 ramp
primary
#212386
secondary
#B7B44C
accent
#E044E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F