#4C308F#4C308F
#4C308F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.149 H 291.8°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).
Color values
| HEX | #4C308F |
|---|---|
| RGB | rgb(76, 48, 143) |
| HSL | hsl(258, 50%, 37%) |
| HSV | hsv(258, 66%, 56%) |
| CMYK | cmyk(46.9%, 66.4%, 0%, 43.9%) |
| CIE-LAB | lab(28.47, 36.17, -48.35) |
| CIE-LCH | lch(28.47, 60.38, 306.80°) |
| OKLab | oklab(39.89% 0.0553 -0.1383) |
| OKLCH | oklch(39.89% 0.149 291.8) |
| XYZ | xyz(8.9940, 5.6333, 26.5947) |
| Luminance | 0.0563 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.33
Rebeccapurple
#663399
ΔE00 4.99
Blueberry
#464196
ΔE00 5.52
Indigo Blue
#3A18B1
ΔE00 7.31
Ocean Blue
#4F42B5
ΔE00 7.39
Sapphire (survey)
#2138AB
ΔE00 7.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C308F #738F30
analogous
#30448F #4C308F #7B308F
triadic
#4C308F #8F4C30 #308F4C
tetradic
#4C308F #8F3044 #738F30 #308F7B
square
#4C308F #8F3044 #738F30 #308F7B
split-complementary
#4C308F #8F7B30 #448F30
monochromatic
#1B1133 #342161 #4C308F #643FBD #896CCE
Accessibility & contrast
On white
9.87
#4C308F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#4C308F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C308F
9.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C308F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C308F | 1.00 | 9.87 | 2.13 | 9.87 |
| #FFFFFF | 9.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#38475B
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #4c308f; /* rgb */ color: rgb(76, 48, 143); /* oklch */ color: oklch(39.9% 0.149 291.8);
Tailwind
colors: {
custom: {
50: '#846ab1',
500: '#4c308f',
950: '#000000',
},
}SCSS
$custom: #4c308f; $custom-light: #846ab1; $custom-dark: #000000;
JSON
{
"hex": "#4c308f",
"rgb": {
"r": 76,
"g": 48,
"b": 143
},
"hsl": {
"h": 257.684,
"s": 49.738,
"l": 37.451
},
"oklch": {
"l": 0.39894,
"c": 0.14894,
"h": 291.8
},
"luminance": 0.05634
}Semantic roles & 50–950 ramp
primary
#4C308F
secondary
#9EB566
accent
#D94FB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0611
muted
#7C7A80