#391B81#391B81

#391B81 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.157 H 288.2°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#391B81
RGBrgb(57, 27, 129)
HSLhsl(258, 65%, 31%)
HSVhsv(258, 79%, 51%)
CMYKcmyk(55.8%, 79.1%, 0%, 49.4%)
CIE-LABlab(20.97, 40.16, -51.94)
CIE-LCHlch(20.97, 65.65, 307.71°)
OKLaboklab(33.68% 0.0492 -0.1494)
OKLCHoklch(33.68% 0.157 288.2)
XYZxyz(6.0406, 3.2384, 21.0714)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B81 #63811B
analogous
#1B3081 #391B81 #6C1B81
triadic
#391B81 #81391B #1B8139
tetradic
#391B81 #811B30 #63811B #1B816C
square
#391B81 #811B30 #63811B #1B816C
split-complementary
#391B81 #816C1B #30811B
monochromatic
#0C061C #23104E #391B81 #4F26B4 #6C3FD7

Accessibility & contrast

On white

12.74
#391B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#391B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B81
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B81#FFFFFF#000000##FFFFFF
##391B811.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#1B384D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #391b81;
/* rgb */ color: rgb(57, 27, 129);
/* oklch */ color: oklch(33.7% 0.157 288.2);
Tailwind
colors: {
  custom: {
    50: '#785ba7',
    500: '#391b81',
    950: '#000000',
  },
}
SCSS
$custom: #391b81;
$custom-light: #785ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#391b81",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 257.647,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33681,
    "c": 0.1573,
    "h": 288.2
  },
  "luminance": 0.03239
}

Semantic roles & 50–950 ramp

primary
#391B81
secondary
#93B543
accent
#E83FB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #391B81

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

Preview Lab → · Contrast checker → · Palette generator →

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