#212F8E#212F8E
#212F8E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.156 H 269.9°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).
Color values
| HEX | #212F8E |
|---|---|
| RGB | rgb(33, 47, 142) |
| HSL | hsl(232, 62%, 34%) |
| HSV | hsv(232, 77%, 56%) |
| CMYK | cmyk(76.8%, 66.9%, 0%, 44.3%) |
| CIE-LAB | lab(24.67, 29.44, -54.08) |
| CIE-LCH | lch(24.67, 61.57, 298.56°) |
| OKLab | oklab(36.23% -0.0003 -0.1564) |
| OKLCH | oklch(36.23% 0.156 269.9) |
| XYZ | xyz(6.5245, 4.3087, 26.0737) |
| Luminance | 0.0431 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.61
Royal
#0C1793
ΔE00 6.22
Blueberry
#464196
ΔE00 6.56
Darkslateblue
#483D8B
ΔE00 6.65
Midnight Blue
#191970
ΔE00 6.96
Indigo Blue
#3A18B1
ΔE00 8.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212F8E #8E8021
analogous
#21668E #212F8E #4A218E
triadic
#212F8E #8E212F #2F8E21
tetradic
#212F8E #8E2166 #8E8021 #218E4A
square
#212F8E #8E2166 #8E8021 #218E4A
split-complementary
#212F8E #8E4A21 #668E21
monochromatic
#0A0E2B #151F5C #212F8E #2D3FC0 #5263D7
Accessibility & contrast
On white
11.28
#212F8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#212F8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212F8E
11.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212F8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212F8E | 1.00 | 11.28 | 1.86 | 11.28 |
| #FFFFFF | 11.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #212f8e; /* rgb */ color: rgb(33, 47, 142); /* oklch */ color: oklch(36.2% 0.156 269.9);
Tailwind
colors: {
custom: {
50: '#6e67b0',
500: '#212f8e',
950: '#000000',
},
}SCSS
$custom: #212f8e; $custom-light: #6e67b0; $custom-dark: #000000;
JSON
{
"hex": "#212f8e",
"rgb": {
"r": 33,
"g": 47,
"b": 142
},
"hsl": {
"h": 232.294,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.36233,
"c": 0.15642,
"h": 269.9
},
"luminance": 0.04309
}Semantic roles & 50–950 ramp
primary
#212F8E
secondary
#BAAD50
accent
#D042E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80