#391D7F#391D7F

#391D7F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.153 H 288.4°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#391D7F
RGBrgb(57, 29, 127)
HSLhsl(257, 63%, 31%)
HSVhsv(257, 77%, 50%)
CMYKcmyk(55.1%, 77.2%, 0%, 50.2%)
CIE-LABlab(21.13, 38.54, -50.41)
CIE-LCHlch(21.13, 63.45, 307.40°)
OKLaboklab(33.73% 0.0482 -0.1449)
OKLCHoklch(33.73% 0.153 288.4)
XYZxyz(5.9563, 3.2806, 20.3939)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391D7F #637F1D
analogous
#1D327F #391D7F #6A1D7F
triadic
#391D7F #7F391D #1D7F39
tetradic
#391D7F #7F1D32 #637F1D #1D7F6A
square
#391D7F #7F1D32 #637F1D #1D7F6A
split-complementary
#391D7F #7F6A1D #327F1D
monochromatic
#0C061B #23124D #391D7F #4F28B1 #6C42D4

Accessibility & contrast

On white

12.68
#391D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#391D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391D7F
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391D7F#FFFFFF#000000##FFFFFF
##391D7F1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#1D384C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #391d7f;
/* rgb */ color: rgb(57, 29, 127);
/* oklch */ color: oklch(33.7% 0.153 288.4);
Tailwind
colors: {
  custom: {
    50: '#785ca5',
    500: '#391d7f',
    950: '#000000',
  },
}
SCSS
$custom: #391d7f;
$custom-light: #785ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#391d7f",
  "rgb": {
    "r": 57,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 257.143,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33733,
    "c": 0.15273,
    "h": 288.4
  },
  "luminance": 0.03281
}

Semantic roles & 50–950 ramp

primary
#391D7F
secondary
#93B245
accent
#E642B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #391D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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