#3A148F#3A148F
#3A148F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.180 H 286.3°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).
Color values
| HEX | #3A148F |
|---|---|
| RGB | rgb(58, 20, 143) |
| HSL | hsl(259, 75%, 32%) |
| HSV | hsv(259, 86%, 56%) |
| CMYK | cmyk(59.4%, 86%, 0%, 43.9%) |
| CIE-LAB | lab(21.52, 47.39, -59.82) |
| CIE-LCH | lch(21.52, 76.32, 308.39°) |
| OKLab | oklab(34.53% 0.0505 -0.1723) |
| OKLCH | oklch(34.53% 0.18 286.3) |
| XYZ | xyz(6.9515, 3.3826, 26.2679) |
| Luminance | 0.0338 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.99
Indigo
#4B0082
ΔE00 4.27
Royal
#0C1793
ΔE00 4.30
Indigo Blue
#3A18B1
ΔE00 4.81
Cobalt Blue
#030AA7
ΔE00 4.93
Ultramarine
#2000B1
ΔE00 5.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A148F #698F14
analogous
#142B8F #3A148F #78148F
triadic
#3A148F #8F3A14 #148F3A
tetradic
#3A148F #8F142B #698F14 #148F78
square
#3A148F #8F142B #698F14 #148F78
split-complementary
#3A148F #8F7814 #2B8F14
monochromatic
#0E0524 #240C59 #3A148F #501CC5 #6E3AE3
Accessibility & contrast
On white
12.53
#3A148F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#3A148F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A148F
12.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A148F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A148F | 1.00 | 12.53 | 1.68 | 12.53 |
| #FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#0B3B54
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #3a148f; /* rgb */ color: rgb(58, 20, 143); /* oklch */ color: oklch(34.5% 0.180 286.3);
Tailwind
colors: {
custom: {
50: '#7c59b1',
500: '#3a148f',
950: '#000000',
},
}SCSS
$custom: #3a148f; $custom-light: #7c59b1; $custom-dark: #000000;
JSON
{
"hex": "#3a148f",
"rgb": {
"r": 58,
"g": 20,
"b": 143
},
"hsl": {
"h": 258.537,
"s": 75.46,
"l": 31.961
},
"oklch": {
"l": 0.34528,
"c": 0.17957,
"h": 286.3
},
"luminance": 0.03383
}Semantic roles & 50–950 ramp
primary
#3A148F
secondary
#99C33C
accent
#F236B8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980