#48237B#48237B

#48237B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.141 H 298.2°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#48237B
RGBrgb(72, 35, 123)
HSLhsl(265, 56%, 31%)
HSVhsv(265, 72%, 48%)
CMYKcmyk(41.5%, 71.5%, 0%, 51.8%)
CIE-LABlab(23.70, 36.92, -43.60)
CIE-LCHlch(23.70, 57.13, 310.26°)
OKLaboklab(35.85% 0.0666 -0.1244)
OKLCHoklch(35.85% 0.141 298.2)
XYZxyz(6.8478, 4.0097, 19.1482)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48237B #567B23
analogous
#232A7B #48237B #74237B
triadic
#48237B #7B4823 #237B48
tetradic
#48237B #7B232A #567B23 #237B74
square
#48237B #7B232A #567B23 #237B74
split-complementary
#48237B #7B7423 #2A7B23
monochromatic
#10081C #2C154B #48237B #6431AB #824CCC

Accessibility & contrast

On white

11.65
#48237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#48237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48237B
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48237B#FFFFFF#000000##FFFFFF
##48237B1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#3C384C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #48237b;
/* rgb */ color: rgb(72, 35, 123);
/* oklch */ color: oklch(35.9% 0.141 298.2);
Tailwind
colors: {
  custom: {
    50: '#8061a2',
    500: '#48237b',
    950: '#000000',
  },
}
SCSS
$custom: #48237b;
$custom-light: #8061a2;
$custom-dark: #000000;
JSON
{
  "hex": "#48237b",
  "rgb": {
    "r": 72,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 265.227,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35854,
    "c": 0.14115,
    "h": 298.2
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#48237B
secondary
#85AE4C
accent
#DF49A0
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #48237B

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

Preview Lab → · Contrast checker → · Palette generator →

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