#391B79#391B79

#391B79 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.148 H 290.4°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#391B79
RGBrgb(57, 27, 121)
HSLhsl(259, 64%, 29%)
HSVhsv(259, 78%, 47%)
CMYKcmyk(52.9%, 77.7%, 0%, 52.5%)
CIE-LABlab(20.18, 37.79, -48.15)
CIE-LCHlch(20.18, 61.21, 308.13°)
OKLaboklab(32.88% 0.0515 -0.1383)
OKLCHoklch(32.88% 0.148 290.4)
XYZxyz(5.5295, 3.0340, 18.3797)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B79 #5B791B
analogous
#1B2C79 #391B79 #681B79
triadic
#391B79 #79391B #1B7939
tetradic
#391B79 #791B2C #5B791B #1B7968
square
#391B79 #791B2C #5B791B #1B7968
split-complementary
#391B79 #79681B #2C791B
monochromatic
#0C0619 #211047 #391B79 #5126AB #6C3BD3

Accessibility & contrast

On white

13.07
#391B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#391B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B79
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B79#FFFFFF#000000##FFFFFF
##391B791.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#223549
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #391b79;
/* rgb */ color: rgb(57, 27, 121);
/* oklch */ color: oklch(32.9% 0.148 290.4);
Tailwind
colors: {
  custom: {
    50: '#775ba1',
    500: '#391b79',
    950: '#000000',
  },
}
SCSS
$custom: #391b79;
$custom-light: #775ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#391b79",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 259.149,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32882,
    "c": 0.14761,
    "h": 290.4
  },
  "luminance": 0.03034
}

Semantic roles & 50–950 ramp

primary
#391B79
secondary
#8BAD43
accent
#E741B2
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #391B79

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

Preview Lab → · Contrast checker → · Palette generator →

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