#3D1F9D#3D1F9D
#3D1F9D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.186 H 283.7°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).
Color values
| HEX | #3D1F9D |
|---|---|
| RGB | rgb(61, 31, 157) |
| HSL | hsl(254, 67%, 37%) |
| HSV | hsv(254, 80%, 62%) |
| CMYK | cmyk(61.1%, 80.3%, 0%, 38.4%) |
| CIE-LAB | lab(24.97, 46.99, -62.74) |
| CIE-LCH | lch(24.97, 78.38, 306.83°) |
| OKLab | oklab(37.44% 0.0442 -0.1809) |
| OKLCH | oklch(37.44% 0.186 283.7) |
| XYZ | xyz(8.4984, 4.4058, 32.2943) |
| Luminance | 0.0441 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.83
Royal
#0C1793
ΔE00 4.86
Ultramarine
#2000B1
ΔE00 4.88
Cobalt Blue
#030AA7
ΔE00 5.05
Royal Blue (survey)
#0504AA
ΔE00 5.31
Indigo (survey)
#380282
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D1F9D #7F9D1F
analogous
#1F409D #3D1F9D #7C1F9D
triadic
#3D1F9D #9D3D1F #1F9D3D
tetradic
#3D1F9D #9D1F40 #7F9D1F #1F9D7C
square
#3D1F9D #9D1F40 #7F9D1F #1F9D7C
split-complementary
#3D1F9D #9D7C1F #409D1F
monochromatic
#150B37 #29156A #3D1F9D #5129D0 #7858DE
Accessibility & contrast
On white
11.16
#3D1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#3D1F9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D1F9D
11.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D1F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D1F9D | 1.00 | 11.16 | 1.88 | 11.16 |
| #FFFFFF | 11.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00379B
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #3d1f9d; /* rgb */ color: rgb(61, 31, 157); /* oklch */ color: oklch(37.4% 0.186 283.7);
Tailwind
colors: {
custom: {
50: '#7f5fbb',
500: '#3d1f9d',
950: '#000000',
},
}SCSS
$custom: #3d1f9d; $custom-light: #7f5fbb; $custom-dark: #000000;
JSON
{
"hex": "#3d1f9d",
"rgb": {
"r": 61,
"g": 31,
"b": 157
},
"hsl": {
"h": 254.286,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.37439,
"c": 0.18619,
"h": 283.7
},
"luminance": 0.04406
}Semantic roles & 50–950 ramp
primary
#3D1F9D
secondary
#A8C256
accent
#EA3EC1
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981