#4A188E#4A188E
#4A188E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.175 H 295.2°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).
Color values
| HEX | #4A188E |
|---|---|
| RGB | rgb(74, 24, 142) |
| HSL | hsl(265, 71%, 33%) |
| HSV | hsv(265, 83%, 56%) |
| CMYK | cmyk(47.9%, 83.1%, 0%, 44.3%) |
| CIE-LAB | lab(23.88, 47.54, -55.25) |
| CIE-LCH | lch(23.88, 72.88, 310.71°) |
| OKLab | oklab(36.56% 0.0746 -0.1585) |
| OKLCH | oklch(36.56% 0.175 295.2) |
| XYZ | xyz(8.0318, 4.0619, 25.9468) |
| Luminance | 0.0406 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.37
Indigo (survey)
#380282
ΔE00 4.24
Indigo Blue
#3A18B1
ΔE00 5.52
Royal Purple (survey)
#4B006E
ΔE00 6.19
Royal
#0C1793
ΔE00 6.79
Ultramarine
#2000B1
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A188E #5C8E18
analogous
#18218E #4A188E #85188E
triadic
#4A188E #8E4A18 #188E4A
tetradic
#4A188E #8E1821 #5C8E18 #188E85
square
#4A188E #8E1821 #5C8E18 #188E85
split-complementary
#4A188E #8E8518 #218E18
monochromatic
#130625 #2F0F5A #4A188E #6521C2 #8441DF
Accessibility & contrast
On white
11.59
#4A188E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#4A188E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A188E
11.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A188E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A188E | 1.00 | 11.59 | 1.81 | 11.59 |
| #FFFFFF | 11.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#363B54
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #4a188e; /* rgb */ color: rgb(74, 24, 142); /* oklch */ color: oklch(36.6% 0.175 295.2);
Tailwind
colors: {
custom: {
50: '#845cb0',
500: '#4a188e',
950: '#000000',
},
}SCSS
$custom: #4a188e; $custom-light: #845cb0; $custom-dark: #000000;
JSON
{
"hex": "#4a188e",
"rgb": {
"r": 74,
"g": 24,
"b": 142
},
"hsl": {
"h": 265.424,
"s": 71.084,
"l": 32.549
},
"oklch": {
"l": 0.36562,
"c": 0.17516,
"h": 295.2
},
"luminance": 0.04062
}Semantic roles & 50–950 ramp
primary
#4A188E
secondary
#8AC042
accent
#EE3AA2
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980