#4A229F#4A229F
#4A229F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.185 H 289.5°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).
Color values
| HEX | #4A229F |
|---|---|
| RGB | rgb(74, 34, 159) |
| HSL | hsl(259, 65%, 38%) |
| HSV | hsv(259, 79%, 62%) |
| CMYK | cmyk(53.5%, 78.6%, 0%, 37.6%) |
| CIE-LAB | lab(27.03, 47.82, -60.53) |
| CIE-LCH | lch(27.03, 77.14, 308.31°) |
| OKLab | oklab(39.25% 0.0618 -0.174) |
| OKLCH | oklch(39.25% 0.185 289.5) |
| XYZ | xyz(9.6523, 5.1027, 33.2705) |
| Luminance | 0.0510 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.49
Violet Blue
#510AC9
ΔE00 5.77
Ultramarine
#2000B1
ΔE00 6.20
Indigo
#4B0082
ΔE00 6.40
Rebeccapurple
#663399
ΔE00 6.43
Indigo (survey)
#380282
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A229F #779F22
analogous
#22389F #4A229F #88229F
triadic
#4A229F #9F4A22 #229F4A
tetradic
#4A229F #9F2238 #779F22 #229F88
square
#4A229F #9F2238 #779F22 #229F88
split-complementary
#4A229F #9F8822 #389F22
monochromatic
#1B0C3A #33176D #4A229F #612DD1 #875FDD
Accessibility & contrast
On white
10.39
#4A229F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#4A229F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A229F
10.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A229F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A229F | 1.00 | 10.39 | 2.02 | 10.39 |
| #FFFFFF | 10.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#2A4660
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #4a229f; /* rgb */ color: rgb(74, 34, 159); /* oklch */ color: oklch(39.3% 0.185 289.5);
Tailwind
colors: {
custom: {
50: '#8662bc',
500: '#4a229f',
950: '#000000',
},
}SCSS
$custom: #4a229f; $custom-light: #8662bc; $custom-dark: #000000;
JSON
{
"hex": "#4a229f",
"rgb": {
"r": 74,
"g": 34,
"b": 159
},
"hsl": {
"h": 259.2,
"s": 64.767,
"l": 37.843
},
"oklch": {
"l": 0.39254,
"c": 0.18467,
"h": 289.5
},
"luminance": 0.05103
}Semantic roles & 50–950 ramp
primary
#4A229F
secondary
#A1C15B
accent
#E840B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81