#391B86#391B86

#391B86 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.163 H 287.0°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#391B86
RGBrgb(57, 27, 134)
HSLhsl(257, 66%, 32%)
HSVhsv(257, 80%, 53%)
CMYKcmyk(57.5%, 79.9%, 0%, 47.5%)
CIE-LABlab(21.49, 41.64, -54.25)
CIE-LCHlch(21.49, 68.39, 307.51°)
OKLaboklab(34.19% 0.0477 -0.1562)
OKLCHoklch(34.19% 0.163 287)
XYZxyz(6.3811, 3.3746, 22.8648)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B86 #68861B
analogous
#1B3386 #391B86 #6F1B86
triadic
#391B86 #86391B #1B8639
tetradic
#391B86 #861B33 #68861B #1B866F
square
#391B86 #861B33 #68861B #1B866F
split-complementary
#391B86 #866F1B #33861B
monochromatic
#0E0620 #231153 #391B86 #4F25B9 #6D42D9

Accessibility & contrast

On white

12.54
#391B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#391B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B86
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B86#FFFFFF#000000##FFFFFF
##391B861.0012.541.6812.54
#FFFFFF12.541.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #391b86;
/* rgb */ color: rgb(57, 27, 134);
/* oklch */ color: oklch(34.2% 0.163 287.0);
Tailwind
colors: {
  custom: {
    50: '#795caa',
    500: '#391b86',
    950: '#000000',
  },
}
SCSS
$custom: #391b86;
$custom-light: #795caa;
$custom-dark: #000000;
JSON
{
  "hex": "#391b86",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 256.822,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34193,
    "c": 0.16328,
    "h": 287
  },
  "luminance": 0.03375
}

Semantic roles & 50–950 ramp

primary
#391B86
secondary
#98B944
accent
#E93EB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391B86

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

Preview Lab → · Contrast checker → · Palette generator →

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