#212C82#212C82
#212C82 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.144 H 271.0°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).
Color values
| HEX | #212C82 |
|---|---|
| RGB | rgb(33, 44, 130) |
| HSL | hsl(233, 60%, 32%) |
| HSV | hsv(233, 75%, 51%) |
| CMYK | cmyk(74.6%, 66.2%, 0%, 49%) |
| CIE-LAB | lab(22.78, 26.90, -49.68) |
| CIE-LCH | lch(22.78, 56.50, 298.43°) |
| OKLab | oklab(34.5% 0.0024 -0.1436) |
| OKLCH | oklch(34.5% 0.144 271) |
| XYZ | xyz(5.5558, 3.7358, 21.5431) |
| Luminance | 0.0374 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.53
Royal
#0C1793
ΔE00 6.30
Sapphire (survey)
#2138AB
ΔE00 6.50
Darkslateblue
#483D8B
ΔE00 6.99
Blueberry
#464196
ΔE00 7.45
Marine
#042E60
ΔE00 7.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212C82 #827721
analogous
#215D82 #212C82 #472182
triadic
#212C82 #82212C #2C8221
tetradic
#212C82 #82215D #827721 #218247
square
#212C82 #82215D #827721 #218247
split-complementary
#212C82 #824721 #5D8221
monochromatic
#080B20 #151B51 #212C82 #2D3DB3 #4C5BD2
Accessibility & contrast
On white
12.02
#212C82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#212C82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212C82
12.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212C82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212C82 | 1.00 | 12.02 | 1.75 | 12.02 |
| #FFFFFF | 12.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #212c82; /* rgb */ color: rgb(33, 44, 130); /* oklch */ color: oklch(34.5% 0.144 271.0);
Tailwind
colors: {
custom: {
50: '#6c65a7',
500: '#212c82',
950: '#000000',
},
}SCSS
$custom: #212c82; $custom-light: #6c65a7; $custom-dark: #000000;
JSON
{
"hex": "#212c82",
"rgb": {
"r": 33,
"g": 44,
"b": 130
},
"hsl": {
"h": 233.196,
"s": 59.509,
"l": 31.961
},
"oklch": {
"l": 0.34504,
"c": 0.14358,
"h": 271
},
"luminance": 0.03736
}Semantic roles & 50–950 ramp
primary
#212C82
secondary
#B4A84A
accent
#D145E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F