#3D176F#3D176F
#3D176F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.140 H 297.3°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).
Color values
| HEX | #3D176F |
|---|---|
| RGB | rgb(61, 23, 111) |
| HSL | hsl(266, 66%, 26%) |
| HSV | hsv(266, 79%, 44%) |
| CMYK | cmyk(45%, 79.3%, 0%, 56.5%) |
| CIE-LAB | lab(19.02, 37.61, -43.59) |
| CIE-LCH | lch(19.02, 57.57, 310.79°) |
| OKLab | oklab(31.89% 0.0644 -0.1247) |
| OKLCH | oklch(31.89% 0.14 297.3) |
| XYZ | xyz(5.0994, 2.7525, 15.2985) |
| Luminance | 0.0275 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 4.20
Indigo
#4B0082
ΔE00 4.62
Indigo (survey)
#380282
ΔE00 4.66
Midnight Blue
#191970
ΔE00 5.93
Dark Indigo
#1F0954
ΔE00 6.31
Dark Royal Blue
#02066F
ΔE00 7.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D176F #496F17
analogous
#171D6F #3D176F #69176F
triadic
#3D176F #6F3D17 #176F3D
tetradic
#3D176F #6F171D #496F17 #176F69
square
#3D176F #6F171D #496F17 #176F69
split-complementary
#3D176F #6F6917 #1D6F17
monochromatic
#0E0519 #210C3C #3D176F #5922A2 #752DD3
Accessibility & contrast
On white
13.54
#3D176F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#3D176F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D176F
13.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D176F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D176F | 1.00 | 13.54 | 1.55 | 13.54 |
| #FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#302E42
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #3d176f; /* rgb */ color: rgb(61, 23, 111); /* oklch */ color: oklch(31.9% 0.140 297.3);
Tailwind
colors: {
custom: {
50: '#785999',
500: '#3d176f',
950: '#000000',
},
}SCSS
$custom: #3d176f; $custom-light: #785999; $custom-dark: #000000;
JSON
{
"hex": "#3d176f",
"rgb": {
"r": 61,
"g": 23,
"b": 111
},
"hsl": {
"h": 265.909,
"s": 65.672,
"l": 26.275
},
"oklch": {
"l": 0.31891,
"c": 0.14039,
"h": 297.3
},
"luminance": 0.02753
}Semantic roles & 50–950 ramp
primary
#3D176F
secondary
#78A53D
accent
#E93F9F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E