#212D98#212D98
#212D98 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.172 H 270.0°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).
Color values
| HEX | #212D98 |
|---|---|
| RGB | rgb(33, 45, 152) |
| HSL | hsl(234, 64%, 36%) |
| HSV | hsv(234, 78%, 60%) |
| CMYK | cmyk(78.3%, 70.4%, 0%, 40.4%) |
| CIE-LAB | lab(25.16, 34.47, -59.44) |
| CIE-LCH | lch(25.16, 68.71, 300.11°) |
| OKLab | oklab(36.89% 0 -0.1721) |
| OKLCH | oklch(36.89% 0.172 270) |
| XYZ | xyz(7.2311, 4.4663, 30.1807) |
| Luminance | 0.0447 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.88
Royal
#0C1793
ΔE00 5.32
Indigo Blue
#3A18B1
ΔE00 6.60
Blueberry
#464196
ΔE00 6.88
Cobalt Blue
#030AA7
ΔE00 7.06
Darkslateblue
#483D8B
ΔE00 7.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212D98 #988C21
analogous
#216998 #212D98 #512198
triadic
#212D98 #98212D #2D9821
tetradic
#212D98 #982169 #988C21 #219851
square
#212D98 #982169 #988C21 #219851
split-complementary
#212D98 #985121 #699821
monochromatic
#0B0F33 #161E66 #212D98 #2C3CCA #5966DB
Accessibility & contrast
On white
11.09
#212D98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#212D98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212D98
11.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212D98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212D98 | 1.00 | 11.09 | 1.89 | 11.09 |
| #FFFFFF | 11.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #212d98; /* rgb */ color: rgb(33, 45, 152); /* oklch */ color: oklch(36.9% 0.172 270.0);
Tailwind
colors: {
custom: {
50: '#7166b7',
500: '#212d98',
950: '#000000',
},
}SCSS
$custom: #212d98; $custom-light: #7166b7; $custom-dark: #000000;
JSON
{
"hex": "#212d98",
"rgb": {
"r": 33,
"g": 45,
"b": 152
},
"hsl": {
"h": 233.95,
"s": 64.324,
"l": 36.275
},
"oklch": {
"l": 0.36886,
"c": 0.17209,
"h": 270
},
"luminance": 0.04467
}Semantic roles & 50–950 ramp
primary
#212D98
secondary
#BFB456
accent
#D640E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80