#3D1B7E#3D1B7E
#3D1B7E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.154 H 291.6°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).
Color values
| HEX | #3D1B7E |
|---|---|
| RGB | rgb(61, 27, 126) |
| HSL | hsl(261, 65%, 30%) |
| HSV | hsv(261, 79%, 49%) |
| CMYK | cmyk(51.6%, 78.6%, 0%, 50.6%) |
| CIE-LAB | lab(21.14, 39.89, -49.75) |
| CIE-LCH | lch(21.14, 63.77, 308.73°) |
| OKLab | oklab(33.82% 0.0565 -0.1428) |
| OKLCH | oklch(33.82% 0.154 291.6) |
| XYZ | xyz(6.0812, 3.2821, 20.0477) |
| Luminance | 0.0328 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.76
Indigo
#4B0082
ΔE00 4.23
Midnight Blue
#191970
ΔE00 5.51
Royal Purple (survey)
#4B006E
ΔE00 5.72
Royal
#0C1793
ΔE00 6.05
Darkblue
#00008B
ΔE00 7.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D1B7E #5C7E1B
analogous
#1B2B7E #3D1B7E #6E1B7E
triadic
#3D1B7E #7E3D1B #1B7E3D
tetradic
#3D1B7E #7E1B2B #5C7E1B #1B7E6E
square
#3D1B7E #7E1B2B #5C7E1B #1B7E6E
split-complementary
#3D1B7E #7E6E1B #2B7E1B
monochromatic
#0C0519 #25104C #3D1B7E #5526B0 #723ED6
Accessibility & contrast
On white
12.68
#3D1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#3D1B7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D1B7E
12.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D1B7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D1B7E | 1.00 | 12.68 | 1.66 | 12.68 |
| #FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#27364B
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3d1b7e; /* rgb */ color: rgb(61, 27, 126); /* oklch */ color: oklch(33.8% 0.154 291.6);
Tailwind
colors: {
custom: {
50: '#7a5ba4',
500: '#3d1b7e',
950: '#000000',
},
}SCSS
$custom: #3d1b7e; $custom-light: #7a5ba4; $custom-dark: #000000;
JSON
{
"hex": "#3d1b7e",
"rgb": {
"r": 61,
"g": 27,
"b": 126
},
"hsl": {
"h": 260.606,
"s": 64.706,
"l": 30
},
"oklch": {
"l": 0.33815,
"c": 0.15363,
"h": 291.6
},
"luminance": 0.03282
}Semantic roles & 50–950 ramp
primary
#3D1B7E
secondary
#8CB243
accent
#E840AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F