#48237F#48237F

#48237F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.146 H 296.8°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#48237F
RGBrgb(72, 35, 127)
HSLhsl(264, 57%, 32%)
HSVhsv(264, 72%, 50%)
CMYKcmyk(43.3%, 72.4%, 0%, 50.2%)
CIE-LABlab(24.04, 38.03, -45.59)
CIE-LCHlch(24.04, 59.37, 309.84°)
OKLaboklab(36.2% 0.0659 -0.1303)
OKLCHoklch(36.2% 0.146 296.8)
XYZxyz(7.1033, 4.1119, 20.4940)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48237F #5A7F23
analogous
#232C7F #48237F #76237F
triadic
#48237F #7F4823 #237F48
tetradic
#48237F #7F232C #5A7F23 #237F76
square
#48237F #7F232C #5A7F23 #237F76
split-complementary
#48237F #7F7623 #2C7F23
monochromatic
#12091F #2D164F #48237F #6330AF #824ECE

Accessibility & contrast

On white

11.52
#48237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#48237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48237F
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48237F#FFFFFF#000000##FFFFFF
##48237F1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#3A3A4E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #48237f;
/* rgb */ color: rgb(72, 35, 127);
/* oklch */ color: oklch(36.2% 0.146 296.8);
Tailwind
colors: {
  custom: {
    50: '#8061a5',
    500: '#48237f',
    950: '#000000',
  },
}
SCSS
$custom: #48237f;
$custom-light: #8061a5;
$custom-dark: #000000;
JSON
{
  "hex": "#48237f",
  "rgb": {
    "r": 72,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 264.13,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36197,
    "c": 0.146,
    "h": 296.8
  },
  "luminance": 0.04112
}

Semantic roles & 50–950 ramp

primary
#48237F
secondary
#89B14C
accent
#E048A3
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #48237F

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

Preview Lab → · Contrast checker → · Palette generator →

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