#391248#391248

#391248 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.3% C 0.101 H 315.1°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#391248
RGBrgb(57, 18, 72)
HSLhsl(283, 60%, 18%)
HSVhsv(283, 75%, 28%)
CMYKcmyk(20.8%, 75%, 0%, 71.8%)
CIE-LABlab(14.23, 28.97, -25.27)
CIE-LCHlch(14.23, 38.44, 318.91°)
OKLaboklab(27.33% 0.0713 -0.0711)
OKLCHoklch(27.33% 0.101 315.1)
XYZxyz(3.0732, 1.7705, 6.3095)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391248 #214812
analogous
#1E1248 #391248 #48123C
triadic
#391248 #483912 #124839
tetradic
#391248 #481E12 #214812 #123C48
square
#391248 #481E12 #214812 #123C48
split-complementary
#391248 #3C4812 #12481E
monochromatic
#130618 #130618 #391248 #601E79 #872AAA

Accessibility & contrast

On white

15.51
#391248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#391248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391248
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391248#FFFFFF#000000##FFFFFF
##3912481.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224A
Deuteranopia (green-blind)
#112547
Tritanopia (blue-blind)
#381D2B
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #391248;
/* rgb */ color: rgb(57, 18, 72);
/* oklch */ color: oklch(27.3% 0.101 315.1);
Tailwind
colors: {
  custom: {
    50: '#72537b',
    500: '#391248',
    950: '#000000',
  },
}
SCSS
$custom: #391248;
$custom-light: #72537b;
$custom-dark: #000000;
JSON
{
  "hex": "#391248",
  "rgb": {
    "r": 57,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 283.333,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27328,
    "c": 0.10066,
    "h": 315.1
  },
  "luminance": 0.0177
}

Semantic roles & 50–950 ramp

primary
#391248
secondary
#4A8135
accent
#E34571
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#080309
muted
#7B787B

Preview Lab

Preview with #391248

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

Preview Lab → · Contrast checker → · Palette generator →

#391248 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva