#21308D#21308D
#21308D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.154 H 269.7°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).
Color values
| HEX | #21308D |
|---|---|
| RGB | rgb(33, 48, 141) |
| HSL | hsl(232, 62%, 34%) |
| HSV | hsv(232, 77%, 55%) |
| CMYK | cmyk(76.6%, 66%, 0%, 44.7%) |
| CIE-LAB | lab(24.83, 28.39, -53.20) |
| CIE-LCH | lch(24.83, 60.30, 298.09°) |
| OKLab | oklab(36.32% -0.0009 -0.1538) |
| OKLCH | oklch(36.32% 0.154 269.7) |
| XYZ | xyz(6.4902, 4.3596, 25.6936) |
| Luminance | 0.0436 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.63
Blueberry
#464196
ΔE00 6.43
Darkslateblue
#483D8B
ΔE00 6.53
Royal
#0C1793
ΔE00 6.59
Midnight Blue
#191970
ΔE00 7.14
Marine
#042E60
ΔE00 8.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21308D #8D7E21
analogous
#21668D #21308D #48218D
triadic
#21308D #8D2130 #308D21
tetradic
#21308D #8D2166 #8D7E21 #218D48
square
#21308D #8D2166 #8D7E21 #218D48
split-complementary
#21308D #8D4821 #668D21
monochromatic
#0A0E2A #151F5B #21308D #2D41BF #5264D6
Accessibility & contrast
On white
11.22
#21308D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#21308D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21308D
11.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21308D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21308D | 1.00 | 11.22 | 1.87 | 11.22 |
| #FFFFFF | 11.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #21308d; /* rgb */ color: rgb(33, 48, 141); /* oklch */ color: oklch(36.3% 0.154 269.7);
Tailwind
colors: {
custom: {
50: '#6e68af',
500: '#21308d',
950: '#000000',
},
}SCSS
$custom: #21308d; $custom-light: #6e68af; $custom-dark: #000000;
JSON
{
"hex": "#21308d",
"rgb": {
"r": 33,
"g": 48,
"b": 141
},
"hsl": {
"h": 231.667,
"s": 62.069,
"l": 34.118
},
"oklch": {
"l": 0.36321,
"c": 0.15383,
"h": 269.7
},
"luminance": 0.0436
}Semantic roles & 50–950 ramp
primary
#21308D
secondary
#BAAB50
accent
#CF43E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F