#3A159F#3A159F
#3A159F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.4% C 0.197 H 282.9°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).
Color values
| HEX | #3A159F |
|---|---|
| RGB | rgb(58, 21, 159) |
| HSL | hsl(256, 77%, 35%) |
| HSV | hsv(256, 87%, 62%) |
| CMYK | cmyk(63.5%, 86.8%, 0%, 37.6%) |
| CIE-LAB | lab(23.47, 51.44, -66.46) |
| CIE-LCH | lch(23.47, 84.04, 307.74°) |
| OKLab | oklab(36.4% 0.0438 -0.1916) |
| OKLCH | oklch(36.4% 0.197 282.9) |
| XYZ | xyz(8.2691, 3.9385, 33.1186) |
| Luminance | 0.0394 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.52
Ultramarine
#2000B1
ΔE00 3.51
Cobalt Blue
#030AA7
ΔE00 3.89
Royal Blue (survey)
#0504AA
ΔE00 4.02
Royal
#0C1793
ΔE00 4.43
Indigo (survey)
#380282
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A159F #7A9F15
analogous
#15359F #3A159F #7F159F
triadic
#3A159F #9F3A15 #159F3A
tetradic
#3A159F #9F1535 #7A9F15 #159F7F
square
#3A159F #9F1535 #7A9F15 #159F7F
split-complementary
#3A159F #9F7F15 #359F15
monochromatic
#130733 #260E69 #3A159F #4E1CD5 #7248E7
Accessibility & contrast
On white
11.75
#3A159F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#3A159F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A159F
11.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A159F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A159F | 1.00 | 11.75 | 1.79 | 11.75 |
| #FFFFFF | 11.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00425E
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3a159f; /* rgb */ color: rgb(58, 21, 159); /* oklch */ color: oklch(36.4% 0.197 282.9);
Tailwind
colors: {
custom: {
50: '#7f5bbd',
500: '#3a159f',
950: '#000000',
},
}SCSS
$custom: #3a159f; $custom-light: #7f5bbd; $custom-dark: #000000;
JSON
{
"hex": "#3a159f",
"rgb": {
"r": 58,
"g": 21,
"b": 159
},
"hsl": {
"h": 256.087,
"s": 76.667,
"l": 35.294
},
"oklch": {
"l": 0.36397,
"c": 0.1966,
"h": 282.9
},
"luminance": 0.03939
}Semantic roles & 50–950 ramp
primary
#3A159F
secondary
#A6C848
accent
#F335C0
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0B0412
muted
#7C7981