#21257B#21257B
#21257B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.143 H 273.2°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).
Color values
| HEX | #21257B |
|---|---|
| RGB | rgb(33, 37, 123) |
| HSL | hsl(237, 58%, 31%) |
| HSV | hsv(237, 73%, 48%) |
| CMYK | cmyk(73.2%, 69.9%, 0%, 51.8%) |
| CIE-LAB | lab(20.35, 28.95, -49.24) |
| CIE-LCH | lch(20.35, 57.12, 300.46°) |
| OKLab | oklab(32.52% 0.008 -0.1423) |
| OKLCH | oklch(32.52% 0.143 273.2) |
| XYZ | xyz(4.8627, 3.0761, 19.0725) |
| Luminance | 0.0308 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.37
Royal
#0C1793
ΔE00 5.35
Dark Royal Blue
#02066F
ΔE00 7.25
Darkblue (survey)
#030764
ΔE00 7.62
Deep Blue
#040273
ΔE00 7.77
Navy
#000080
ΔE00 7.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21257B #7B7721
analogous
#21527B #21257B #4A217B
triadic
#21257B #7B2125 #257B21
tetradic
#21257B #7B2152 #7B7721 #217B4A
square
#21257B #7B2152 #7B7721 #217B4A
split-complementary
#21257B #7B4A21 #527B21
monochromatic
#07081A #14164B #21257B #2E34AB #484ECE
Accessibility & contrast
On white
13.00
#21257B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#21257B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21257B
13.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21257B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21257B | 1.00 | 13.00 | 1.62 | 13.00 |
| #FFFFFF | 13.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #21257b; /* rgb */ color: rgb(33, 37, 123); /* oklch */ color: oklch(32.5% 0.143 273.2);
Tailwind
colors: {
custom: {
50: '#6b60a2',
500: '#21257b',
950: '#000000',
},
}SCSS
$custom: #21257b; $custom-light: #6b60a2; $custom-dark: #000000;
JSON
{
"hex": "#21257b",
"rgb": {
"r": 33,
"g": 37,
"b": 123
},
"hsl": {
"h": 237.333,
"s": 57.692,
"l": 30.588
},
"oklch": {
"l": 0.32524,
"c": 0.14252,
"h": 273.2
},
"luminance": 0.03077
}Semantic roles & 50–950 ramp
primary
#21257B
secondary
#AEA94A
accent
#DA47E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F