#4A188F#4A188F
#4A188F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.176 H 294.9°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).
Color values
| HEX | #4A188F |
|---|---|
| RGB | rgb(74, 24, 143) |
| HSL | hsl(265, 71%, 33%) |
| HSV | hsv(265, 83%, 56%) |
| CMYK | cmyk(48.3%, 83.2%, 0%, 43.9%) |
| CIE-LAB | lab(23.97, 47.80, -55.70) |
| CIE-LCH | lch(23.97, 73.40, 310.63°) |
| OKLab | oklab(36.66% 0.0743 -0.1598) |
| OKLCH | oklch(36.66% 0.176 294.9) |
| XYZ | xyz(8.1072, 4.0921, 26.3440) |
| Luminance | 0.0409 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.46
Indigo (survey)
#380282
ΔE00 4.29
Indigo Blue
#3A18B1
ΔE00 5.37
Royal Purple (survey)
#4B006E
ΔE00 6.33
Royal
#0C1793
ΔE00 6.74
Ultramarine
#2000B1
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A188F #5D8F18
analogous
#18228F #4A188F #85188F
triadic
#4A188F #8F4A18 #188F4A
tetradic
#4A188F #8F1822 #5D8F18 #188F85
square
#4A188F #8F1822 #5D8F18 #188F85
split-complementary
#4A188F #8F8518 #228F18
monochromatic
#140626 #2F0F5B #4A188F #6521C3 #8442DF
Accessibility & contrast
On white
11.55
#4A188F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#4A188F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A188F
11.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A188F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A188F | 1.00 | 11.55 | 1.82 | 11.55 |
| #FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#353B55
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #4a188f; /* rgb */ color: rgb(74, 24, 143); /* oklch */ color: oklch(36.7% 0.176 294.9);
Tailwind
colors: {
custom: {
50: '#845db1',
500: '#4a188f',
950: '#000000',
},
}SCSS
$custom: #4a188f; $custom-light: #845db1; $custom-dark: #000000;
JSON
{
"hex": "#4a188f",
"rgb": {
"r": 74,
"g": 24,
"b": 143
},
"hsl": {
"h": 265.21,
"s": 71.257,
"l": 32.745
},
"oklch": {
"l": 0.3666,
"c": 0.17623,
"h": 294.9
},
"luminance": 0.04092
}Semantic roles & 50–950 ramp
primary
#4A188F
secondary
#8BC043
accent
#EE3AA2
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980