#3D217F#3D217F
#3D217F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.148 H 290.1°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).
Color values
| HEX | #3D217F |
|---|---|
| RGB | rgb(61, 33, 127) |
| HSL | hsl(258, 59%, 31%) |
| HSV | hsv(258, 74%, 50%) |
| CMYK | cmyk(52%, 74%, 0%, 50.2%) |
| CIE-LAB | lab(22.34, 37.05, -48.41) |
| CIE-LCH | lch(22.34, 60.96, 307.43°) |
| OKLab | oklab(34.69% 0.0509 -0.139) |
| OKLCH | oklch(34.69% 0.148 290.1) |
| XYZ | xyz(6.2980, 3.6119, 20.4399) |
| Luminance | 0.0361 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.02
Indigo
#4B0082
ΔE00 5.40
Midnight Blue
#191970
ΔE00 5.52
Royal
#0C1793
ΔE00 6.22
Royal Purple (survey)
#4B006E
ΔE00 6.77
Indigo Blue
#3A18B1
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D217F #637F21
analogous
#21347F #3D217F #6C217F
triadic
#3D217F #7F3D21 #217F3D
tetradic
#3D217F #7F2134 #637F21 #217F6C
square
#3D217F #7F2134 #637F21 #217F6C
split-complementary
#3D217F #7F6C21 #347F21
monochromatic
#0E081E #26144E #3D217F #542EB0 #724AD0
Accessibility & contrast
On white
12.19
#3D217F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#3D217F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D217F
12.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D217F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D217F | 1.00 | 12.19 | 1.72 | 12.19 |
| #FFFFFF | 12.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#263A4E
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3d217f; /* rgb */ color: rgb(61, 33, 127); /* oklch */ color: oklch(34.7% 0.148 290.1);
Tailwind
colors: {
custom: {
50: '#7a5fa5',
500: '#3d217f',
950: '#000000',
},
}SCSS
$custom: #3d217f; $custom-light: #7a5fa5; $custom-dark: #000000;
JSON
{
"hex": "#3d217f",
"rgb": {
"r": 61,
"g": 33,
"b": 127
},
"hsl": {
"h": 257.872,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.34693,
"c": 0.14799,
"h": 290.1
},
"luminance": 0.03612
}Semantic roles & 50–950 ramp
primary
#3D217F
secondary
#93B24A
accent
#E246B3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F