#21308C#21308C
#21308C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.152 H 269.7°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).
Color values
| HEX | #21308C |
|---|---|
| RGB | rgb(33, 48, 140) |
| HSL | hsl(232, 62%, 34%) |
| HSV | hsv(232, 76%, 55%) |
| CMYK | cmyk(76.4%, 65.7%, 0%, 45.1%) |
| CIE-LAB | lab(24.73, 28.01, -52.73) |
| CIE-LCH | lch(24.73, 59.71, 297.98°) |
| OKLab | oklab(36.22% -0.0008 -0.1525) |
| OKLCH | oklch(36.22% 0.152 269.7) |
| XYZ | xyz(6.4162, 4.3300, 25.3035) |
| Luminance | 0.0433 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.77
Blueberry
#464196
ΔE00 6.45
Darkslateblue
#483D8B
ΔE00 6.52
Royal
#0C1793
ΔE00 6.65
Midnight Blue
#191970
ΔE00 7.08
Marine
#042E60
ΔE00 8.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21308C #8C7D21
analogous
#21668C #21308C #48218C
triadic
#21308C #8C2130 #308C21
tetradic
#21308C #8C2166 #8C7D21 #218C48
square
#21308C #8C2166 #8C7D21 #218C48
split-complementary
#21308C #8C4821 #668C21
monochromatic
#0A0E29 #151F5A #21308C #2D41BE #5164D6
Accessibility & contrast
On white
11.25
#21308C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#21308C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21308C
11.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21308C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21308C | 1.00 | 11.25 | 1.87 | 11.25 |
| #FFFFFF | 11.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #21308c; /* rgb */ color: rgb(33, 48, 140); /* oklch */ color: oklch(36.2% 0.152 269.7);
Tailwind
colors: {
custom: {
50: '#6e68ae',
500: '#21308c',
950: '#000000',
},
}SCSS
$custom: #21308c; $custom-light: #6e68ae; $custom-dark: #000000;
JSON
{
"hex": "#21308c",
"rgb": {
"r": 33,
"g": 48,
"b": 140
},
"hsl": {
"h": 231.589,
"s": 61.85,
"l": 33.922
},
"oklch": {
"l": 0.36224,
"c": 0.15246,
"h": 269.7
},
"luminance": 0.04331
}Semantic roles & 50–950 ramp
primary
#21308C
secondary
#B9AB4F
accent
#CE43E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F