#4A319A#4A319A
#4A319A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.162 H 287.9°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).
Color values
| HEX | #4A319A |
|---|---|
| RGB | rgb(74, 49, 154) |
| HSL | hsl(254, 52%, 40%) |
| HSV | hsv(254, 68%, 60%) |
| CMYK | cmyk(51.9%, 68.2%, 0%, 39.6%) |
| CIE-LAB | lab(29.37, 38.51, -53.63) |
| CIE-LCH | lch(29.37, 66.02, 305.68°) |
| OKLab | oklab(40.78% 0.0499 -0.1539) |
| OKLCH | oklch(40.78% 0.162 287.9) |
| XYZ | xyz(9.7534, 5.9851, 31.2069) |
| Luminance | 0.0599 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.77
Blueberry
#464196
ΔE00 5.10
Rebeccapurple
#663399
ΔE00 5.43
Ocean Blue
#4F42B5
ΔE00 5.90
Indigo Blue
#3A18B1
ΔE00 6.10
Sapphire (survey)
#2138AB
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A319A #819A31
analogous
#314C9A #4A319A #7F319A
triadic
#4A319A #9A4A31 #319A4A
tetradic
#4A319A #9A314C #819A31 #319A7F
square
#4A319A #9A314C #819A31 #319A7F
split-complementary
#4A319A #9A7F31 #4C9A31
monochromatic
#1D133D #34226C #4A319A #6345C4 #8A73D2
Accessibility & contrast
On white
9.56
#4A319A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#4A319A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A319A
9.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A319A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A319A | 1.00 | 9.56 | 2.20 | 9.56 |
| #FFFFFF | 9.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00489D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#2D4B61
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #4a319a; /* rgb */ color: rgb(74, 49, 154); /* oklch */ color: oklch(40.8% 0.162 287.9);
Tailwind
colors: {
custom: {
50: '#846bb9',
500: '#4a319a',
950: '#000000',
},
}SCSS
$custom: #4a319a; $custom-light: #846bb9; $custom-dark: #000000;
JSON
{
"hex": "#4a319a",
"rgb": {
"r": 74,
"g": 49,
"b": 154
},
"hsl": {
"h": 254.286,
"s": 51.724,
"l": 39.804
},
"oklch": {
"l": 0.4078,
"c": 0.16177,
"h": 287.9
},
"luminance": 0.05986
}Semantic roles & 50–950 ramp
primary
#4A319A
secondary
#A8BA6C
accent
#DB4DB9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80