#21337F#21337F
#21337F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.6% C 0.130 H 268.7°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).
Color values
| HEX | #21337F |
|---|---|
| RGB | rgb(33, 51, 127) |
| HSL | hsl(229, 59%, 31%) |
| HSV | hsv(229, 74%, 50%) |
| CMYK | cmyk(74%, 59.8%, 0%, 50.2%) |
| CIE-LAB | lab(24.39, 20.91, -45.16) |
| CIE-LCH | lch(24.39, 49.76, 294.85°) |
| OKLab | oklab(35.62% -0.0029 -0.1302) |
| OKLCH | oklch(35.62% 0.13 268.7) |
| XYZ | xyz(5.6405, 4.2227, 20.5924) |
| Luminance | 0.0422 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 6.11
Sapphire (survey)
#2138AB
ΔE00 6.59
Marine Blue
#01386A
ΔE00 6.66
Darkslateblue
#483D8B
ΔE00 6.66
Blueberry
#464196
ΔE00 6.86
Darkish Blue
#014182
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21337F #7F6D21
analogous
#21627F #21337F #3E217F
triadic
#21337F #7F2133 #337F21
tetradic
#21337F #7F2162 #7F6D21 #217F3E
square
#21337F #7F2162 #7F6D21 #217F3E
split-complementary
#21337F #7F3E21 #627F21
monochromatic
#080C1E #141F4E #21337F #2E47B0 #4A64D0
Accessibility & contrast
On white
11.38
#21337F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#21337F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21337F
11.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21337F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21337F | 1.00 | 11.38 | 1.84 | 11.38 |
| #FFFFFF | 11.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00367E
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #21337f; /* rgb */ color: rgb(33, 51, 127); /* oklch */ color: oklch(35.6% 0.130 268.7);
Tailwind
colors: {
custom: {
50: '#6a6aa5',
500: '#21337f',
950: '#000000',
},
}SCSS
$custom: #21337f; $custom-light: #6a6aa5; $custom-dark: #000000;
JSON
{
"hex": "#21337f",
"rgb": {
"r": 33,
"g": 51,
"b": 127
},
"hsl": {
"h": 228.511,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.35618,
"c": 0.13023,
"h": 268.7
},
"luminance": 0.04223
}Semantic roles & 50–950 ramp
primary
#21337F
secondary
#B29E4A
accent
#C446E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F