#3D177F#3D177F
#3D177F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.159 H 292.0°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).
Color values
| HEX | #3D177F |
|---|---|
| RGB | rgb(61, 23, 127) |
| HSL | hsl(262, 69%, 29%) |
| HSV | hsv(262, 82%, 50%) |
| CMYK | cmyk(52%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(20.58, 42.06, -51.29) |
| CIE-LCH | lch(20.58, 66.33, 309.35°) |
| OKLab | oklab(33.46% 0.0594 -0.1473) |
| OKLCH | oklch(33.46% 0.159 292) |
| XYZ | xyz(6.0605, 3.1370, 20.3607) |
| Luminance | 0.0314 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.96
Indigo
#4B0082
ΔE00 3.57
Royal Purple (survey)
#4B006E
ΔE00 5.34
Midnight Blue
#191970
ΔE00 5.71
Royal
#0C1793
ΔE00 5.90
Darkblue
#00008B
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D177F #597F17
analogous
#17257F #3D177F #71177F
triadic
#3D177F #7F3D17 #177F3D
tetradic
#3D177F #7F1725 #597F17 #177F71
square
#3D177F #7F1725 #597F17 #177F71
split-complementary
#3D177F #7F7117 #257F17
monochromatic
#0C051A #240E4B #3D177F #5620B3 #7236DB
Accessibility & contrast
On white
12.90
#3D177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#3D177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D177F
12.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D177F | 1.00 | 12.90 | 1.63 | 12.90 |
| #FFFFFF | 12.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#27354B
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3d177f; /* rgb */ color: rgb(61, 23, 127); /* oklch */ color: oklch(33.5% 0.159 292.0);
Tailwind
colors: {
custom: {
50: '#7b59a5',
500: '#3d177f',
950: '#000000',
},
}SCSS
$custom: #3d177f; $custom-light: #7b59a5; $custom-dark: #000000;
JSON
{
"hex": "#3d177f",
"rgb": {
"r": 61,
"g": 23,
"b": 127
},
"hsl": {
"h": 261.923,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.33457,
"c": 0.15887,
"h": 292
},
"luminance": 0.03137
}Semantic roles & 50–950 ramp
primary
#3D177F
secondary
#89B43E
accent
#EC3CAC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F