#4C237F#4C237F
#4C237F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.147 H 299.4°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).
Color values
| HEX | #4C237F |
|---|---|
| RGB | rgb(76, 35, 127) |
| HSL | hsl(267, 57%, 32%) |
| HSV | hsv(267, 72%, 50%) |
| CMYK | cmyk(40.2%, 72.4%, 0%, 50.2%) |
| CIE-LAB | lab(24.55, 38.84, -44.74) |
| CIE-LCH | lch(24.55, 59.24, 310.96°) |
| OKLab | oklab(36.67% 0.072 -0.1276) |
| OKLCH | oklch(36.67% 0.147 299.4) |
| XYZ | xyz(7.4113, 4.2708, 20.5084) |
| Luminance | 0.0427 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.00
Royal Purple (survey)
#4B006E
ΔE00 5.84
Indigo (survey)
#380282
ΔE00 6.25
Rebeccapurple
#663399
ΔE00 6.51
Darkslateblue
#483D8B
ΔE00 7.59
Midnight Blue
#191970
ΔE00 8.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C237F #567F23
analogous
#23287F #4C237F #7A237F
triadic
#4C237F #7F4C23 #237F4C
tetradic
#4C237F #7F2328 #567F23 #237F7A
square
#4C237F #7F2328 #567F23 #237F7A
split-complementary
#4C237F #7F7A23 #287F23
monochromatic
#13091F #2F164F #4C237F #6930AF #874ECE
Accessibility & contrast
On white
11.33
#4C237F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#4C237F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C237F
11.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C237F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C237F | 1.00 | 11.33 | 1.85 | 11.33 |
| #FFFFFF | 11.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#40394E
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #4c237f; /* rgb */ color: rgb(76, 35, 127); /* oklch */ color: oklch(36.7% 0.147 299.4);
Tailwind
colors: {
custom: {
50: '#8361a5',
500: '#4c237f',
950: '#000000',
},
}SCSS
$custom: #4c237f; $custom-light: #8361a5; $custom-dark: #000000;
JSON
{
"hex": "#4c237f",
"rgb": {
"r": 76,
"g": 35,
"b": 127
},
"hsl": {
"h": 266.739,
"s": 56.79,
"l": 31.765
},
"oklch": {
"l": 0.36674,
"c": 0.14654,
"h": 299.4
},
"luminance": 0.04271
}Semantic roles & 50–950 ramp
primary
#4C237F
secondary
#84B14C
accent
#E0489C
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F