#212A7B#212A7B
#212A7B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.136 H 271.8°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).
Color values
| HEX | #212A7B |
|---|---|
| RGB | rgb(33, 42, 123) |
| HSL | hsl(234, 58%, 31%) |
| HSV | hsv(234, 73%, 48%) |
| CMYK | cmyk(73.2%, 65.9%, 0%, 51.8%) |
| CIE-LAB | lab(21.61, 25.59, -47.16) |
| CIE-LCH | lch(21.61, 53.66, 298.48°) |
| OKLab | oklab(33.45% 0.0043 -0.1362) |
| OKLCH | oklch(33.45% 0.136 271.8) |
| XYZ | xyz(5.0291, 3.4088, 19.1280) |
| Luminance | 0.0341 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.80
Royal
#0C1793
ΔE00 6.58
Marine
#042E60
ΔE00 7.20
Darkslateblue
#483D8B
ΔE00 7.41
Sapphire (survey)
#2138AB
ΔE00 7.66
Blueberry
#464196
ΔE00 8.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212A7B #7B7221
analogous
#21577B #212A7B #45217B
triadic
#212A7B #7B212A #2A7B21
tetradic
#212A7B #7B2157 #7B7221 #217B45
square
#212A7B #7B2157 #7B7221 #217B45
split-complementary
#212A7B #7B4521 #577B21
monochromatic
#07091A #141A4B #212A7B #2E3AAB #4856CE
Accessibility & contrast
On white
12.49
#212A7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#212A7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212A7B
12.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212A7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212A7B | 1.00 | 12.49 | 1.68 | 12.49 |
| #FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #212a7b; /* rgb */ color: rgb(33, 42, 123); /* oklch */ color: oklch(33.4% 0.136 271.8);
Tailwind
colors: {
custom: {
50: '#6a63a2',
500: '#212a7b',
950: '#000000',
},
}SCSS
$custom: #212a7b; $custom-light: #6a63a2; $custom-dark: #000000;
JSON
{
"hex": "#212a7b",
"rgb": {
"r": 33,
"g": 42,
"b": 123
},
"hsl": {
"h": 234,
"s": 57.692,
"l": 30.588
},
"oklch": {
"l": 0.33448,
"c": 0.13627,
"h": 271.8
},
"luminance": 0.03409
}Semantic roles & 50–950 ramp
primary
#212A7B
secondary
#AEA44A
accent
#D247E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F