#391C8B#391C8B

#391C8B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.168 H 285.7°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#391C8B
RGBrgb(57, 28, 139)
HSLhsl(256, 66%, 33%)
HSVhsv(256, 80%, 55%)
CMYKcmyk(59%, 79.9%, 0%, 45.5%)
CIE-LABlab(22.17, 42.63, -56.25)
CIE-LCHlch(22.17, 70.58, 307.16°)
OKLaboklab(34.83% 0.0454 -0.162)
OKLCHoklch(34.83% 0.168 285.7)
XYZxyz(6.7614, 3.5640, 24.7527)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391C8B #6E8B1C
analogous
#1C368B #391C8B #711C8B
triadic
#391C8B #8B391C #1C8B39
tetradic
#391C8B #8B1C36 #6E8B1C #1C8B71
square
#391C8B #8B1C36 #6E8B1C #1C8B71
split-complementary
#391C8B #8B711C #368B1C
monochromatic
#0F0725 #241258 #391C8B #4E26BE #6E47DA

Accessibility & contrast

On white

12.26
#391C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#391C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391C8B
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391C8B#FFFFFF#000000##FFFFFF
##391C8B1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#0E3C53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #391c8b;
/* rgb */ color: rgb(57, 28, 139);
/* oklch */ color: oklch(34.8% 0.168 285.7);
Tailwind
colors: {
  custom: {
    50: '#7a5cae',
    500: '#391c8b',
    950: '#000000',
  },
}
SCSS
$custom: #391c8b;
$custom-light: #7a5cae;
$custom-dark: #000000;
JSON
{
  "hex": "#391c8b",
  "rgb": {
    "r": 57,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 255.676,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34829,
    "c": 0.16826,
    "h": 285.7
  },
  "luminance": 0.03564
}

Semantic roles & 50–950 ramp

primary
#391C8B
secondary
#9DBC47
accent
#E93EBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391C8B

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

Preview Lab → · Contrast checker → · Palette generator →

#391C8B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva