#21479E#21479E
#21479E is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.5% C 0.148 H 263.5°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).
Color values
| HEX | #21479E |
|---|---|
| RGB | rgb(33, 71, 158) |
| HSL | hsl(222, 65%, 37%) |
| HSV | hsv(222, 79%, 62%) |
| CMYK | cmyk(79.1%, 55.1%, 0%, 38%) |
| CIE-LAB | lab(32.47, 19.37, -51.13) |
| CIE-LCH | lch(32.47, 54.68, 290.75°) |
| OKLab | oklab(42.47% -0.0167 -0.1474) |
| OKLCH | oklch(42.47% 0.148 263.5) |
| XYZ | xyz(9.0498, 7.2974, 33.2727) |
| Luminance | 0.0730 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.05
Cobalt (survey)
#1E488F
ΔE00 2.54
Sapphire
#0F52BA
ΔE00 4.92
Darkish Blue
#014182
ΔE00 5.08
Dusk Blue
#26538D
ΔE00 5.28
Sapphire (survey)
#2138AB
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21479E #9E7821
analogous
#21869E #21479E #3A219E
triadic
#21479E #9E2147 #479E21
tetradic
#21479E #9E2186 #9E7821 #219E3A
square
#21479E #9E2186 #9E7821 #219E3A
split-complementary
#21479E #9E3A21 #869E21
monochromatic
#0C1A39 #16306B #21479E #2C5ED1 #5C83DD
Accessibility & contrast
On white
8.54
#21479E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.46
#21479E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21479E
8.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21479E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21479E | 1.00 | 8.54 | 2.46 | 8.54 |
| #FFFFFF | 8.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052A1
Deuteranopia (green-blind)
#00479C
Tritanopia (blue-blind)
#005C6B
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #21479e; /* rgb */ color: rgb(33, 71, 158); /* oklch */ color: oklch(42.5% 0.148 263.5);
Tailwind
colors: {
custom: {
50: '#7179bb',
500: '#21479e',
950: '#000000',
},
}SCSS
$custom: #21479e; $custom-light: #7179bb; $custom-dark: #000000;
JSON
{
"hex": "#21479e",
"rgb": {
"r": 33,
"g": 71,
"b": 158
},
"hsl": {
"h": 221.76,
"s": 65.445,
"l": 37.451
},
"oklch": {
"l": 0.42474,
"c": 0.14838,
"h": 263.5
},
"luminance": 0.07298
}Semantic roles & 50–950 ramp
primary
#21479E
secondary
#C1A259
accent
#B53FE8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81