#4A187E#4A187E
#4A187E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.158 H 300.4°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).
Color values
| HEX | #4A187E |
|---|---|
| RGB | rgb(74, 24, 126) |
| HSL | hsl(269, 68%, 29%) |
| HSV | hsv(269, 81%, 49%) |
| CMYK | cmyk(41.3%, 81%, 0%, 50.6%) |
| CIE-LAB | lab(22.36, 43.41, -47.69) |
| CIE-LCH | lch(22.36, 64.48, 312.31°) |
| OKLab | oklab(35.04% 0.0798 -0.1363) |
| OKLCH | oklch(35.04% 0.158 300.4) |
| XYZ | xyz(6.9156, 3.6154, 20.0681) |
| Luminance | 0.0362 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.87
Royal Purple (survey)
#4B006E
ΔE00 4.09
Indigo (survey)
#380282
ΔE00 4.40
Midnight Blue
#191970
ΔE00 7.87
Rebeccapurple
#663399
ΔE00 7.94
Indigo Blue
#3A18B1
ΔE00 8.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A187E #4C7E18
analogous
#18197E #4A187E #7D187E
triadic
#4A187E #7E4A18 #187E4A
tetradic
#4A187E #7E1819 #4C7E18 #187E7D
square
#4A187E #7E1819 #4C7E18 #187E7D
split-complementary
#4A187E #7E7D18 #197E18
monochromatic
#0F051A #2C0E4B #4A187E #6822B1 #8737D9
Accessibility & contrast
On white
12.19
#4A187E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#4A187E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A187E
12.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A187E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A187E | 1.00 | 12.19 | 1.72 | 12.19 |
| #FFFFFF | 12.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#3E344B
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #4a187e; /* rgb */ color: rgb(74, 24, 126); /* oklch */ color: oklch(35.0% 0.158 300.4);
Tailwind
colors: {
custom: {
50: '#825ba4',
500: '#4a187e',
950: '#000000',
},
}SCSS
$custom: #4a187e; $custom-light: #825ba4; $custom-dark: #000000;
JSON
{
"hex": "#4a187e",
"rgb": {
"r": 74,
"g": 24,
"b": 126
},
"hsl": {
"h": 269.412,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.35043,
"c": 0.15796,
"h": 300.4
},
"luminance": 0.03615
}Semantic roles & 50–950 ramp
primary
#4A187E
secondary
#7AB23F
accent
#EB3D96
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F