#3D178D#3D178D
#3D178D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.175 H 288.2°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).
Color values
| HEX | #3D178D |
|---|---|
| RGB | rgb(61, 23, 141) |
| HSL | hsl(259, 72%, 32%) |
| HSV | hsv(259, 84%, 55%) |
| CMYK | cmyk(56.7%, 83.7%, 0%, 44.7%) |
| CIE-LAB | lab(22.04, 45.97, -57.69) |
| CIE-LCH | lch(22.04, 73.77, 308.55°) |
| OKLab | oklab(34.91% 0.0545 -0.166) |
| OKLCH | oklch(34.91% 0.175 288.2) |
| XYZ | xyz(7.0372, 3.5276, 25.5042) |
| Luminance | 0.0353 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.24
Indigo
#4B0082
ΔE00 4.10
Royal
#0C1793
ΔE00 4.76
Indigo Blue
#3A18B1
ΔE00 5.06
Cobalt Blue
#030AA7
ΔE00 5.57
Ultramarine
#2000B1
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D178D #678D17
analogous
#172C8D #3D178D #78178D
triadic
#3D178D #8D3D17 #178D3D
tetradic
#3D178D #8D172C #678D17 #178D78
square
#3D178D #8D172C #678D17 #178D78
split-complementary
#3D178D #8D7817 #2C8D17
monochromatic
#0F0624 #260E58 #3D178D #5420C2 #733FE0
Accessibility & contrast
On white
12.31
#3D178D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#3D178D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D178D
12.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D178D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D178D | 1.00 | 12.31 | 1.71 | 12.31 |
| #FFFFFF | 12.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#1A3B53
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3d178d; /* rgb */ color: rgb(61, 23, 141); /* oklch */ color: oklch(34.9% 0.175 288.2);
Tailwind
colors: {
custom: {
50: '#7d5aaf',
500: '#3d178d',
950: '#000000',
},
}SCSS
$custom: #3d178d; $custom-light: #7d5aaf; $custom-dark: #000000;
JSON
{
"hex": "#3d178d",
"rgb": {
"r": 61,
"g": 23,
"b": 141
},
"hsl": {
"h": 259.322,
"s": 71.951,
"l": 32.157
},
"oklch": {
"l": 0.34906,
"c": 0.17477,
"h": 288.2
},
"luminance": 0.03528
}Semantic roles & 50–950 ramp
primary
#3D178D
secondary
#97C040
accent
#EF39B4
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980