#3A196B#3A196B
#3A196B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.133 H 296.2°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).
Color values
| HEX | #3A196B |
|---|---|
| RGB | rgb(58, 25, 107) |
| HSL | hsl(264, 62%, 26%) |
| HSV | hsv(264, 77%, 42%) |
| CMYK | cmyk(45.8%, 76.6%, 0%, 58%) |
| CIE-LAB | lab(18.61, 34.93, -41.68) |
| CIE-LCH | lch(18.61, 54.38, 309.97°) |
| OKLab | oklab(31.4% 0.0587 -0.1193) |
| OKLCH | oklch(31.4% 0.133 296.2) |
| XYZ | xyz(4.7457, 2.6562, 14.1697) |
| Luminance | 0.0266 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 4.95
Indigo (survey)
#380282
ΔE00 5.45
Midnight Blue
#191970
ΔE00 5.57
Indigo
#4B0082
ΔE00 5.62
Dark Indigo
#1F0954
ΔE00 5.78
Darkblue (survey)
#030764
ΔE00 7.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A196B #4A6B19
analogous
#19216B #3A196B #63196B
triadic
#3A196B #6B3A19 #196B3A
tetradic
#3A196B #6B1921 #4A6B19 #196B63
square
#3A196B #6B1921 #4A6B19 #196B63
split-complementary
#3A196B #6B6319 #216B19
monochromatic
#0D0619 #1F0D39 #3A196B #55259D #7030CE
Accessibility & contrast
On white
13.71
#3A196B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#3A196B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A196B
13.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A196B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A196B | 1.00 | 13.71 | 1.53 | 13.71 |
| #FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#2D2E40
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #3a196b; /* rgb */ color: rgb(58, 25, 107); /* oklch */ color: oklch(31.4% 0.133 296.2);
Tailwind
colors: {
custom: {
50: '#765996',
500: '#3a196b',
950: '#000000',
},
}SCSS
$custom: #3a196b; $custom-light: #765996; $custom-dark: #000000;
JSON
{
"hex": "#3a196b",
"rgb": {
"r": 58,
"g": 25,
"b": 107
},
"hsl": {
"h": 264.146,
"s": 62.121,
"l": 25.882
},
"oklch": {
"l": 0.31397,
"c": 0.13291,
"h": 296.2
},
"luminance": 0.02656
}Semantic roles & 50–950 ramp
primary
#3A196B
secondary
#79A13F
accent
#E543A4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E