#3A175C#3A175C
#3A175C is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.8% C 0.117 H 303.1°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).
Color values
| HEX | #3A175C |
|---|---|
| RGB | rgb(58, 23, 92) |
| HSL | hsl(270, 60%, 23%) |
| HSV | hsv(270, 75%, 36%) |
| CMYK | cmyk(37%, 75%, 0%, 63.9%) |
| CIE-LAB | lab(16.92, 31.78, -34.54) |
| CIE-LCH | lch(16.92, 46.93, 312.62°) |
| OKLab | oklab(29.78% 0.064 -0.0983) |
| OKLCH | oklch(29.78% 0.117 303.1) |
| XYZ | xyz(3.9826, 2.2850, 10.3544) |
| Luminance | 0.0228 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 5.46
Royal Purple (survey)
#4B006E
ΔE00 5.55
Dark Violet
#34013F
ΔE00 6.72
Dark Purple
#35063E
ΔE00 6.78
Deep Purple
#36013F
ΔE00 6.89
Plum Purple
#4E0550
ΔE00 7.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A175C #395C17
analogous
#18175C #3A175C #5C175B
triadic
#3A175C #5C3A17 #175C3A
tetradic
#3A175C #5C1817 #395C17 #175B5C
square
#3A175C #5C1817 #395C17 #175B5C
split-complementary
#3A175C #5B5C17 #175C18
monochromatic
#0F0618 #1B0B2B #3A175C #59238D #782FBE
Accessibility & contrast
On white
14.41
#3A175C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#3A175C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A175C
14.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A175C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A175C | 1.00 | 14.41 | 1.46 | 14.41 |
| #FFFFFF | 14.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#332737
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #3a175c; /* rgb */ color: rgb(58, 23, 92); /* oklch */ color: oklch(29.8% 0.117 303.1);
Tailwind
colors: {
custom: {
50: '#74578b',
500: '#3a175c',
950: '#000000',
},
}SCSS
$custom: #3a175c; $custom-light: #74578b; $custom-dark: #000000;
JSON
{
"hex": "#3a175c",
"rgb": {
"r": 58,
"g": 23,
"b": 92
},
"hsl": {
"h": 270.435,
"s": 60,
"l": 22.549
},
"oklch": {
"l": 0.29784,
"c": 0.11728,
"h": 303.1
},
"luminance": 0.02285
}Semantic roles & 50–950 ramp
primary
#3A175C
secondary
#67933C
accent
#E34593
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D