#21338E#21338E
#21338E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.151 H 268.9°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).
Color values
| HEX | #21338E |
|---|---|
| RGB | rgb(33, 51, 142) |
| HSL | hsl(230, 62%, 34%) |
| HSV | hsv(230, 77%, 56%) |
| CMYK | cmyk(76.8%, 64.1%, 0%, 44.3%) |
| CIE-LAB | lab(25.69, 26.75, -52.40) |
| CIE-LCH | lch(25.69, 58.83, 297.04°) |
| OKLab | oklab(36.99% -0.0029 -0.1515) |
| OKLCH | oklch(36.99% 0.151 268.9) |
| XYZ | xyz(6.6918, 4.6433, 26.1295) |
| Luminance | 0.0464 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.28
Blueberry
#464196
ΔE00 6.01
Darkslateblue
#483D8B
ΔE00 6.34
Royal
#0C1793
ΔE00 7.48
Cobalt (survey)
#1E488F
ΔE00 7.62
Cobalt
#0047AB
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21338E #8E7C21
analogous
#216A8E #21338E #46218E
triadic
#21338E #8E2133 #338E21
tetradic
#21338E #8E216A #8E7C21 #218E46
square
#21338E #8E216A #8E7C21 #218E46
split-complementary
#21338E #8E4621 #6A8E21
monochromatic
#0A0F2B #15215C #21338E #2D45C0 #5268D7
Accessibility & contrast
On white
10.89
#21338E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#21338E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21338E
10.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21338E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21338E | 1.00 | 10.89 | 1.93 | 10.89 |
| #FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #21338e; /* rgb */ color: rgb(33, 51, 142); /* oklch */ color: oklch(37.0% 0.151 268.9);
Tailwind
colors: {
custom: {
50: '#6e6ab0',
500: '#21338e',
950: '#000000',
},
}SCSS
$custom: #21338e; $custom-light: #6e6ab0; $custom-dark: #000000;
JSON
{
"hex": "#21338e",
"rgb": {
"r": 33,
"g": 51,
"b": 142
},
"hsl": {
"h": 230.092,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.36987,
"c": 0.15149,
"h": 268.9
},
"luminance": 0.04644
}Semantic roles & 50–950 ramp
primary
#21338E
secondary
#BAA950
accent
#CA42E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80