#3A1F96#3A1F96
#3A1F96 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.178 H 283.5°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1F96 |
|---|---|
| RGB | rgb(58, 31, 150) |
| HSL | hsl(254, 66%, 35%) |
| HSV | hsv(254, 79%, 59%) |
| CMYK | cmyk(61.3%, 79.3%, 0%, 41.2%) |
| CIE-LAB | lab(23.94, 44.56, -60.16) |
| CIE-LCH | lch(23.94, 74.87, 306.53°) |
| OKLab | oklab(36.43% 0.0417 -0.1734) |
| OKLCH | oklch(36.43% 0.178 283.5) |
| XYZ | xyz(7.7382, 4.0810, 29.2282) |
| Luminance | 0.0408 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.79
Royal
#0C1793
ΔE00 4.32
Cobalt Blue
#030AA7
ΔE00 5.11
Indigo (survey)
#380282
ΔE00 5.20
Ultramarine
#2000B1
ΔE00 5.30
Royal Blue (survey)
#0504AA
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1F96 #7B961F
analogous
#1F4096 #3A1F96 #751F96
triadic
#3A1F96 #963A1F #1F963A
tetradic
#3A1F96 #961F40 #7B961F #1F9675
square
#3A1F96 #961F40 #7B961F #1F9675
split-complementary
#3A1F96 #96751F #40961F
monochromatic
#130A31 #261563 #3A1F96 #4E29C9 #7354DC
Accessibility & contrast
On white
11.56
#3A1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#3A1F96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1F96
11.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1F96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1F96 | 1.00 | 11.56 | 1.82 | 11.56 |
| #FFFFFF | 11.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3a1f96; /* rgb */ color: rgb(58, 31, 150); /* oklch */ color: oklch(36.4% 0.178 283.5);
Tailwind
colors: {
custom: {
50: '#7c5fb6',
500: '#3a1f96',
950: '#000000',
},
}SCSS
$custom: #3a1f96; $custom-light: #7c5fb6; $custom-dark: #000000;
JSON
{
"hex": "#3a1f96",
"rgb": {
"r": 58,
"g": 31,
"b": 150
},
"hsl": {
"h": 253.613,
"s": 65.746,
"l": 35.49
},
"oklch": {
"l": 0.36428,
"c": 0.17836,
"h": 283.5
},
"luminance": 0.04082
}Semantic roles & 50–950 ramp
primary
#3A1F96
secondary
#A6BF52
accent
#E93FC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980