#48238B#48238B

#48238B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.160 H 293.2°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#48238B
RGBrgb(72, 35, 139)
HSLhsl(261, 60%, 34%)
HSVhsv(261, 75%, 55%)
CMYKcmyk(48.2%, 74.8%, 0%, 45.5%)
CIE-LABlab(25.09, 41.41, -51.40)
CIE-LCHlch(25.09, 66.00, 308.85°)
OKLaboklab(37.27% 0.0633 -0.1474)
OKLCHoklch(37.27% 0.16 293.2)
XYZxyz(7.9324, 4.4436, 24.8608)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48238B #668B23
analogous
#23328B #48238B #7C238B
triadic
#48238B #8B4823 #238B48
tetradic
#48238B #8B2332 #668B23 #238B7C
square
#48238B #8B2332 #668B23 #238B7C
split-complementary
#48238B #8B7C23 #328B23
monochromatic
#150A29 #2F175A #48238B #612FBC #8254D4

Accessibility & contrast

On white

11.12
#48238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#48238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48238B
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48238B#FFFFFF#000000##FFFFFF
##48238B1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#343E55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #48238b;
/* rgb */ color: rgb(72, 35, 139);
/* oklch */ color: oklch(37.3% 0.160 293.2);
Tailwind
colors: {
  custom: {
    50: '#8262ae',
    500: '#48238b',
    950: '#000000',
  },
}
SCSS
$custom: #48238b;
$custom-light: #8262ae;
$custom-dark: #000000;
JSON
{
  "hex": "#48238b",
  "rgb": {
    "r": 72,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 261.346,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37267,
    "c": 0.16038,
    "h": 293.2
  },
  "luminance": 0.04444
}

Semantic roles & 50–950 ramp

primary
#48238B
secondary
#94B852
accent
#E345AB
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #48238B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#48238B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva