#3A1B9F#3A1B9F
#3A1B9F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.192 H 282.3°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1B9F |
|---|---|
| RGB | rgb(58, 27, 159) |
| HSL | hsl(254, 71%, 36%) |
| HSV | hsv(254, 83%, 62%) |
| CMYK | cmyk(63.5%, 83%, 0%, 37.6%) |
| CIE-LAB | lab(24.28, 49.04, -65.12) |
| CIE-LCH | lch(24.28, 81.52, 306.99°) |
| OKLab | oklab(36.95% 0.0411 -0.1878) |
| OKLCH | oklch(36.95% 0.192 282.3) |
| XYZ | xyz(8.3929, 4.1860, 33.1599) |
| Luminance | 0.0419 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.41
Ultramarine
#2000B1
ΔE00 4.07
Cobalt Blue
#030AA7
ΔE00 4.29
Royal
#0C1793
ΔE00 4.45
Royal Blue (survey)
#0504AA
ΔE00 4.52
Indigo (survey)
#380282
ΔE00 5.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1B9F #809F1B
analogous
#1B3E9F #3A1B9F #7C1B9F
triadic
#3A1B9F #9F3A1B #1B9F3A
tetradic
#3A1B9F #9F1B3E #809F1B #1B9F7C
square
#3A1B9F #9F1B3E #809F1B #1B9F7C
split-complementary
#3A1B9F #9F7C1B #3E9F1B
monochromatic
#140936 #27126B #3A1B9F #4D24D3 #7453E2
Accessibility & contrast
On white
11.43
#3A1B9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#3A1B9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1B9F
11.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1B9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1B9F | 1.00 | 11.43 | 1.84 | 11.43 |
| #FFFFFF | 11.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3a1b9f; /* rgb */ color: rgb(58, 27, 159); /* oklch */ color: oklch(37.0% 0.192 282.3);
Tailwind
colors: {
custom: {
50: '#7e5dbd',
500: '#3a1b9f',
950: '#000000',
},
}SCSS
$custom: #3a1b9f; $custom-light: #7e5dbd; $custom-dark: #000000;
JSON
{
"hex": "#3a1b9f",
"rgb": {
"r": 58,
"g": 27,
"b": 159
},
"hsl": {
"h": 254.091,
"s": 70.968,
"l": 36.471
},
"oklch": {
"l": 0.36952,
"c": 0.19226,
"h": 282.3
},
"luminance": 0.04187
}Semantic roles & 50–950 ramp
primary
#3A1B9F
secondary
#A9C551
accent
#EE3AC4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981