#391F86#391F86

#391F86 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.159 H 286.3°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#391F86
RGBrgb(57, 31, 134)
HSLhsl(255, 62%, 32%)
HSVhsv(255, 77%, 53%)
CMYKcmyk(57.5%, 76.9%, 0%, 47.5%)
CIE-LABlab(22.20, 39.60, -53.07)
CIE-LCHlch(22.20, 66.22, 306.73°)
OKLaboklab(34.69% 0.0447 -0.1528)
OKLCHoklch(34.69% 0.159 286.3)
XYZxyz(6.4791, 3.5707, 22.8974)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F86 #6C861F
analogous
#1F3886 #391F86 #6D1F86
triadic
#391F86 #86391F #1F8639
tetradic
#391F86 #861F38 #6C861F #1F866D
square
#391F86 #861F38 #6C861F #1F866D
split-complementary
#391F86 #866D1F #38861F
monochromatic
#0F0823 #241454 #391F86 #4E2AB8 #6D4AD5

Accessibility & contrast

On white

12.25
#391F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391F86
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F86#FFFFFF#000000##FFFFFF
##391F861.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#153C51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #391f86;
/* rgb */ color: rgb(57, 31, 134);
/* oklch */ color: oklch(34.7% 0.159 286.3);
Tailwind
colors: {
  custom: {
    50: '#795eaa',
    500: '#391f86',
    950: '#000000',
  },
}
SCSS
$custom: #391f86;
$custom-light: #795eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#391f86",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 255.146,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34692,
    "c": 0.15916,
    "h": 286.3
  },
  "luminance": 0.03571
}

Semantic roles & 50–950 ramp

primary
#391F86
secondary
#9CB849
accent
#E542BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391F86

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

Preview Lab → · Contrast checker → · Palette generator →

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