#3D176E#3D176E
#3D176E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.139 H 297.7°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).
Color values
| HEX | #3D176E |
|---|---|
| RGB | rgb(61, 23, 110) |
| HSL | hsl(266, 65%, 26%) |
| HSV | hsv(266, 79%, 43%) |
| CMYK | cmyk(44.5%, 79.1%, 0%, 56.9%) |
| CIE-LAB | lab(18.93, 37.34, -43.09) |
| CIE-LCH | lch(18.93, 57.02, 310.91°) |
| OKLab | oklab(31.8% 0.0647 -0.1233) |
| OKLCH | oklch(31.8% 0.139 297.7) |
| XYZ | xyz(5.0446, 2.7306, 15.0101) |
| Luminance | 0.0273 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 4.18
Indigo
#4B0082
ΔE00 4.74
Indigo (survey)
#380282
ΔE00 4.82
Midnight Blue
#191970
ΔE00 5.99
Dark Indigo
#1F0954
ΔE00 6.23
Dark Royal Blue
#02066F
ΔE00 7.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D176E #486E17
analogous
#171C6E #3D176E #68176E
triadic
#3D176E #6E3D17 #176E3D
tetradic
#3D176E #6E171C #486E17 #176E68
square
#3D176E #6E171C #486E17 #176E68
split-complementary
#3D176E #6E6817 #1C6E17
monochromatic
#0E0519 #210C3B #3D176E #5922A1 #752CD3
Accessibility & contrast
On white
13.58
#3D176E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#3D176E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D176E
13.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D176E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D176E | 1.00 | 13.58 | 1.55 | 13.58 |
| #FFFFFF | 13.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#302E41
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #3d176e; /* rgb */ color: rgb(61, 23, 110); /* oklch */ color: oklch(31.8% 0.139 297.7);
Tailwind
colors: {
custom: {
50: '#785898',
500: '#3d176e',
950: '#000000',
},
}SCSS
$custom: #3d176e; $custom-light: #785898; $custom-dark: #000000;
JSON
{
"hex": "#3d176e",
"rgb": {
"r": 61,
"g": 23,
"b": 110
},
"hsl": {
"h": 266.207,
"s": 65.414,
"l": 26.078
},
"oklch": {
"l": 0.31797,
"c": 0.13922,
"h": 297.7
},
"luminance": 0.02731
}Semantic roles & 50–950 ramp
primary
#3D176E
secondary
#77A43D
accent
#E83F9F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E