#4C237D#4C237D
#4C237D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.144 H 300.1°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).
Color values
| HEX | #4C237D |
|---|---|
| RGB | rgb(76, 35, 125) |
| HSL | hsl(267, 56%, 31%) |
| HSV | hsv(267, 72%, 49%) |
| CMYK | cmyk(39.2%, 72%, 0%, 51%) |
| CIE-LAB | lab(24.38, 38.30, -43.74) |
| CIE-LCH | lch(24.38, 58.14, 311.21°) |
| OKLab | oklab(36.51% 0.0723 -0.1247) |
| OKLCH | oklch(36.51% 0.144 300.1) |
| XYZ | xyz(7.2823, 4.2192, 19.8288) |
| Luminance | 0.0422 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.10
Royal Purple (survey)
#4B006E
ΔE00 5.71
Indigo (survey)
#380282
ΔE00 6.39
Rebeccapurple
#663399
ΔE00 6.67
Darkslateblue
#483D8B
ΔE00 7.69
Midnight Blue
#191970
ΔE00 8.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C237D #547D23
analogous
#23277D #4C237D #79237D
triadic
#4C237D #7D4C23 #237D4C
tetradic
#4C237D #7D2327 #547D23 #237D79
square
#4C237D #7D2327 #547D23 #237D79
split-complementary
#4C237D #7D7923 #277D23
monochromatic
#12081D #2F164D #4C237D #6930AD #884DCD
Accessibility & contrast
On white
11.39
#4C237D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#4C237D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C237D
11.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C237D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C237D | 1.00 | 11.39 | 1.84 | 11.39 |
| #FFFFFF | 11.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#41394D
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #4c237d; /* rgb */ color: rgb(76, 35, 125); /* oklch */ color: oklch(36.5% 0.144 300.1);
Tailwind
colors: {
custom: {
50: '#8361a3',
500: '#4c237d',
950: '#000000',
},
}SCSS
$custom: #4c237d; $custom-light: #8361a3; $custom-dark: #000000;
JSON
{
"hex": "#4c237d",
"rgb": {
"r": 76,
"g": 35,
"b": 125
},
"hsl": {
"h": 267.333,
"s": 56.25,
"l": 31.373
},
"oklch": {
"l": 0.36506,
"c": 0.14416,
"h": 300.1
},
"luminance": 0.04219
}Semantic roles & 50–950 ramp
primary
#4C237D
secondary
#82AF4C
accent
#E0489B
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F