#391784#391784

#391784 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.165 H 288.1°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#391784
RGBrgb(57, 23, 132)
HSLhsl(259, 70%, 30%)
HSVhsv(259, 83%, 52%)
CMYKcmyk(56.8%, 82.6%, 0%, 48.2%)
CIE-LABlab(20.63, 42.93, -54.40)
CIE-LCHlch(20.63, 69.30, 308.28°)
OKLaboklab(33.53% 0.0512 -0.1566)
OKLCHoklch(33.53% 0.165 288.1)
XYZxyz(6.1574, 3.1483, 22.1086)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391784 #628417
analogous
#172B84 #391784 #701784
triadic
#391784 #843917 #178439
tetradic
#391784 #84172B #628417 #178470
square
#391784 #84172B #628417 #178470
split-complementary
#391784 #847017 #2B8417
monochromatic
#0C051C #220E50 #391784 #5020B8 #6C39DC

Accessibility & contrast

On white

12.89
#391784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#391784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391784
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391784#FFFFFF#000000##FFFFFF
##3917841.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#19374E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #391784;
/* rgb */ color: rgb(57, 23, 132);
/* oklch */ color: oklch(33.5% 0.165 288.1);
Tailwind
colors: {
  custom: {
    50: '#7959a9',
    500: '#391784',
    950: '#000000',
  },
}
SCSS
$custom: #391784;
$custom-light: #7959a9;
$custom-dark: #000000;
JSON
{
  "hex": "#391784",
  "rgb": {
    "r": 57,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 258.716,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33534,
    "c": 0.1647,
    "h": 288.1
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#391784
secondary
#92B83F
accent
#ED3BB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391784

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

Preview Lab → · Contrast checker → · Palette generator →

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