#212B7F#212B7F
#212B7F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.141 H 271.4°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).
Color values
| HEX | #212B7F |
|---|---|
| RGB | rgb(33, 43, 127) |
| HSL | hsl(234, 59%, 31%) |
| HSV | hsv(234, 74%, 50%) |
| CMYK | cmyk(74%, 66.1%, 0%, 50.2%) |
| CIE-LAB | lab(22.24, 26.43, -48.67) |
| CIE-LCH | lch(22.24, 55.38, 298.51°) |
| OKLab | oklab(34.02% 0.0033 -0.1406) |
| OKLCH | oklch(34.02% 0.141 271.4) |
| XYZ | xyz(5.3205, 3.5829, 20.4857) |
| Luminance | 0.0358 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.16
Royal
#0C1793
ΔE00 6.35
Sapphire (survey)
#2138AB
ΔE00 7.01
Darkslateblue
#483D8B
ΔE00 7.17
Marine
#042E60
ΔE00 7.45
Blueberry
#464196
ΔE00 7.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212B7F #7F7521
analogous
#215A7F #212B7F #46217F
triadic
#212B7F #7F212B #2B7F21
tetradic
#212B7F #7F215A #7F7521 #217F46
square
#212B7F #7F215A #7F7521 #217F46
split-complementary
#212B7F #7F4621 #5A7F21
monochromatic
#080A1E #141B4E #212B7F #2E3BB0 #4A59D0
Accessibility & contrast
On white
12.23
#212B7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#212B7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212B7F
12.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212B7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212B7F | 1.00 | 12.23 | 1.72 | 12.23 |
| #FFFFFF | 12.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #212b7f; /* rgb */ color: rgb(33, 43, 127); /* oklch */ color: oklch(34.0% 0.141 271.4);
Tailwind
colors: {
custom: {
50: '#6b64a5',
500: '#212b7f',
950: '#000000',
},
}SCSS
$custom: #212b7f; $custom-light: #6b64a5; $custom-dark: #000000;
JSON
{
"hex": "#212b7f",
"rgb": {
"r": 33,
"g": 43,
"b": 127
},
"hsl": {
"h": 233.617,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.34024,
"c": 0.14064,
"h": 271.4
},
"luminance": 0.03583
}Semantic roles & 50–950 ramp
primary
#212B7F
secondary
#B2A74A
accent
#D146E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F