#3A1B60#3A1B60
#3A1B60 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.7% C 0.117 H 300.2°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1B60 |
|---|---|
| RGB | rgb(58, 27, 96) |
| HSL | hsl(267, 56%, 24%) |
| HSV | hsv(267, 72%, 38%) |
| CMYK | cmyk(39.6%, 71.9%, 0%, 62.4%) |
| CIE-LAB | lab(18.04, 30.69, -35.37) |
| CIE-LCH | lch(18.04, 46.83, 310.95°) |
| OKLab | oklab(30.69% 0.0586 -0.1007) |
| OKLCH | oklch(30.69% 0.117 300.2) |
| XYZ | xyz(4.2477, 2.5279, 11.3282) |
| Luminance | 0.0253 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 5.75
Royal Purple (survey)
#4B006E
ΔE00 5.92
Midnight Blue
#191970
ΔE00 7.00
Indigo
#4B0082
ΔE00 7.59
Indigo (survey)
#380282
ΔE00 7.77
Dark Purple
#35063E
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1B60 #41601B
analogous
#1B1E60 #3A1B60 #5D1B60
triadic
#3A1B60 #603A1B #1B603A
tetradic
#3A1B60 #601B1E #41601B #1B605D
square
#3A1B60 #601B1E #41601B #1B605D
split-complementary
#3A1B60 #605D1B #1E601B
monochromatic
#0E0718 #1D0E30 #3A1B60 #572890 #7436C0
Accessibility & contrast
On white
13.95
#3A1B60 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#3A1B60 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1B60
13.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1B60 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1B60 | 1.00 | 13.95 | 1.51 | 13.95 |
| #FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C62
Deuteranopia (green-blind)
#002C5F
Tritanopia (blue-blind)
#322B3B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #3a1b60; /* rgb */ color: rgb(58, 27, 96); /* oklch */ color: oklch(30.7% 0.117 300.2);
Tailwind
colors: {
custom: {
50: '#745a8e',
500: '#3a1b60',
950: '#000000',
},
}SCSS
$custom: #3a1b60; $custom-light: #745a8e; $custom-dark: #000000;
JSON
{
"hex": "#3a1b60",
"rgb": {
"r": 58,
"g": 27,
"b": 96
},
"hsl": {
"h": 266.957,
"s": 56.098,
"l": 24.118
},
"oklch": {
"l": 0.30694,
"c": 0.11653,
"h": 300.2
},
"luminance": 0.02528
}Semantic roles & 50–950 ramp
primary
#3A1B60
secondary
#709641
accent
#DF489C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D