#21127F#21127F
#21127F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.167 H 275.9°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).
Color values
| HEX | #21127F |
|---|---|
| RGB | rgb(33, 18, 127) |
| HSL | hsl(248, 75%, 28%) |
| HSV | hsv(248, 86%, 50%) |
| CMYK | cmyk(74%, 85.8%, 0%, 50.2%) |
| CIE-LAB | lab(16.93, 41.23, -57.42) |
| CIE-LCH | lch(16.93, 70.69, 305.68°) |
| OKLab | oklab(30.24% 0.0172 -0.166) |
| OKLCH | oklch(30.24% 0.167 275.9) |
| XYZ | xyz(4.6730, 2.2878, 20.2699) |
| Luminance | 0.0229 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.27
Midnight Blue
#191970
ΔE00 3.34
Navy
#000080
ΔE00 3.36
Darkblue
#00008B
ΔE00 3.46
Deep Blue
#040273
ΔE00 3.70
Indigo (survey)
#380282
ΔE00 3.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21127F #707F12
analogous
#12397F #21127F #57127F
triadic
#21127F #7F2112 #127F21
tetradic
#21127F #7F1239 #707F12 #127F57
square
#21127F #7F1239 #707F12 #127F57
split-complementary
#21127F #7F5712 #397F12
monochromatic
#07041B #130A49 #21127F #2F1AB5 #442BE1
Accessibility & contrast
On white
14.41
#21127F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#21127F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21127F
14.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21127F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21127F | 1.00 | 14.41 | 1.46 | 14.41 |
| #FFFFFF | 14.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #21127f; /* rgb */ color: rgb(33, 18, 127); /* oklch */ color: oklch(30.2% 0.167 275.9);
Tailwind
colors: {
custom: {
50: '#6d54a5',
500: '#21127f',
950: '#000000',
},
}SCSS
$custom: #21127f; $custom-light: #6d54a5; $custom-dark: #000000;
JSON
{
"hex": "#21127f",
"rgb": {
"r": 33,
"g": 18,
"b": 127
},
"hsl": {
"h": 248.257,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.3024,
"c": 0.16684,
"h": 275.9
},
"luminance": 0.02288
}Semantic roles & 50–950 ramp
primary
#21127F
secondary
#A4B538
accent
#F236D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F