#4C339B#4C339B
#4C339B is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.4% C 0.160 H 288.4°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).
Color values
| HEX | #4C339B |
|---|---|
| RGB | rgb(76, 51, 155) |
| HSL | hsl(254, 50%, 40%) |
| HSV | hsv(254, 67%, 61%) |
| CMYK | cmyk(51%, 67.1%, 0%, 39.2%) |
| CIE-LAB | lab(30.08, 38.02, -53.08) |
| CIE-LCH | lch(30.08, 65.29, 305.62°) |
| OKLab | oklab(41.37% 0.0506 -0.1522) |
| OKLCH | oklch(41.37% 0.16 288.4) |
| XYZ | xyz(10.0790, 6.2703, 31.6832) |
| Luminance | 0.0627 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.51
Blueberry
#464196
ΔE00 4.75
Rebeccapurple
#663399
ΔE00 5.15
Ocean Blue
#4F42B5
ΔE00 5.47
Sapphire (survey)
#2138AB
ΔE00 6.48
Indigo Blue
#3A18B1
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C339B #829B33
analogous
#334E9B #4C339B #80339B
triadic
#4C339B #9B4C33 #339B4C
tetradic
#4C339B #9B334E #829B33 #339B80
square
#4C339B #9B334E #829B33 #339B80
split-complementary
#4C339B #9B8033 #4E9B33
monochromatic
#1F153F #35246D #4C339B #6648C3 #8C76D2
Accessibility & contrast
On white
9.32
#4C339B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#4C339B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C339B
9.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C339B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C339B | 1.00 | 9.32 | 2.25 | 9.32 |
| #FFFFFF | 9.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#304D62
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #4c339b; /* rgb */ color: rgb(76, 51, 155); /* oklch */ color: oklch(41.4% 0.160 288.4);
Tailwind
colors: {
custom: {
50: '#856cb9',
500: '#4c339b',
950: '#000000',
},
}SCSS
$custom: #4c339b; $custom-light: #856cb9; $custom-dark: #000000;
JSON
{
"hex": "#4c339b",
"rgb": {
"r": 76,
"g": 51,
"b": 155
},
"hsl": {
"h": 254.423,
"s": 50.485,
"l": 40.392
},
"oklch": {
"l": 0.41365,
"c": 0.16038,
"h": 288.4
},
"luminance": 0.06271
}Semantic roles & 50–950 ramp
primary
#4C339B
secondary
#A8BA6F
accent
#DA4EB8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81