#391E86#391E86

#391E86 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.160 H 286.5°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#391E86
RGBrgb(57, 30, 134)
HSLhsl(256, 63%, 32%)
HSVhsv(256, 78%, 53%)
CMYKcmyk(57.5%, 77.6%, 0%, 47.5%)
CIE-LABlab(22.01, 40.13, -53.38)
CIE-LCHlch(22.01, 66.78, 306.93°)
OKLaboklab(34.56% 0.0454 -0.1536)
OKLCHoklch(34.56% 0.16 286.5)
XYZxyz(6.4534, 3.5193, 22.8889)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391E86 #6B861E
analogous
#1E3786 #391E86 #6D1E86
triadic
#391E86 #86391E #1E8639
tetradic
#391E86 #861E37 #6B861E #1E866D
square
#391E86 #861E37 #6B861E #1E866D
split-complementary
#391E86 #866D1E #37861E
monochromatic
#0E0822 #241354 #391E86 #4E29B8 #6D48D6

Accessibility & contrast

On white

12.32
#391E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391E86
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391E86#FFFFFF#000000##FFFFFF
##391E861.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #391e86;
/* rgb */ color: rgb(57, 30, 134);
/* oklch */ color: oklch(34.6% 0.160 286.5);
Tailwind
colors: {
  custom: {
    50: '#795daa',
    500: '#391e86',
    950: '#000000',
  },
}
SCSS
$custom: #391e86;
$custom-light: #795daa;
$custom-dark: #000000;
JSON
{
  "hex": "#391e86",
  "rgb": {
    "r": 57,
    "g": 30,
    "b": 134
  },
  "hsl": {
    "h": 255.577,
    "s": 63.415,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34563,
    "c": 0.16023,
    "h": 286.5
  },
  "luminance": 0.0352
}

Semantic roles & 50–950 ramp

primary
#391E86
secondary
#9BB847
accent
#E641BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391E86

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

Preview Lab → · Contrast checker → · Palette generator →

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