#3D1F87#3D1F87
#3D1F87 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.160 H 288.4°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).
Color values
| HEX | #3D1F87 |
|---|---|
| RGB | rgb(61, 31, 135) |
| HSL | hsl(257, 63%, 33%) |
| HSV | hsv(257, 77%, 53%) |
| CMYK | cmyk(54.8%, 77%, 0%, 47.1%) |
| CIE-LAB | lab(22.73, 40.50, -52.82) |
| CIE-LCH | lch(22.73, 66.56, 307.48°) |
| OKLab | oklab(35.2% 0.0507 -0.1519) |
| OKLCH | oklch(35.2% 0.16 288.4) |
| XYZ | xyz(6.7863, 3.7210, 23.2776) |
| Luminance | 0.0372 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.42
Indigo
#4B0082
ΔE00 5.00
Royal
#0C1793
ΔE00 5.30
Midnight Blue
#191970
ΔE00 5.92
Indigo Blue
#3A18B1
ΔE00 6.07
Cobalt Blue
#030AA7
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D1F87 #69871F
analogous
#1F3587 #3D1F87 #711F87
triadic
#3D1F87 #873D1F #1F873D
tetradic
#3D1F87 #871F35 #69871F #1F8771
square
#3D1F87 #871F35 #69871F #1F8771
split-complementary
#3D1F87 #87711F #35871F
monochromatic
#100823 #271455 #3D1F87 #532AB9 #734BD6
Accessibility & contrast
On white
12.04
#3D1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#3D1F87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D1F87
12.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D1F87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D1F87 | 1.00 | 12.04 | 1.74 | 12.04 |
| #FFFFFF | 12.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#203C51
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3d1f87; /* rgb */ color: rgb(61, 31, 135); /* oklch */ color: oklch(35.2% 0.160 288.4);
Tailwind
colors: {
custom: {
50: '#7b5eab',
500: '#3d1f87',
950: '#000000',
},
}SCSS
$custom: #3d1f87; $custom-light: #7b5eab; $custom-dark: #000000;
JSON
{
"hex": "#3d1f87",
"rgb": {
"r": 61,
"g": 31,
"b": 135
},
"hsl": {
"h": 257.308,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.35196,
"c": 0.16011,
"h": 288.4
},
"luminance": 0.03721
}Semantic roles & 50–950 ramp
primary
#3D1F87
secondary
#98B84A
accent
#E642B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F