#4A238C#4A238C
#4A238C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.162 H 294.2°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).
Color values
| HEX | #4A238C |
|---|---|
| RGB | rgb(74, 35, 140) |
| HSL | hsl(262, 60%, 34%) |
| HSV | hsv(262, 75%, 55%) |
| CMYK | cmyk(47.1%, 75%, 0%, 45.1%) |
| CIE-LAB | lab(25.42, 42.04, -51.48) |
| CIE-LCH | lch(25.42, 66.46, 309.23°) |
| OKLab | oklab(37.58% 0.0662 -0.1475) |
| OKLCH | oklch(37.58% 0.162 294.2) |
| XYZ | xyz(8.1574, 4.5511, 25.2545) |
| Luminance | 0.0455 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.07
Indigo (survey)
#380282
ΔE00 5.78
Indigo Blue
#3A18B1
ΔE00 6.10
Rebeccapurple
#663399
ΔE00 6.16
Royal Purple (survey)
#4B006E
ΔE00 7.17
Royal
#0C1793
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A238C #658C23
analogous
#23308C #4A238C #7F238C
triadic
#4A238C #8C4A23 #238C4A
tetradic
#4A238C #8C2330 #658C23 #238C7F
square
#4A238C #8C2330 #658C23 #238C7F
split-complementary
#4A238C #8C7F23 #308C23
monochromatic
#160B2A #30175B #4A238C #642FBD #8455D4
Accessibility & contrast
On white
10.99
#4A238C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#4A238C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A238C
10.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A238C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A238C | 1.00 | 10.99 | 1.91 | 10.99 |
| #FFFFFF | 10.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#373F55
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #4a238c; /* rgb */ color: rgb(74, 35, 140); /* oklch */ color: oklch(37.6% 0.162 294.2);
Tailwind
colors: {
custom: {
50: '#8362af',
500: '#4a238c',
950: '#000000',
},
}SCSS
$custom: #4a238c; $custom-light: #8362af; $custom-dark: #000000;
JSON
{
"hex": "#4a238c",
"rgb": {
"r": 74,
"g": 35,
"b": 140
},
"hsl": {
"h": 262.286,
"s": 60,
"l": 34.314
},
"oklch": {
"l": 0.37581,
"c": 0.16166,
"h": 294.2
},
"luminance": 0.04551
}Semantic roles & 50–950 ramp
primary
#4A238C
secondary
#93B852
accent
#E345A8
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F