#391C8D#391C8D

#391C8D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.171 H 285.2°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#391C8D
RGBrgb(57, 28, 141)
HSLhsl(255, 67%, 33%)
HSVhsv(255, 80%, 55%)
CMYKcmyk(59.6%, 80.1%, 0%, 44.7%)
CIE-LABlab(22.38, 43.22, -57.15)
CIE-LCHlch(22.38, 71.65, 307.10°)
OKLaboklab(35.04% 0.0448 -0.1646)
OKLCHoklch(35.04% 0.171 285.2)
XYZxyz(6.9089, 3.6230, 25.5294)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391C8D #708D1C
analogous
#1C378D #391C8D #711C8D
triadic
#391C8D #8D391C #1C8D39
tetradic
#391C8D #8D1C37 #708D1C #1C8D71
square
#391C8D #8D1C37 #708D1C #1C8D71
split-complementary
#391C8D #8D711C #378D1C
monochromatic
#100827 #24125A #391C8D #4E26C0 #6E49DB

Accessibility & contrast

On white

12.18
#391C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#391C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391C8D
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391C8D#FFFFFF#000000##FFFFFF
##391C8D1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#093D54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #391c8d;
/* rgb */ color: rgb(57, 28, 141);
/* oklch */ color: oklch(35.0% 0.171 285.2);
Tailwind
colors: {
  custom: {
    50: '#7a5daf',
    500: '#391c8d',
    950: '#000000',
  },
}
SCSS
$custom: #391c8d;
$custom-light: #7a5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#391c8d",
  "rgb": {
    "r": 57,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 255.398,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35038,
    "c": 0.17063,
    "h": 285.2
  },
  "luminance": 0.03623
}

Semantic roles & 50–950 ramp

primary
#391C8D
secondary
#9FBD48
accent
#EA3EBE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #391C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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