#32217F#32217F
#32217F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.149 H 283.2°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).
Color values
| HEX | #32217F |
|---|---|
| RGB | rgb(50, 33, 127) |
| HSL | hsl(251, 59%, 31%) |
| HSV | hsv(251, 74%, 50%) |
| CMYK | cmyk(60.6%, 74%, 0%, 50.2%) |
| CIE-LAB | lab(21.20, 35.24, -50.33) |
| CIE-LCH | lch(21.20, 61.44, 305.00°) |
| OKLab | oklab(33.61% 0.034 -0.145) |
| OKLCH | oklch(33.61% 0.149 283.2) |
| XYZ | xyz(5.6888, 3.2978, 20.4113) |
| Luminance | 0.0330 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.00
Royal
#0C1793
ΔE00 4.91
Indigo (survey)
#380282
ΔE00 5.35
Indigo
#4B0082
ΔE00 6.65
Darkblue
#00008B
ΔE00 6.93
Dark Royal Blue
#02066F
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#32217F #6E7F21
analogous
#213F7F #32217F #61217F
triadic
#32217F #7F3221 #217F32
tetradic
#32217F #7F213F #6E7F21 #217F61
square
#32217F #7F213F #6E7F21 #217F61
split-complementary
#32217F #7F6121 #3F7F21
monochromatic
#0C081E #1F144E #32217F #452EB0 #634AD0
Accessibility & contrast
On white
12.65
#32217F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#32217F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #32217F
12.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##32217F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##32217F | 1.00 | 12.65 | 1.66 | 12.65 |
| #FFFFFF | 12.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#033A4D
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #32217f; /* rgb */ color: rgb(50, 33, 127); /* oklch */ color: oklch(33.6% 0.149 283.2);
Tailwind
colors: {
custom: {
50: '#745ea5',
500: '#32217f',
950: '#000000',
},
}SCSS
$custom: #32217f; $custom-light: #745ea5; $custom-dark: #000000;
JSON
{
"hex": "#32217f",
"rgb": {
"r": 50,
"g": 33,
"b": 127
},
"hsl": {
"h": 250.851,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.33605,
"c": 0.14889,
"h": 283.2
},
"luminance": 0.03298
}Semantic roles & 50–950 ramp
primary
#32217F
secondary
#9FB24A
accent
#E246C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F