#391D86#391D86

#391D86 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.161 H 286.7°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#391D86
RGBrgb(57, 29, 134)
HSLhsl(256, 64%, 32%)
HSVhsv(256, 78%, 53%)
CMYKcmyk(57.5%, 78.4%, 0%, 47.5%)
CIE-LABlab(21.83, 40.64, -53.67)
CIE-LCHlch(21.83, 67.32, 307.13°)
OKLaboklab(34.44% 0.0462 -0.1545)
OKLCHoklch(34.44% 0.161 286.7)
XYZxyz(6.4285, 3.4695, 22.8806)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391D86 #6A861D
analogous
#1D3686 #391D86 #6E1D86
triadic
#391D86 #86391D #1D8639
tetradic
#391D86 #861D36 #6A861D #1D866E
square
#391D86 #861D36 #6A861D #1D866E
split-complementary
#391D86 #866E1D #36861D
monochromatic
#0E0721 #241254 #391D86 #4E28B8 #6D46D7

Accessibility & contrast

On white

12.40
#391D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#391D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391D86
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391D86#FFFFFF#000000##FFFFFF
##391D861.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#163B50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #391d86;
/* rgb */ color: rgb(57, 29, 134);
/* oklch */ color: oklch(34.4% 0.161 286.7);
Tailwind
colors: {
  custom: {
    50: '#795daa',
    500: '#391d86',
    950: '#000000',
  },
}
SCSS
$custom: #391d86;
$custom-light: #795daa;
$custom-dark: #000000;
JSON
{
  "hex": "#391d86",
  "rgb": {
    "r": 57,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 256,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34436,
    "c": 0.16126,
    "h": 286.7
  },
  "luminance": 0.0347
}

Semantic roles & 50–950 ramp

primary
#391D86
secondary
#9AB946
accent
#E740BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391D86

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

Preview Lab → · Contrast checker → · Palette generator →

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