#4A2EAA#4A2EAA
#4A2EAA is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.185 H 285.5°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).
Color values
| HEX | #4A2EAA |
|---|---|
| RGB | rgb(74, 46, 170) |
| HSL | hsl(254, 57%, 42%) |
| HSV | hsv(254, 73%, 67%) |
| CMYK | cmyk(56.5%, 72.9%, 0%, 33.3%) |
| CIE-LAB | lab(30.19, 44.99, -61.99) |
| CIE-LCH | lch(30.19, 76.60, 305.97°) |
| OKLab | oklab(41.79% 0.0496 -0.1784) |
| OKLCH | oklch(41.79% 0.185 285.5) |
| XYZ | xyz(11.0545, 6.3115, 38.6582) |
| Luminance | 0.0631 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.47
Ocean Blue
#4F42B5
ΔE00 5.30
Blue With A Hint Of Purple
#533CC6
ΔE00 5.32
Blurple
#5539CC
ΔE00 5.64
Violet Blue
#510AC9
ΔE00 5.78
Purple Blue
#5D21D0
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A2EAA #8EAA2E
analogous
#2E50AA #4A2EAA #882EAA
triadic
#4A2EAA #AA4A2E #2EAA4A
tetradic
#4A2EAA #AA2E50 #8EAA2E #2EAA88
square
#4A2EAA #AA2E50 #8EAA2E #2EAA88
split-complementary
#4A2EAA #AA882E #50AA2E
monochromatic
#20144A #35217A #4A2EAA #6648CD #8E78DA
Accessibility & contrast
On white
9.28
#4A2EAA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#4A2EAA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A2EAA
9.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A2EAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A2EAA | 1.00 | 9.28 | 2.26 | 9.28 |
| #FFFFFF | 9.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#1D5069
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #4a2eaa; /* rgb */ color: rgb(74, 46, 170); /* oklch */ color: oklch(41.8% 0.185 285.5);
Tailwind
colors: {
custom: {
50: '#876ac4',
500: '#4a2eaa',
950: '#000000',
},
}SCSS
$custom: #4a2eaa; $custom-light: #876ac4; $custom-dark: #000000;
JSON
{
"hex": "#4a2eaa",
"rgb": {
"r": 74,
"g": 46,
"b": 170
},
"hsl": {
"h": 253.548,
"s": 57.407,
"l": 42.353
},
"oklch": {
"l": 0.41794,
"c": 0.18516,
"h": 285.5
},
"luminance": 0.06312
}Semantic roles & 50–950 ramp
primary
#4A2EAA
secondary
#B0C371
accent
#E147BE
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82