#4A1F9E#4A1F9E
#4A1F9E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.186 H 290.2°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).
Color values
| HEX | #4A1F9E |
|---|---|
| RGB | rgb(74, 31, 158) |
| HSL | hsl(260, 67%, 37%) |
| HSV | hsv(260, 80%, 62%) |
| CMYK | cmyk(53.2%, 80.4%, 0%, 38%) |
| CIE-LAB | lab(26.46, 48.89, -60.85) |
| CIE-LCH | lch(26.46, 78.06, 308.78°) |
| OKLab | oklab(38.83% 0.0643 -0.1749) |
| OKLCH | oklch(38.83% 0.186 290.2) |
| XYZ | xyz(9.4838, 4.9040, 32.7880) |
| Luminance | 0.0490 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.42
Violet Blue
#510AC9
ΔE00 5.77
Indigo
#4B0082
ΔE00 5.90
Ultramarine
#2000B1
ΔE00 5.92
Indigo (survey)
#380282
ΔE00 6.25
Cobalt Blue
#030AA7
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A1F9E #739E1F
analogous
#1F349E #4A1F9E #8A1F9E
triadic
#4A1F9E #9E4A1F #1F9E4A
tetradic
#4A1F9E #9E1F34 #739E1F #1F9E8A
square
#4A1F9E #9E1F34 #739E1F #1F9E8A
split-complementary
#4A1F9E #9E8A1F #349E1F
monochromatic
#1A0B38 #32156B #4A1F9E #6229D1 #8659DE
Accessibility & contrast
On white
10.60
#4A1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#4A1F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A1F9E
10.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A1F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A1F9E | 1.00 | 10.60 | 1.98 | 10.60 |
| #FFFFFF | 10.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#2B445F
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #4a1f9e; /* rgb */ color: rgb(74, 31, 158); /* oklch */ color: oklch(38.8% 0.186 290.2);
Tailwind
colors: {
custom: {
50: '#8661bc',
500: '#4a1f9e',
950: '#000000',
},
}SCSS
$custom: #4a1f9e; $custom-light: #8661bc; $custom-dark: #000000;
JSON
{
"hex": "#4a1f9e",
"rgb": {
"r": 74,
"g": 31,
"b": 158
},
"hsl": {
"h": 260.315,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.38831,
"c": 0.18637,
"h": 290.2
},
"luminance": 0.04904
}Semantic roles & 50–950 ramp
primary
#4A1F9E
secondary
#9EC256
accent
#EA3EB0
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981