#212B7E#212B7E
#212B7E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.139 H 271.4°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).
Color values
| HEX | #212B7E |
|---|---|
| RGB | rgb(33, 43, 126) |
| HSL | hsl(234, 58%, 31%) |
| HSV | hsv(234, 74%, 49%) |
| CMYK | cmyk(73.8%, 65.9%, 0%, 50.6%) |
| CIE-LAB | lab(22.15, 26.05, -48.19) |
| CIE-LCH | lch(22.15, 54.78, 298.40°) |
| OKLab | oklab(33.93% 0.0034 -0.1392) |
| OKLCH | oklch(33.93% 0.139 271.4) |
| XYZ | xyz(5.2557, 3.5569, 20.1442) |
| Luminance | 0.0356 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.13
Royal
#0C1793
ΔE00 6.47
Sapphire (survey)
#2138AB
ΔE00 7.15
Darkslateblue
#483D8B
ΔE00 7.20
Marine
#042E60
ΔE00 7.33
Blueberry
#464196
ΔE00 7.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212B7E #7E7421
analogous
#21597E #212B7E #45217E
triadic
#212B7E #7E212B #2B7E21
tetradic
#212B7E #7E2159 #7E7421 #217E45
square
#212B7E #7E2159 #7E7421 #217E45
split-complementary
#212B7E #7E4521 #597E21
monochromatic
#080A1D #141A4E #212B7E #2E3CAE #4A58D0
Accessibility & contrast
On white
12.27
#212B7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#212B7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212B7E
12.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212B7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212B7E | 1.00 | 12.27 | 1.71 | 12.27 |
| #FFFFFF | 12.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #212b7e; /* rgb */ color: rgb(33, 43, 126); /* oklch */ color: oklch(33.9% 0.139 271.4);
Tailwind
colors: {
custom: {
50: '#6b64a4',
500: '#212b7e',
950: '#000000',
},
}SCSS
$custom: #212b7e; $custom-light: #6b64a4; $custom-dark: #000000;
JSON
{
"hex": "#212b7e",
"rgb": {
"r": 33,
"g": 43,
"b": 126
},
"hsl": {
"h": 233.548,
"s": 58.491,
"l": 31.176
},
"oklch": {
"l": 0.33928,
"c": 0.13923,
"h": 271.4
},
"luminance": 0.03557
}Semantic roles & 50–950 ramp
primary
#212B7E
secondary
#B1A64A
accent
#D146E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F