#21318B#21318B
#21318B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.150 H 269.4°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).
Color values
| HEX | #21318B |
|---|---|
| RGB | rgb(33, 49, 139) |
| HSL | hsl(231, 62%, 34%) |
| HSV | hsv(231, 76%, 55%) |
| CMYK | cmyk(76.3%, 64.7%, 0%, 45.5%) |
| CIE-LAB | lab(24.90, 26.95, -51.84) |
| CIE-LCH | lch(24.90, 58.42, 297.47°) |
| OKLab | oklab(36.32% -0.0015 -0.1498) |
| OKLCH | oklch(36.32% 0.15 269.4) |
| XYZ | xyz(6.3841, 4.3834, 24.9307) |
| Luminance | 0.0438 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.82
Blueberry
#464196
ΔE00 6.34
Darkslateblue
#483D8B
ΔE00 6.44
Royal
#0C1793
ΔE00 7.03
Midnight Blue
#191970
ΔE00 7.30
Marine
#042E60
ΔE00 7.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21318B #8B7B21
analogous
#21668B #21318B #46218B
triadic
#21318B #8B2131 #318B21
tetradic
#21318B #8B2166 #8B7B21 #218B46
square
#21318B #8B2166 #8B7B21 #218B46
split-complementary
#21318B #8B4621 #668B21
monochromatic
#0A0E28 #15205A #21318B #2D42BC #5165D6
Accessibility & contrast
On white
11.19
#21318B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#21318B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21318B
11.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21318B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21318B | 1.00 | 11.19 | 1.88 | 11.19 |
| #FFFFFF | 11.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #21318b; /* rgb */ color: rgb(33, 49, 139); /* oklch */ color: oklch(36.3% 0.150 269.4);
Tailwind
colors: {
custom: {
50: '#6d69ae',
500: '#21318b',
950: '#000000',
},
}SCSS
$custom: #21318b; $custom-light: #6d69ae; $custom-dark: #000000;
JSON
{
"hex": "#21318b",
"rgb": {
"r": 33,
"g": 49,
"b": 139
},
"hsl": {
"h": 230.943,
"s": 61.628,
"l": 33.725
},
"oklch": {
"l": 0.36319,
"c": 0.14984,
"h": 269.4
},
"luminance": 0.04384
}Semantic roles & 50–950 ramp
primary
#21318B
secondary
#B9A94F
accent
#CC43E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F