#4A2AB3#4A2AB3
#4A2AB3 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.200 H 284.6°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).
Color values
| HEX | #4A2AB3 |
|---|---|
| RGB | rgb(74, 42, 179) |
| HSL | hsl(254, 62%, 43%) |
| HSV | hsv(254, 77%, 70%) |
| CMYK | cmyk(58.7%, 76.5%, 0%, 29.8%) |
| CIE-LAB | lab(30.32, 49.69, -67.16) |
| CIE-LCH | lch(30.32, 83.54, 306.50°) |
| OKLab | oklab(42.15% 0.0503 -0.1935) |
| OKLCH | oklch(42.15% 0.2 284.6) |
| XYZ | xyz(11.7862, 6.3657, 43.2467) |
| Luminance | 0.0637 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.69
Violet Blue
#510AC9
ΔE00 4.39
Purple Blue
#5D21D0
ΔE00 4.61
Blue With A Hint Of Purple
#533CC6
ΔE00 5.07
Blurple
#5539CC
ΔE00 5.13
Ocean Blue
#4F42B5
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A2AB3 #93B32A
analogous
#2A4EB3 #4A2AB3 #8E2AB3
triadic
#4A2AB3 #B34A2A #2AB34A
tetradic
#4A2AB3 #B32A4E #93B32A #2AB38E
square
#4A2AB3 #B32A4E #93B32A #2AB38E
split-complementary
#4A2AB3 #B38E2A #4EB32A
monochromatic
#211350 #361E81 #4A2AB3 #6746D4 #9078DF
Accessibility & contrast
On white
9.24
#4A2AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#4A2AB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A2AB3
9.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A2AB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A2AB3 | 1.00 | 9.24 | 2.27 | 9.24 |
| #FFFFFF | 9.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#0C516D
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #4a2ab3; /* rgb */ color: rgb(74, 42, 179); /* oklch */ color: oklch(42.1% 0.200 284.6);
Tailwind
colors: {
custom: {
50: '#8968cb',
500: '#4a2ab3',
950: '#000000',
},
}SCSS
$custom: #4a2ab3; $custom-light: #8968cb; $custom-dark: #000000;
JSON
{
"hex": "#4a2ab3",
"rgb": {
"r": 74,
"g": 42,
"b": 179
},
"hsl": {
"h": 254.015,
"s": 61.991,
"l": 43.333
},
"oklch": {
"l": 0.42147,
"c": 0.19993,
"h": 284.6
},
"luminance": 0.06366
}Semantic roles & 50–950 ramp
primary
#4A2AB3
secondary
#B3C772
accent
#E543BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82