#21318C#21318C
#21318C is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.151 H 269.4°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).
Color values
| HEX | #21318C |
|---|---|
| RGB | rgb(33, 49, 140) |
| HSL | hsl(231, 62%, 34%) |
| HSV | hsv(231, 76%, 55%) |
| CMYK | cmyk(76.4%, 65%, 0%, 45.1%) |
| CIE-LAB | lab(24.99, 27.34, -52.31) |
| CIE-LCH | lch(24.99, 59.02, 297.59°) |
| OKLab | oklab(36.41% -0.0015 -0.1512) |
| OKLCH | oklch(36.41% 0.151 269.4) |
| XYZ | xyz(6.4575, 4.4127, 25.3173) |
| Luminance | 0.0441 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.68
Blueberry
#464196
ΔE00 6.31
Darkslateblue
#483D8B
ΔE00 6.44
Royal
#0C1793
ΔE00 6.97
Midnight Blue
#191970
ΔE00 7.35
Marine
#042E60
ΔE00 8.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21318C #8C7C21
analogous
#21678C #21318C #47218C
triadic
#21318C #8C2131 #318C21
tetradic
#21318C #8C2167 #8C7C21 #218C47
square
#21318C #8C2167 #8C7C21 #218C47
split-complementary
#21318C #8C4721 #678C21
monochromatic
#0A0E29 #15205A #21318C #2D42BE #5165D6
Accessibility & contrast
On white
11.15
#21318C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#21318C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21318C
11.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21318C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21318C | 1.00 | 11.15 | 1.88 | 11.15 |
| #FFFFFF | 11.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #21318c; /* rgb */ color: rgb(33, 49, 140); /* oklch */ color: oklch(36.4% 0.151 269.4);
Tailwind
colors: {
custom: {
50: '#6e69ae',
500: '#21318c',
950: '#000000',
},
}SCSS
$custom: #21318c; $custom-light: #6e69ae; $custom-dark: #000000;
JSON
{
"hex": "#21318c",
"rgb": {
"r": 33,
"g": 49,
"b": 140
},
"hsl": {
"h": 231.028,
"s": 61.85,
"l": 33.922
},
"oklch": {
"l": 0.36414,
"c": 0.15122,
"h": 269.4
},
"luminance": 0.04413
}Semantic roles & 50–950 ramp
primary
#21318C
secondary
#B9AA4F
accent
#CD43E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F