#21398C#21398C
#21398C is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.0% C 0.141 H 267.0°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).
Color values
| HEX | #21398C |
|---|---|
| RGB | rgb(33, 57, 140) |
| HSL | hsl(227, 62%, 34%) |
| HSV | hsv(227, 76%, 55%) |
| CMYK | cmyk(76.4%, 59.3%, 0%, 45.1%) |
| CIE-LAB | lab(27.14, 21.86, -48.81) |
| CIE-LCH | lch(27.14, 53.48, 294.13°) |
| OKLab | oklab(38.01% -0.0073 -0.1408) |
| OKLCH | oklch(38.01% 0.141 267) |
| XYZ | xyz(6.8223, 5.1423, 25.4389) |
| Luminance | 0.0514 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.80
Cobalt (survey)
#1E488F
ΔE00 5.52
Darkish Blue
#014182
ΔE00 5.69
Blueberry
#464196
ΔE00 5.78
Cobalt
#0047AB
ΔE00 6.17
Darkslateblue
#483D8B
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21398C #8C7421
analogous
#216F8C #21398C #3F218C
triadic
#21398C #8C2139 #398C21
tetradic
#21398C #8C216F #8C7421 #218C3F
square
#21398C #8C216F #8C7421 #218C3F
split-complementary
#21398C #8C3F21 #6F8C21
monochromatic
#0A1129 #15255A #21398C #2D4DBE #516FD6
Accessibility & contrast
On white
10.35
#21398C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#21398C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21398C
10.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21398C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21398C | 1.00 | 10.35 | 2.03 | 10.35 |
| #FFFFFF | 10.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #21398c; /* rgb */ color: rgb(33, 57, 140); /* oklch */ color: oklch(38.0% 0.141 267.0);
Tailwind
colors: {
custom: {
50: '#6d6fae',
500: '#21398c',
950: '#000000',
},
}SCSS
$custom: #21398c; $custom-light: #6d6fae; $custom-dark: #000000;
JSON
{
"hex": "#21398c",
"rgb": {
"r": 33,
"g": 57,
"b": 140
},
"hsl": {
"h": 226.542,
"s": 61.85,
"l": 33.922
},
"oklch": {
"l": 0.38006,
"c": 0.14103,
"h": 267
},
"luminance": 0.05143
}Semantic roles & 50–950 ramp
primary
#21398C
secondary
#B9A24F
accent
#C143E5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F