#21378E#21378E
#21378E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.8% C 0.146 H 267.8°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).
Color values
| HEX | #21378E |
|---|---|
| RGB | rgb(33, 55, 142) |
| HSL | hsl(228, 62%, 34%) |
| HSV | hsv(228, 77%, 56%) |
| CMYK | cmyk(76.8%, 61.3%, 0%, 44.3%) |
| CIE-LAB | lab(26.76, 24.02, -50.66) |
| CIE-LCH | lch(26.76, 56.07, 295.37°) |
| OKLab | oklab(37.78% -0.0057 -0.1463) |
| OKLCH | oklch(37.78% 0.146 267.8) |
| XYZ | xyz(6.8742, 5.0080, 26.1903) |
| Luminance | 0.0501 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.32
Blueberry
#464196
ΔE00 5.70
Cobalt (survey)
#1E488F
ΔE00 6.27
Darkslateblue
#483D8B
ΔE00 6.31
Darkish Blue
#014182
ΔE00 6.44
Cobalt
#0047AB
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21378E #8E7821
analogous
#216E8E #21378E #42218E
triadic
#21378E #8E2137 #378E21
tetradic
#21378E #8E216E #8E7821 #218E42
square
#21378E #8E216E #8E7821 #218E42
split-complementary
#21378E #8E4221 #6E8E21
monochromatic
#0A112B #15245C #21378E #2D4AC0 #526DD7
Accessibility & contrast
On white
10.49
#21378E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#21378E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21378E
10.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21378E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21378E | 1.00 | 10.49 | 2.00 | 10.49 |
| #FFFFFF | 10.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #21378e; /* rgb */ color: rgb(33, 55, 142); /* oklch */ color: oklch(37.8% 0.146 267.8);
Tailwind
colors: {
custom: {
50: '#6e6db0',
500: '#21378e',
950: '#000000',
},
}SCSS
$custom: #21378e; $custom-light: #6e6db0; $custom-dark: #000000;
JSON
{
"hex": "#21378e",
"rgb": {
"r": 33,
"g": 55,
"b": 142
},
"hsl": {
"h": 227.89,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.37776,
"c": 0.14643,
"h": 267.8
},
"luminance": 0.05009
}Semantic roles & 50–950 ramp
primary
#21378E
secondary
#BAA550
accent
#C442E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080711
muted
#7B7A80