#3D1F8D#3D1F8D
#3D1F8D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.167 H 287.0°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).
Color values
| HEX | #3D1F8D |
|---|---|
| RGB | rgb(61, 31, 141) |
| HSL | hsl(256, 64%, 34%) |
| HSV | hsv(256, 78%, 55%) |
| CMYK | cmyk(56.7%, 78%, 0%, 44.7%) |
| CIE-LAB | lab(23.32, 42.28, -55.59) |
| CIE-LCH | lch(23.32, 69.84, 307.25°) |
| OKLab | oklab(35.79% 0.049 -0.16) |
| OKLCH | oklch(35.79% 0.167 287) |
| XYZ | xyz(7.2207, 3.8948, 25.5654) |
| Luminance | 0.0389 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.60
Royal
#0C1793
ΔE00 4.91
Indigo Blue
#3A18B1
ΔE00 5.13
Indigo
#4B0082
ΔE00 5.23
Cobalt Blue
#030AA7
ΔE00 6.15
Midnight Blue
#191970
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D1F8D #6F8D1F
analogous
#1F388D #3D1F8D #741F8D
triadic
#3D1F8D #8D3D1F #1F8D3D
tetradic
#3D1F8D #8D1F38 #6F8D1F #1F8D74
square
#3D1F8D #8D1F38 #6F8D1F #1F8D74
split-complementary
#3D1F8D #8D741F #388D1F
monochromatic
#120929 #27145B #3D1F8D #532ABF #744ED8
Accessibility & contrast
On white
11.80
#3D1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#3D1F8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D1F8D
11.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D1F8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D1F8D | 1.00 | 11.80 | 1.78 | 11.80 |
| #FFFFFF | 11.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#193E55
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3d1f8d; /* rgb */ color: rgb(61, 31, 141); /* oklch */ color: oklch(35.8% 0.167 287.0);
Tailwind
colors: {
custom: {
50: '#7c5faf',
500: '#3d1f8d',
950: '#000000',
},
}SCSS
$custom: #3d1f8d; $custom-light: #7c5faf; $custom-dark: #000000;
JSON
{
"hex": "#3d1f8d",
"rgb": {
"r": 61,
"g": 31,
"b": 141
},
"hsl": {
"h": 256.364,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.35793,
"c": 0.16732,
"h": 287
},
"luminance": 0.03895
}Semantic roles & 50–950 ramp
primary
#3D1F8D
secondary
#9DBB4D
accent
#E741BA
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0511
muted
#7C7980