#3A148A#3A148A
#3A148A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 34.0% C 0.174 H 287.5°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).
Color values
| HEX | #3A148A |
|---|---|
| RGB | rgb(58, 20, 138) |
| HSL | hsl(259, 75%, 31%) |
| HSV | hsv(259, 86%, 54%) |
| CMYK | cmyk(58%, 85.5%, 0%, 45.9%) |
| CIE-LAB | lab(20.96, 46.01, -57.62) |
| CIE-LCH | lch(20.96, 73.74, 308.61°) |
| OKLab | oklab(33.98% 0.0524 -0.1659) |
| OKLCH | oklch(33.98% 0.174 287.5) |
| XYZ | xyz(6.5812, 3.2345, 24.3174) |
| Luminance | 0.0323 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.57
Indigo
#4B0082
ΔE00 3.92
Royal
#0C1793
ΔE00 4.55
Darkblue
#00008B
ΔE00 5.39
Cobalt Blue
#030AA7
ΔE00 5.48
Indigo Blue
#3A18B1
ΔE00 5.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A148A #648A14
analogous
#14298A #3A148A #75148A
triadic
#3A148A #8A3A14 #148A3A
tetradic
#3A148A #8A1429 #648A14 #148A75
square
#3A148A #8A1429 #648A14 #148A75
split-complementary
#3A148A #8A7514 #298A14
monochromatic
#0D051F #240C55 #3A148A #501CBF #6E36E2
Accessibility & contrast
On white
12.75
#3A148A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#3A148A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A148A
12.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A148A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A148A | 1.00 | 12.75 | 1.65 | 12.75 |
| #FFFFFF | 12.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#143951
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3a148a; /* rgb */ color: rgb(58, 20, 138); /* oklch */ color: oklch(34.0% 0.174 287.5);
Tailwind
colors: {
custom: {
50: '#7b59ad',
500: '#3a148a',
950: '#000000',
},
}SCSS
$custom: #3a148a; $custom-light: #7b59ad; $custom-dark: #000000;
JSON
{
"hex": "#3a148a",
"rgb": {
"r": 58,
"g": 20,
"b": 138
},
"hsl": {
"h": 259.322,
"s": 74.684,
"l": 30.98
},
"oklch": {
"l": 0.33983,
"c": 0.17398,
"h": 287.5
},
"luminance": 0.03235
}Semantic roles & 50–950 ramp
primary
#3A148A
secondary
#94BE3C
accent
#F136B5
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F