#3D1A7E#3D1A7E
#3D1A7E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.155 H 291.8°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).
Color values
| HEX | #3D1A7E |
|---|---|
| RGB | rgb(61, 26, 126) |
| HSL | hsl(261, 66%, 30%) |
| HSV | hsv(261, 79%, 49%) |
| CMYK | cmyk(51.6%, 79.4%, 0%, 50.6%) |
| CIE-LAB | lab(20.97, 40.38, -50.03) |
| CIE-LCH | lch(20.97, 64.29, 308.91°) |
| OKLab | oklab(33.7% 0.0574 -0.1437) |
| OKLCH | oklch(33.7% 0.155 291.8) |
| XYZ | xyz(6.0587, 3.2370, 20.0402) |
| Luminance | 0.0324 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.56
Indigo
#4B0082
ΔE00 4.05
Midnight Blue
#191970
ΔE00 5.54
Royal Purple (survey)
#4B006E
ΔE00 5.59
Royal
#0C1793
ΔE00 6.03
Darkblue
#00008B
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D1A7E #5B7E1A
analogous
#1A297E #3D1A7E #6F1A7E
triadic
#3D1A7E #7E3D1A #1A7E3D
tetradic
#3D1A7E #7E1A29 #5B7E1A #1A7E6F
square
#3D1A7E #7E1A29 #5B7E1A #1A7E6F
split-complementary
#3D1A7E #7E6F1A #297E1A
monochromatic
#0C0519 #24104B #3D1A7E #5624B1 #723CD7
Accessibility & contrast
On white
12.75
#3D1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#3D1A7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D1A7E
12.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D1A7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D1A7E | 1.00 | 12.75 | 1.65 | 12.75 |
| #FFFFFF | 12.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#27364B
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3d1a7e; /* rgb */ color: rgb(61, 26, 126); /* oklch */ color: oklch(33.7% 0.155 291.8);
Tailwind
colors: {
custom: {
50: '#7a5ba4',
500: '#3d1a7e',
950: '#000000',
},
}SCSS
$custom: #3d1a7e; $custom-light: #7a5ba4; $custom-dark: #000000;
JSON
{
"hex": "#3d1a7e",
"rgb": {
"r": 61,
"g": 26,
"b": 126
},
"hsl": {
"h": 261,
"s": 65.789,
"l": 29.804
},
"oklch": {
"l": 0.33695,
"c": 0.1547,
"h": 291.8
},
"luminance": 0.03237
}Semantic roles & 50–950 ramp
primary
#3D1A7E
secondary
#8BB242
accent
#E93FAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F