#391786#391786

#391786 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.167 H 287.6°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#391786
RGBrgb(57, 23, 134)
HSLhsl(258, 71%, 31%)
HSVhsv(258, 83%, 53%)
CMYKcmyk(57.5%, 82.8%, 0%, 47.5%)
CIE-LABlab(20.84, 43.50, -55.31)
CIE-LCHlch(20.84, 70.37, 308.19°)
OKLaboklab(33.75% 0.0505 -0.1592)
OKLCHoklch(33.75% 0.167 287.6)
XYZxyz(6.2955, 3.2035, 22.8362)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391786 #648617
analogous
#172D86 #391786 #701786
triadic
#391786 #863917 #178639
tetradic
#391786 #86172D #648617 #178670
square
#391786 #86172D #648617 #178670
split-complementary
#391786 #867017 #2D8617
monochromatic
#0D051E #230E52 #391786 #4F20BA #6C3ADD

Accessibility & contrast

On white

12.80
#391786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#391786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391786
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391786#FFFFFF#000000##FFFFFF
##3917861.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#16384F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #391786;
/* rgb */ color: rgb(57, 23, 134);
/* oklch */ color: oklch(33.7% 0.167 287.6);
Tailwind
colors: {
  custom: {
    50: '#795aaa',
    500: '#391786',
    950: '#000000',
  },
}
SCSS
$custom: #391786;
$custom-light: #795aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#391786",
  "rgb": {
    "r": 57,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 258.378,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33745,
    "c": 0.16702,
    "h": 287.6
  },
  "luminance": 0.03204
}

Semantic roles & 50–950 ramp

primary
#391786
secondary
#94BA3F
accent
#ED3AB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391786

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

Preview Lab → · Contrast checker → · Palette generator →

#391786 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva