#4A1F9C#4A1F9C
#4A1F9C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.184 H 290.6°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).
Color values
| HEX | #4A1F9C |
|---|---|
| RGB | rgb(74, 31, 156) |
| HSL | hsl(261, 67%, 37%) |
| HSV | hsv(261, 80%, 61%) |
| CMYK | cmyk(52.6%, 80.1%, 0%, 38.8%) |
| CIE-LAB | lab(26.26, 48.35, -59.95) |
| CIE-LCH | lch(26.26, 77.02, 308.88°) |
| OKLab | oklab(38.63% 0.0649 -0.1723) |
| OKLCH | oklch(38.63% 0.184 290.6) |
| XYZ | xyz(9.3131, 4.8357, 31.8887) |
| Luminance | 0.0484 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.66
Indigo
#4B0082
ΔE00 5.69
Violet Blue
#510AC9
ΔE00 6.05
Ultramarine
#2000B1
ΔE00 6.06
Indigo (survey)
#380282
ΔE00 6.06
Cobalt Blue
#030AA7
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A1F9C #719C1F
analogous
#1F339C #4A1F9C #891F9C
triadic
#4A1F9C #9C4A1F #1F9C4A
tetradic
#4A1F9C #9C1F33 #719C1F #1F9C89
square
#4A1F9C #9C1F33 #719C1F #1F9C89
split-complementary
#4A1F9C #9C891F #339C1F
monochromatic
#1A0B36 #321569 #4A1F9C #6229CF #8658DE
Accessibility & contrast
On white
10.68
#4A1F9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#4A1F9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A1F9C
10.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A1F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A1F9C | 1.00 | 10.68 | 1.97 | 10.68 |
| #FFFFFF | 10.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#2C435E
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #4a1f9c; /* rgb */ color: rgb(74, 31, 156); /* oklch */ color: oklch(38.6% 0.184 290.6);
Tailwind
colors: {
custom: {
50: '#8661ba',
500: '#4a1f9c',
950: '#000000',
},
}SCSS
$custom: #4a1f9c; $custom-light: #8661ba; $custom-dark: #000000;
JSON
{
"hex": "#4a1f9c",
"rgb": {
"r": 74,
"g": 31,
"b": 156
},
"hsl": {
"h": 260.64,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.38634,
"c": 0.18414,
"h": 290.6
},
"luminance": 0.04836
}Semantic roles & 50–950 ramp
primary
#4A1F9C
secondary
#9CC155
accent
#EA3EAF
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981