#21328F#21328F
#21328F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.154 H 269.1°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).
Color values
| HEX | #21328F |
|---|---|
| RGB | rgb(33, 50, 143) |
| HSL | hsl(231, 63%, 35%) |
| HSV | hsv(231, 77%, 56%) |
| CMYK | cmyk(76.9%, 65%, 0%, 43.9%) |
| CIE-LAB | lab(25.52, 27.81, -53.30) |
| CIE-LCH | lch(25.52, 60.11, 297.55°) |
| OKLab | oklab(36.89% -0.0023 -0.1541) |
| OKLCH | oklch(36.89% 0.154 269.1) |
| XYZ | xyz(6.7240, 4.5870, 26.5123) |
| Luminance | 0.0459 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.19
Blueberry
#464196
ΔE00 6.10
Darkslateblue
#483D8B
ΔE00 6.40
Royal
#0C1793
ΔE00 7.10
Midnight Blue
#191970
ΔE00 7.77
Cobalt
#0047AB
ΔE00 7.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21328F #8F7E21
analogous
#21698F #21328F #47218F
triadic
#21328F #8F2132 #328F21
tetradic
#21328F #8F2169 #8F7E21 #218F47
square
#21328F #8F2169 #8F7E21 #218F47
split-complementary
#21328F #8F4721 #698F21
monochromatic
#0A0F2C #16215D #21328F #2C43C1 #5368D7
Accessibility & contrast
On white
10.95
#21328F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#21328F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21328F
10.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21328F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21328F | 1.00 | 10.95 | 1.92 | 10.95 |
| #FFFFFF | 10.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #21328f; /* rgb */ color: rgb(33, 50, 143); /* oklch */ color: oklch(36.9% 0.154 269.1);
Tailwind
colors: {
custom: {
50: '#6e69b1',
500: '#21328f',
950: '#000000',
},
}SCSS
$custom: #21328f; $custom-light: #6e69b1; $custom-dark: #000000;
JSON
{
"hex": "#21328f",
"rgb": {
"r": 33,
"g": 50,
"b": 143
},
"hsl": {
"h": 230.727,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.3689,
"c": 0.15412,
"h": 269.1
},
"luminance": 0.04588
}Semantic roles & 50–950 ramp
primary
#21328F
secondary
#BBAB51
accent
#CC42E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80