#4A238B#4A238B
#4A238B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.160 H 294.4°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).
Color values
| HEX | #4A238B |
|---|---|
| RGB | rgb(74, 35, 139) |
| HSL | hsl(263, 60%, 34%) |
| HSV | hsv(263, 75%, 55%) |
| CMYK | cmyk(46.8%, 74.8%, 0%, 45.5%) |
| CIE-LAB | lab(25.33, 41.76, -51.00) |
| CIE-LCH | lch(25.33, 65.91, 309.31°) |
| OKLab | oklab(37.49% 0.0664 -0.1461) |
| OKLCH | oklch(37.49% 0.16 294.4) |
| XYZ | xyz(8.0840, 4.5218, 24.8679) |
| Luminance | 0.0452 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.03
Indigo (survey)
#380282
ΔE00 5.76
Rebeccapurple
#663399
ΔE00 6.18
Indigo Blue
#3A18B1
ΔE00 6.25
Royal Purple (survey)
#4B006E
ΔE00 7.06
Darkslateblue
#483D8B
ΔE00 7.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A238B #648B23
analogous
#23308B #4A238B #7E238B
triadic
#4A238B #8B4A23 #238B4A
tetradic
#4A238B #8B2330 #648B23 #238B7E
square
#4A238B #8B2330 #648B23 #238B7E
split-complementary
#4A238B #8B7E23 #308B23
monochromatic
#160A29 #30175A #4A238B #642FBC #8454D4
Accessibility & contrast
On white
11.03
#4A238B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#4A238B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A238B
11.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A238B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A238B | 1.00 | 11.03 | 1.90 | 11.03 |
| #FFFFFF | 11.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#373E55
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #4a238b; /* rgb */ color: rgb(74, 35, 139); /* oklch */ color: oklch(37.5% 0.160 294.4);
Tailwind
colors: {
custom: {
50: '#8362ae',
500: '#4a238b',
950: '#000000',
},
}SCSS
$custom: #4a238b; $custom-light: #8362ae; $custom-dark: #000000;
JSON
{
"hex": "#4a238b",
"rgb": {
"r": 74,
"g": 35,
"b": 139
},
"hsl": {
"h": 262.5,
"s": 59.77,
"l": 34.118
},
"oklch": {
"l": 0.37491,
"c": 0.16049,
"h": 294.4
},
"luminance": 0.04522
}Semantic roles & 50–950 ramp
primary
#4A238B
secondary
#92B852
accent
#E345A8
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F