#391781#391781

#391781 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.161 H 288.9°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#391781
RGBrgb(57, 23, 129)
HSLhsl(259, 70%, 30%)
HSVhsv(259, 82%, 51%)
CMYKcmyk(55.8%, 82.2%, 0%, 49.4%)
CIE-LABlab(20.31, 42.07, -53.03)
CIE-LCHlch(20.31, 67.69, 308.43°)
OKLaboklab(33.22% 0.0522 -0.1525)
OKLCHoklch(33.22% 0.161 288.9)
XYZxyz(5.9550, 3.0673, 21.0429)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391781 #5F8117
analogous
#172A81 #391781 #6E1781
triadic
#391781 #813917 #178139
tetradic
#391781 #81172A #5F8117 #17816E
square
#391781 #81172A #5F8117 #17816E
split-complementary
#391781 #816E17 #2A8117
monochromatic
#0B051A #220E4D #391781 #5020B5 #6C37DB

Accessibility & contrast

On white

13.01
#391781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#391781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391781
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391781#FFFFFF#000000##FFFFFF
##3917811.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#1C364C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #391781;
/* rgb */ color: rgb(57, 23, 129);
/* oklch */ color: oklch(33.2% 0.161 288.9);
Tailwind
colors: {
  custom: {
    50: '#7959a7',
    500: '#391781',
    950: '#000000',
  },
}
SCSS
$custom: #391781;
$custom-light: #7959a7;
$custom-dark: #000000;
JSON
{
  "hex": "#391781",
  "rgb": {
    "r": 57,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 259.245,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3322,
    "c": 0.16123,
    "h": 288.9
  },
  "luminance": 0.03068
}

Semantic roles & 50–950 ramp

primary
#391781
secondary
#8FB53E
accent
#ED3BB4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391781

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

Preview Lab → · Contrast checker → · Palette generator →

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