#4C239F#4C239F
#4C239F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.184 H 290.4°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).
Color values
| HEX | #4C239F |
|---|---|
| RGB | rgb(76, 35, 159) |
| HSL | hsl(260, 64%, 38%) |
| HSV | hsv(260, 78%, 62%) |
| CMYK | cmyk(52.2%, 78%, 0%, 37.6%) |
| CIE-LAB | lab(27.41, 47.64, -59.88) |
| CIE-LCH | lch(27.41, 76.52, 308.50°) |
| OKLab | oklab(39.58% 0.0641 -0.1721) |
| OKLCH | oklch(39.58% 0.184 290.4) |
| XYZ | xyz(9.8377, 5.2413, 33.2875) |
| Luminance | 0.0524 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.76
Violet Blue
#510AC9
ΔE00 5.80
Rebeccapurple
#663399
ΔE00 6.07
Indigo
#4B0082
ΔE00 6.49
Ultramarine
#2000B1
ΔE00 6.53
Indigo (survey)
#380282
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C239F #769F23
analogous
#23389F #4C239F #8A239F
triadic
#4C239F #9F4C23 #239F4C
tetradic
#4C239F #9F2338 #769F23 #239F8A
square
#4C239F #9F2338 #769F23 #239F8A
split-complementary
#4C239F #9F8A23 #389F23
monochromatic
#1C0D3B #34186D #4C239F #642ED1 #8960DC
Accessibility & contrast
On white
10.25
#4C239F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#4C239F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C239F
10.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C239F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C239F | 1.00 | 10.25 | 2.05 | 10.25 |
| #FFFFFF | 10.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#2E4660
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #4c239f; /* rgb */ color: rgb(76, 35, 159); /* oklch */ color: oklch(39.6% 0.184 290.4);
Tailwind
colors: {
custom: {
50: '#8763bc',
500: '#4c239f',
950: '#000000',
},
}SCSS
$custom: #4c239f; $custom-light: #8763bc; $custom-dark: #000000;
JSON
{
"hex": "#4c239f",
"rgb": {
"r": 76,
"g": 35,
"b": 159
},
"hsl": {
"h": 259.839,
"s": 63.918,
"l": 38.039
},
"oklch": {
"l": 0.39576,
"c": 0.18365,
"h": 290.4
},
"luminance": 0.05242
}Semantic roles & 50–950 ramp
primary
#4C239F
secondary
#A0C15D
accent
#E741B0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81