#212C8B#212C8B
#212C8B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.156 H 270.7°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).
Color values
| HEX | #212C8B |
|---|---|
| RGB | rgb(33, 44, 139) |
| HSL | hsl(234, 62%, 34%) |
| HSV | hsv(234, 76%, 55%) |
| CMYK | cmyk(76.3%, 68.3%, 0%, 45.5%) |
| CIE-LAB | lab(23.63, 30.30, -53.92) |
| CIE-LCH | lch(23.63, 61.85, 299.34°) |
| OKLab | oklab(35.39% 0.0018 -0.1559) |
| OKLCH | oklch(35.39% 0.156 270.7) |
| XYZ | xyz(6.1865, 3.9881, 24.8648) |
| Luminance | 0.0399 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.37
Royal
#0C1793
ΔE00 5.50
Midnight Blue
#191970
ΔE00 6.05
Darkslateblue
#483D8B
ΔE00 6.97
Blueberry
#464196
ΔE00 7.14
Cobalt Blue
#030AA7
ΔE00 7.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212C8B #8B8021
analogous
#21618B #212C8B #4B218B
triadic
#212C8B #8B212C #2C8B21
tetradic
#212C8B #8B2161 #8B8021 #218B4B
square
#212C8B #8B2161 #8B8021 #218B4B
split-complementary
#212C8B #8B4B21 #618B21
monochromatic
#0A0D28 #151C5A #212C8B #2D3CBC #515FD6
Accessibility & contrast
On white
11.68
#212C8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#212C8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212C8B
11.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212C8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212C8B | 1.00 | 11.68 | 1.80 | 11.68 |
| #FFFFFF | 11.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #212c8b; /* rgb */ color: rgb(33, 44, 139); /* oklch */ color: oklch(35.4% 0.156 270.7);
Tailwind
colors: {
custom: {
50: '#6e65ae',
500: '#212c8b',
950: '#000000',
},
}SCSS
$custom: #212c8b; $custom-light: #6e65ae; $custom-dark: #000000;
JSON
{
"hex": "#212c8b",
"rgb": {
"r": 33,
"g": 44,
"b": 139
},
"hsl": {
"h": 233.774,
"s": 61.628,
"l": 33.725
},
"oklch": {
"l": 0.3539,
"c": 0.15596,
"h": 270.7
},
"luminance": 0.03989
}Semantic roles & 50–950 ramp
primary
#212C8B
secondary
#B9AE4F
accent
#D443E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F