#3D178F#3D178F
#3D178F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.177 H 287.7°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).
Color values
| HEX | #3D178F |
|---|---|
| RGB | rgb(61, 23, 143) |
| HSL | hsl(259, 72%, 33%) |
| HSV | hsv(259, 84%, 56%) |
| CMYK | cmyk(57.3%, 83.9%, 0%, 43.9%) |
| CIE-LAB | lab(22.26, 46.53, -58.58) |
| CIE-LCH | lch(22.26, 74.81, 308.46°) |
| OKLab | oklab(35.12% 0.0538 -0.1686) |
| OKLCH | oklch(35.12% 0.177 287.7) |
| XYZ | xyz(7.1873, 3.5877, 26.2950) |
| Luminance | 0.0359 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.40
Indigo
#4B0082
ΔE00 4.25
Royal
#0C1793
ΔE00 4.68
Indigo Blue
#3A18B1
ΔE00 4.76
Cobalt Blue
#030AA7
ΔE00 5.37
Ultramarine
#2000B1
ΔE00 5.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D178F #698F17
analogous
#172D8F #3D178F #79178F
triadic
#3D178F #8F3D17 #178F3D
tetradic
#3D178F #8F172D #698F17 #178F79
square
#3D178F #8F172D #698F17 #178F79
split-complementary
#3D178F #8F7917 #2D8F17
monochromatic
#100626 #270F5A #3D178F #531FC4 #7340E0
Accessibility & contrast
On white
12.23
#3D178F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#3D178F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D178F
12.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D178F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D178F | 1.00 | 12.23 | 1.72 | 12.23 |
| #FFFFFF | 12.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#173C54
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3d178f; /* rgb */ color: rgb(61, 23, 143); /* oklch */ color: oklch(35.1% 0.177 287.7);
Tailwind
colors: {
custom: {
50: '#7d5bb1',
500: '#3d178f',
950: '#000000',
},
}SCSS
$custom: #3d178f; $custom-light: #7d5bb1; $custom-dark: #000000;
JSON
{
"hex": "#3d178f",
"rgb": {
"r": 61,
"g": 23,
"b": 143
},
"hsl": {
"h": 259,
"s": 72.289,
"l": 32.549
},
"oklch": {
"l": 0.35118,
"c": 0.17701,
"h": 287.7
},
"luminance": 0.03588
}Semantic roles & 50–950 ramp
primary
#3D178F
secondary
#98C141
accent
#EF39B5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980