#3D1F86#3D1F86
#3D1F86 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.159 H 288.7°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).
Color values
| HEX | #3D1F86 |
|---|---|
| RGB | rgb(61, 31, 134) |
| HSL | hsl(257, 62%, 32%) |
| HSV | hsv(257, 77%, 53%) |
| CMYK | cmyk(54.5%, 76.9%, 0%, 47.5%) |
| CIE-LAB | lab(22.63, 40.21, -52.35) |
| CIE-LCH | lch(22.63, 66.01, 307.53°) |
| OKLab | oklab(35.1% 0.0509 -0.1505) |
| OKLCH | oklch(35.1% 0.159 288.7) |
| XYZ | xyz(6.7163, 3.6930, 22.9086) |
| Luminance | 0.0369 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.42
Indigo
#4B0082
ΔE00 4.98
Royal
#0C1793
ΔE00 5.38
Midnight Blue
#191970
ΔE00 5.85
Indigo Blue
#3A18B1
ΔE00 6.23
Cobalt Blue
#030AA7
ΔE00 6.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D1F86 #68861F
analogous
#1F3486 #3D1F86 #711F86
triadic
#3D1F86 #863D1F #1F863D
tetradic
#3D1F86 #861F34 #68861F #1F8671
square
#3D1F86 #861F34 #68861F #1F8671
split-complementary
#3D1F86 #86711F #34861F
monochromatic
#100823 #261454 #3D1F86 #542AB8 #734AD5
Accessibility & contrast
On white
12.08
#3D1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#3D1F86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D1F86
12.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D1F86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D1F86 | 1.00 | 12.08 | 1.74 | 12.08 |
| #FFFFFF | 12.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003384
Tritanopia (blue-blind)
#213B51
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3d1f86; /* rgb */ color: rgb(61, 31, 134); /* oklch */ color: oklch(35.1% 0.159 288.7);
Tailwind
colors: {
custom: {
50: '#7b5eaa',
500: '#3d1f86',
950: '#000000',
},
}SCSS
$custom: #3d1f86; $custom-light: #7b5eaa; $custom-dark: #000000;
JSON
{
"hex": "#3d1f86",
"rgb": {
"r": 61,
"g": 31,
"b": 134
},
"hsl": {
"h": 257.476,
"s": 62.424,
"l": 32.353
},
"oklch": {
"l": 0.35098,
"c": 0.1589,
"h": 288.7
},
"luminance": 0.03693
}Semantic roles & 50–950 ramp
primary
#3D1F86
secondary
#97B849
accent
#E542B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F