#3A1B92#3A1B92
#3A1B92 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.177 H 284.8°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1B92 |
|---|---|
| RGB | rgb(58, 27, 146) |
| HSL | hsl(256, 69%, 34%) |
| HSV | hsv(256, 82%, 57%) |
| CMYK | cmyk(60.3%, 81.5%, 0%, 42.7%) |
| CIE-LAB | lab(22.86, 45.28, -59.47) |
| CIE-LCH | lch(22.86, 74.75, 307.29°) |
| OKLab | oklab(35.55% 0.0454 -0.1714) |
| OKLCH | oklch(35.55% 0.177 284.8) |
| XYZ | xyz(7.3236, 3.7583, 27.5281) |
| Luminance | 0.0376 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.18
Indigo (survey)
#380282
ΔE00 4.22
Indigo Blue
#3A18B1
ΔE00 4.26
Cobalt Blue
#030AA7
ΔE00 5.03
Indigo
#4B0082
ΔE00 5.23
Ultramarine
#2000B1
ΔE00 5.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1B92 #73921B
analogous
#1B3892 #3A1B92 #761B92
triadic
#3A1B92 #923A1B #1B923A
tetradic
#3A1B92 #921B38 #73921B #1B9276
square
#3A1B92 #921B38 #73921B #1B9276
split-complementary
#3A1B92 #92761B #38921B
monochromatic
#11082B #25115E #3A1B92 #4F25C6 #704ADE
Accessibility & contrast
On white
11.99
#3A1B92 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#3A1B92 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1B92
11.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1B92 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1B92 | 1.00 | 11.99 | 1.75 | 11.99 |
| #FFFFFF | 11.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#003390
Tritanopia (blue-blind)
#033F57
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #3a1b92; /* rgb */ color: rgb(58, 27, 146); /* oklch */ color: oklch(35.5% 0.177 284.8);
Tailwind
colors: {
custom: {
50: '#7c5cb3',
500: '#3a1b92',
950: '#000000',
},
}SCSS
$custom: #3a1b92; $custom-light: #7c5cb3; $custom-dark: #000000;
JSON
{
"hex": "#3a1b92",
"rgb": {
"r": 58,
"g": 27,
"b": 146
},
"hsl": {
"h": 255.63,
"s": 68.786,
"l": 33.922
},
"oklch": {
"l": 0.35549,
"c": 0.17731,
"h": 284.8
},
"luminance": 0.03759
}Semantic roles & 50–950 ramp
primary
#3A1B92
secondary
#A1BF49
accent
#EC3CBE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980