#212E8E#212E8E
#212E8E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.158 H 270.1°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).
Color values
| HEX | #212E8E |
|---|---|
| RGB | rgb(33, 46, 142) |
| HSL | hsl(233, 62%, 34%) |
| HSV | hsv(233, 77%, 56%) |
| CMYK | cmyk(76.8%, 67.6%, 0%, 44.3%) |
| CIE-LAB | lab(24.42, 30.10, -54.49) |
| CIE-LCH | lch(24.42, 62.25, 298.92°) |
| OKLab | oklab(36.05% 0.0003 -0.1576) |
| OKLCH | oklch(36.05% 0.158 270.1) |
| XYZ | xyz(6.4850, 4.2296, 26.0606) |
| Luminance | 0.0423 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.74
Royal
#0C1793
ΔE00 5.91
Blueberry
#464196
ΔE00 6.73
Midnight Blue
#191970
ΔE00 6.73
Darkslateblue
#483D8B
ΔE00 6.76
Indigo Blue
#3A18B1
ΔE00 8.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212E8E #8E8121
analogous
#21658E #212E8E #4B218E
triadic
#212E8E #8E212E #2E8E21
tetradic
#212E8E #8E2165 #8E8121 #218E4B
square
#212E8E #8E2165 #8E8121 #218E4B
split-complementary
#212E8E #8E4B21 #658E21
monochromatic
#0A0E2B #151E5C #212E8E #2D3EC0 #5262D7
Accessibility & contrast
On white
11.38
#212E8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#212E8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212E8E
11.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212E8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212E8E | 1.00 | 11.38 | 1.85 | 11.38 |
| #FFFFFF | 11.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #212e8e; /* rgb */ color: rgb(33, 46, 142); /* oklch */ color: oklch(36.0% 0.158 270.1);
Tailwind
colors: {
custom: {
50: '#6e67b0',
500: '#212e8e',
950: '#000000',
},
}SCSS
$custom: #212e8e; $custom-light: #6e67b0; $custom-dark: #000000;
JSON
{
"hex": "#212e8e",
"rgb": {
"r": 33,
"g": 46,
"b": 142
},
"hsl": {
"h": 232.844,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.3605,
"c": 0.15763,
"h": 270.1
},
"luminance": 0.0423
}Semantic roles & 50–950 ramp
primary
#212E8E
secondary
#BAAE50
accent
#D242E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80