#212F99#212F99
#212F99 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.171 H 269.6°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).
Color values
| HEX | #212F99 |
|---|---|
| RGB | rgb(33, 47, 153) |
| HSL | hsl(233, 65%, 36%) |
| HSV | hsv(233, 78%, 60%) |
| CMYK | cmyk(78.4%, 69.3%, 0%, 40%) |
| CIE-LAB | lab(25.73, 33.55, -59.11) |
| CIE-LCH | lch(25.73, 67.97, 299.58°) |
| OKLab | oklab(37.33% -0.0012 -0.1711) |
| OKLCH | oklch(37.33% 0.171 269.6) |
| XYZ | xyz(7.3915, 4.6554, 30.6399) |
| Luminance | 0.0466 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.39
Royal
#0C1793
ΔE00 5.88
Blueberry
#464196
ΔE00 6.53
Indigo Blue
#3A18B1
ΔE00 6.95
Darkslateblue
#483D8B
ΔE00 6.98
Cobalt Blue
#030AA7
ΔE00 7.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212F99 #998B21
analogous
#216B99 #212F99 #4F2199
triadic
#212F99 #99212F #2F9921
tetradic
#212F99 #99216B #998B21 #21994F
square
#212F99 #99216B #998B21 #21994F
split-complementary
#212F99 #994F21 #6B9921
monochromatic
#0B1034 #162067 #212F99 #2C3ECB #5968DB
Accessibility & contrast
On white
10.87
#212F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#212F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212F99
10.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212F99 | 1.00 | 10.87 | 1.93 | 10.87 |
| #FFFFFF | 10.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#003797
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #212f99; /* rgb */ color: rgb(33, 47, 153); /* oklch */ color: oklch(37.3% 0.171 269.6);
Tailwind
colors: {
custom: {
50: '#7168b8',
500: '#212f99',
950: '#000000',
},
}SCSS
$custom: #212f99; $custom-light: #7168b8; $custom-dark: #000000;
JSON
{
"hex": "#212f99",
"rgb": {
"r": 33,
"g": 47,
"b": 153
},
"hsl": {
"h": 233,
"s": 64.516,
"l": 36.471
},
"oklch": {
"l": 0.37331,
"c": 0.17112,
"h": 269.6
},
"luminance": 0.04656
}Semantic roles & 50–950 ramp
primary
#212F99
secondary
#BFB356
accent
#D440E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80