#21247F#21247F
#21247F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.149 H 273.1°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).
Color values
| HEX | #21247F |
|---|---|
| RGB | rgb(33, 36, 127) |
| HSL | hsl(238, 59%, 31%) |
| HSV | hsv(238, 74%, 50%) |
| CMYK | cmyk(74%, 71.7%, 0%, 50.2%) |
| CIE-LAB | lab(20.51, 31.08, -51.52) |
| CIE-LCH | lch(20.51, 60.17, 301.10°) |
| OKLab | oklab(32.76% 0.0081 -0.149) |
| OKLCH | oklch(32.76% 0.149 273.1) |
| XYZ | xyz(5.0876, 3.1169, 20.4081) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.40
Royal
#0C1793
ΔE00 4.59
Dark Royal Blue
#02066F
ΔE00 6.99
Darkblue
#00008B
ΔE00 7.28
Navy
#000080
ΔE00 7.37
Indigo (survey)
#380282
ΔE00 7.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21247F #7F7C21
analogous
#21537F #21247F #4D217F
triadic
#21247F #7F2124 #247F21
tetradic
#21247F #7F2153 #7F7C21 #217F4D
square
#21247F #7F2153 #7F7C21 #217F4D
split-complementary
#21247F #7F4D21 #537F21
monochromatic
#08081E #14164E #21247F #2E32B0 #4A4FD0
Accessibility & contrast
On white
12.94
#21247F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#21247F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21247F
12.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21247F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21247F | 1.00 | 12.94 | 1.62 | 12.94 |
| #FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #21247f; /* rgb */ color: rgb(33, 36, 127); /* oklch */ color: oklch(32.8% 0.149 273.1);
Tailwind
colors: {
custom: {
50: '#6c5fa5',
500: '#21247f',
950: '#000000',
},
}SCSS
$custom: #21247f; $custom-light: #6c5fa5; $custom-dark: #000000;
JSON
{
"hex": "#21247f",
"rgb": {
"r": 33,
"g": 36,
"b": 127
},
"hsl": {
"h": 238.085,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.32762,
"c": 0.14918,
"h": 273.1
},
"luminance": 0.03117
}Semantic roles & 50–950 ramp
primary
#21247F
secondary
#B2AE4A
accent
#DD46E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F