#4B238E#4B238E
#4B238E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.164 H 294.2°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).
Color values
| HEX | #4B238E |
|---|---|
| RGB | rgb(75, 35, 142) |
| HSL | hsl(262, 60%, 35%) |
| HSV | hsv(262, 75%, 56%) |
| CMYK | cmyk(47.2%, 75.4%, 0%, 44.3%) |
| CIE-LAB | lab(25.72, 42.76, -52.22) |
| CIE-LCH | lch(25.72, 67.50, 309.31°) |
| OKLab | oklab(37.88% 0.0672 -0.1497) |
| OKLCH | oklch(37.88% 0.164 294.2) |
| XYZ | xyz(8.3838, 4.6507, 26.0419) |
| Luminance | 0.0465 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.13
Indigo Blue
#3A18B1
ΔE00 5.87
Indigo (survey)
#380282
ΔE00 5.89
Rebeccapurple
#663399
ΔE00 5.98
Royal
#0C1793
ΔE00 7.28
Darkslateblue
#483D8B
ΔE00 7.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4B238E #668E23
analogous
#23308E #4B238E #81238E
triadic
#4B238E #8E4B23 #238E4B
tetradic
#4B238E #8E2330 #668E23 #238E81
square
#4B238E #8E2330 #668E23 #238E81
split-complementary
#4B238E #8E8123 #308E23
monochromatic
#170B2C #31175D #4B238E #652FBF #8656D5
Accessibility & contrast
On white
10.88
#4B238E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#4B238E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4B238E
10.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4B238E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4B238E | 1.00 | 10.88 | 1.93 | 10.88 |
| #FFFFFF | 10.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#373F56
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #4b238e; /* rgb */ color: rgb(75, 35, 142); /* oklch */ color: oklch(37.9% 0.164 294.2);
Tailwind
colors: {
custom: {
50: '#8462b0',
500: '#4b238e',
950: '#000000',
},
}SCSS
$custom: #4b238e; $custom-light: #8462b0; $custom-dark: #000000;
JSON
{
"hex": "#4b238e",
"rgb": {
"r": 75,
"g": 35,
"b": 142
},
"hsl": {
"h": 262.43,
"s": 60.452,
"l": 34.706
},
"oklch": {
"l": 0.37875,
"c": 0.16407,
"h": 294.2
},
"luminance": 0.04651
}Semantic roles & 50–950 ramp
primary
#4B238E
secondary
#93B953
accent
#E444A8
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80