#21318F#21318F
#21318F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.155 H 269.4°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).
Color values
| HEX | #21318F |
|---|---|
| RGB | rgb(33, 49, 143) |
| HSL | hsl(231, 63%, 35%) |
| HSV | hsv(231, 77%, 56%) |
| CMYK | cmyk(76.9%, 65.7%, 0%, 43.9%) |
| CIE-LAB | lab(25.27, 28.48, -53.72) |
| CIE-LCH | lch(25.27, 60.80, 297.93°) |
| OKLab | oklab(36.7% -0.0016 -0.1553) |
| OKLCH | oklch(36.7% 0.155 269.4) |
| XYZ | xyz(6.6817, 4.5024, 26.4982) |
| Luminance | 0.0450 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.27
Blueberry
#464196
ΔE00 6.24
Darkslateblue
#483D8B
ΔE00 6.47
Royal
#0C1793
ΔE00 6.78
Midnight Blue
#191970
ΔE00 7.52
Cobalt
#0047AB
ΔE00 8.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21318F #8F7F21
analogous
#21688F #21318F #48218F
triadic
#21318F #8F2131 #318F21
tetradic
#21318F #8F2168 #8F7F21 #218F48
square
#21318F #8F2168 #8F7F21 #218F48
split-complementary
#21318F #8F4821 #688F21
monochromatic
#0A0F2C #16205D #21318F #2C42C1 #5366D7
Accessibility & contrast
On white
11.05
#21318F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#21318F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21318F
11.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21318F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21318F | 1.00 | 11.05 | 1.90 | 11.05 |
| #FFFFFF | 11.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #21318f; /* rgb */ color: rgb(33, 49, 143); /* oklch */ color: oklch(36.7% 0.155 269.4);
Tailwind
colors: {
custom: {
50: '#6e69b1',
500: '#21318f',
950: '#000000',
},
}SCSS
$custom: #21318f; $custom-light: #6e69b1; $custom-dark: #000000;
JSON
{
"hex": "#21318f",
"rgb": {
"r": 33,
"g": 49,
"b": 143
},
"hsl": {
"h": 231.273,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.36702,
"c": 0.15535,
"h": 269.4
},
"luminance": 0.04503
}Semantic roles & 50–950 ramp
primary
#21318F
secondary
#BBAB51
accent
#CE42E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80