#48238C#48238C
#48238C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.162 H 293.0°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).
Color values
| HEX | #48238C |
|---|---|
| RGB | rgb(72, 35, 140) |
| HSL | hsl(261, 60%, 34%) |
| HSV | hsv(261, 75%, 55%) |
| CMYK | cmyk(48.6%, 75%, 0%, 45.1%) |
| CIE-LAB | lab(25.18, 41.69, -51.88) |
| CIE-LCH | lch(25.18, 66.55, 308.79°) |
| OKLab | oklab(37.36% 0.0631 -0.1488) |
| OKLCH | oklch(37.36% 0.162 293) |
| XYZ | xyz(8.0058, 4.4730, 25.2474) |
| Luminance | 0.0447 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.15
Indigo (survey)
#380282
ΔE00 5.65
Indigo Blue
#3A18B1
ΔE00 5.95
Rebeccapurple
#663399
ΔE00 6.44
Royal
#0C1793
ΔE00 6.90
Darkslateblue
#483D8B
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#48238C #678C23
analogous
#23338C #48238C #7D238C
triadic
#48238C #8C4823 #238C48
tetradic
#48238C #8C2333 #678C23 #238C7D
square
#48238C #8C2333 #678C23 #238C7D
split-complementary
#48238C #8C7D23 #338C23
monochromatic
#160B2A #2F175B #48238C #612FBD #8255D4
Accessibility & contrast
On white
11.08
#48238C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#48238C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #48238C
11.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##48238C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##48238C | 1.00 | 11.08 | 1.89 | 11.08 |
| #FFFFFF | 11.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#333F55
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #48238c; /* rgb */ color: rgb(72, 35, 140); /* oklch */ color: oklch(37.4% 0.162 293.0);
Tailwind
colors: {
custom: {
50: '#8262af',
500: '#48238c',
950: '#000000',
},
}SCSS
$custom: #48238c; $custom-light: #8262af; $custom-dark: #000000;
JSON
{
"hex": "#48238c",
"rgb": {
"r": 72,
"g": 35,
"b": 140
},
"hsl": {
"h": 261.143,
"s": 60,
"l": 34.314
},
"oklch": {
"l": 0.37358,
"c": 0.16157,
"h": 293
},
"luminance": 0.04473
}Semantic roles & 50–950 ramp
primary
#48238C
secondary
#94B852
accent
#E345AB
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F