#391D87#391D87

#391D87 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.162 H 286.4°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#391D87
RGBrgb(57, 29, 135)
HSLhsl(256, 65%, 32%)
HSVhsv(256, 79%, 53%)
CMYKcmyk(57.8%, 78.5%, 0%, 47.1%)
CIE-LABlab(21.94, 40.94, -54.13)
CIE-LCHlch(21.94, 67.87, 307.10°)
OKLaboklab(34.54% 0.0459 -0.1558)
OKLCHoklch(34.54% 0.162 286.4)
XYZxyz(6.4986, 3.4975, 23.2496)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391D87 #6B871D
analogous
#1D3687 #391D87 #6E1D87
triadic
#391D87 #87391D #1D8739
tetradic
#391D87 #871D36 #6B871D #1D876E
square
#391D87 #871D36 #6B871D #1D876E
split-complementary
#391D87 #876E1D #36871D
monochromatic
#0E0722 #241255 #391D87 #4E28B9 #6D47D7

Accessibility & contrast

On white

12.36
#391D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#391D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391D87
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391D87#FFFFFF#000000##FFFFFF
##391D871.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#143B51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #391d87;
/* rgb */ color: rgb(57, 29, 135);
/* oklch */ color: oklch(34.5% 0.162 286.4);
Tailwind
colors: {
  custom: {
    50: '#795dab',
    500: '#391d87',
    950: '#000000',
  },
}
SCSS
$custom: #391d87;
$custom-light: #795dab;
$custom-dark: #000000;
JSON
{
  "hex": "#391d87",
  "rgb": {
    "r": 57,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 255.849,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34538,
    "c": 0.16247,
    "h": 286.4
  },
  "luminance": 0.03498
}

Semantic roles & 50–950 ramp

primary
#391D87
secondary
#9BB946
accent
#E840BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391D87

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

Preview Lab → · Contrast checker → · Palette generator →

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