#4D237F#4D237F
#4D237F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.147 H 300.1°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).
Color values
| HEX | #4D237F |
|---|---|
| RGB | rgb(77, 35, 127) |
| HSL | hsl(267, 57%, 32%) |
| HSV | hsv(267, 72%, 50%) |
| CMYK | cmyk(39.4%, 72.4%, 0%, 50.2%) |
| CIE-LAB | lab(24.68, 39.04, -44.52) |
| CIE-LCH | lch(24.68, 59.21, 311.25°) |
| OKLab | oklab(36.8% 0.0735 -0.127) |
| OKLCH | oklch(36.8% 0.147 300.1) |
| XYZ | xyz(7.4914, 4.3121, 20.5122) |
| Luminance | 0.0431 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.00
Royal Purple (survey)
#4B006E
ΔE00 5.80
Indigo (survey)
#380282
ΔE00 6.35
Rebeccapurple
#663399
ΔE00 6.41
Darkslateblue
#483D8B
ΔE00 7.65
Midnight Blue
#191970
ΔE00 8.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D237F #557F23
analogous
#23277F #4D237F #7B237F
triadic
#4D237F #7F4D23 #237F4D
tetradic
#4D237F #7F2327 #557F23 #237F7B
square
#4D237F #7F2327 #557F23 #237F7B
split-complementary
#4D237F #7F7B23 #277F23
monochromatic
#13091F #30164F #4D237F #6A30AF #894ECE
Accessibility & contrast
On white
11.28
#4D237F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#4D237F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D237F
11.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D237F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D237F | 1.00 | 11.28 | 1.86 | 11.28 |
| #FFFFFF | 11.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#42394E
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #4d237f; /* rgb */ color: rgb(77, 35, 127); /* oklch */ color: oklch(36.8% 0.147 300.1);
Tailwind
colors: {
custom: {
50: '#8462a5',
500: '#4d237f',
950: '#000000',
},
}SCSS
$custom: #4d237f; $custom-light: #8462a5; $custom-dark: #000000;
JSON
{
"hex": "#4d237f",
"rgb": {
"r": 77,
"g": 35,
"b": 127
},
"hsl": {
"h": 267.391,
"s": 56.79,
"l": 31.765
},
"oklch": {
"l": 0.36796,
"c": 0.1467,
"h": 300.1
},
"luminance": 0.04312
}Semantic roles & 50–950 ramp
primary
#4D237F
secondary
#83B14C
accent
#E0489B
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F