#3D1F7D#3D1F7D
#3D1F7D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.148 H 291.1°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).
Color values
| HEX | #3D1F7D |
|---|---|
| RGB | rgb(61, 31, 125) |
| HSL | hsl(259, 60%, 31%) |
| HSV | hsv(259, 75%, 49%) |
| CMYK | cmyk(51.2%, 75.2%, 0%, 51%) |
| CIE-LAB | lab(21.77, 37.54, -48.08) |
| CIE-LCH | lch(21.77, 61.00, 307.99°) |
| OKLab | oklab(34.23% 0.0532 -0.138) |
| OKLCH | oklch(34.23% 0.148 291.1) |
| XYZ | xyz(6.1151, 3.4525, 19.7423) |
| Luminance | 0.0345 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.66
Indigo
#4B0082
ΔE00 5.02
Midnight Blue
#191970
ΔE00 5.43
Royal Purple (survey)
#4B006E
ΔE00 6.27
Royal
#0C1793
ΔE00 6.33
Darkblue
#00008B
ΔE00 7.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D1F7D #5F7D1F
analogous
#1F307D #3D1F7D #6C1F7D
triadic
#3D1F7D #7D3D1F #1F7D3D
tetradic
#3D1F7D #7D1F30 #5F7D1F #1F7D6C
square
#3D1F7D #7D1F30 #5F7D1F #1F7D6C
split-complementary
#3D1F7D #7D6C1F #307D1F
monochromatic
#0D071B #25134C #3D1F7D #552BAE #7245D1
Accessibility & contrast
On white
12.42
#3D1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#3D1F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D1F7D
12.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D1F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D1F7D | 1.00 | 12.42 | 1.69 | 12.42 |
| #FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#28384C
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #3d1f7d; /* rgb */ color: rgb(61, 31, 125); /* oklch */ color: oklch(34.2% 0.148 291.1);
Tailwind
colors: {
custom: {
50: '#7a5ea4',
500: '#3d1f7d',
950: '#000000',
},
}SCSS
$custom: #3d1f7d; $custom-light: #7a5ea4; $custom-dark: #000000;
JSON
{
"hex": "#3d1f7d",
"rgb": {
"r": 61,
"g": 31,
"b": 125
},
"hsl": {
"h": 259.149,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.3423,
"c": 0.1479,
"h": 291.1
},
"luminance": 0.03453
}Semantic roles & 50–950 ramp
primary
#3D1F7D
secondary
#8FB048
accent
#E344B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F