#4A309C#4A309C
#4A309C is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.166 H 287.8°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).
Color values
| HEX | #4A309C |
|---|---|
| RGB | rgb(74, 48, 156) |
| HSL | hsl(254, 53%, 40%) |
| HSV | hsv(254, 69%, 61%) |
| CMYK | cmyk(52.6%, 69.2%, 0%, 38.8%) |
| CIE-LAB | lab(29.34, 39.68, -54.91) |
| CIE-LCH | lch(29.34, 67.75, 305.85°) |
| OKLab | oklab(40.81% 0.0505 -0.1577) |
| OKLCH | oklch(40.81% 0.166 287.8) |
| XYZ | xyz(9.8800, 5.9696, 32.0777) |
| Luminance | 0.0597 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.17
Blueberry
#464196
ΔE00 5.41
Rebeccapurple
#663399
ΔE00 5.49
Indigo Blue
#3A18B1
ΔE00 5.72
Ocean Blue
#4F42B5
ΔE00 5.89
Sapphire (survey)
#2138AB
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A309C #829C30
analogous
#304C9C #4A309C #80309C
triadic
#4A309C #9C4A30 #309C4A
tetradic
#4A309C #9C304C #829C30 #309C80
square
#4A309C #9C304C #829C30 #309C80
split-complementary
#4A309C #9C8030 #4C9C30
monochromatic
#1E133E #34226D #4A309C #6344C5 #8A73D4
Accessibility & contrast
On white
9.57
#4A309C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#4A309C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A309C
9.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A309C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A309C | 1.00 | 9.57 | 2.19 | 9.57 |
| #FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#2B4B62
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #4a309c; /* rgb */ color: rgb(74, 48, 156); /* oklch */ color: oklch(40.8% 0.166 287.8);
Tailwind
colors: {
custom: {
50: '#856aba',
500: '#4a309c',
950: '#000000',
},
}SCSS
$custom: #4a309c; $custom-light: #856aba; $custom-dark: #000000;
JSON
{
"hex": "#4a309c",
"rgb": {
"r": 74,
"g": 48,
"b": 156
},
"hsl": {
"h": 254.444,
"s": 52.941,
"l": 40
},
"oklch": {
"l": 0.40805,
"c": 0.16555,
"h": 287.8
},
"luminance": 0.0597
}Semantic roles & 50–950 ramp
primary
#4A309C
secondary
#A8BC6C
accent
#DC4BB9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81