#391D81#391D81

#391D81 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.155 H 287.9°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#391D81
RGBrgb(57, 29, 129)
HSLhsl(257, 63%, 31%)
HSVhsv(257, 78%, 51%)
CMYKcmyk(55.8%, 77.5%, 0%, 49.4%)
CIE-LABlab(21.33, 39.14, -51.35)
CIE-LCHlch(21.33, 64.56, 307.32°)
OKLaboklab(33.93% 0.0476 -0.1477)
OKLCHoklch(33.93% 0.155 287.9)
XYZxyz(6.0880, 3.3333, 21.0872)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391D81 #65811D
analogous
#1D3381 #391D81 #6B1D81
triadic
#391D81 #81391D #1D8139
tetradic
#391D81 #811D33 #65811D #1D816B
square
#391D81 #811D33 #65811D #1D816B
split-complementary
#391D81 #816B1D #33811D
monochromatic
#0D071D #23124F #391D81 #4F28B3 #6C44D5

Accessibility & contrast

On white

12.60
#391D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#391D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391D81
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391D81#FFFFFF#000000##FFFFFF
##391D811.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #391d81;
/* rgb */ color: rgb(57, 29, 129);
/* oklch */ color: oklch(33.9% 0.155 287.9);
Tailwind
colors: {
  custom: {
    50: '#785ca7',
    500: '#391d81',
    950: '#000000',
  },
}
SCSS
$custom: #391d81;
$custom-light: #785ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#391d81",
  "rgb": {
    "r": 57,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 256.8,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33932,
    "c": 0.15519,
    "h": 287.9
  },
  "luminance": 0.03334
}

Semantic roles & 50–950 ramp

primary
#391D81
secondary
#95B446
accent
#E641B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #391D81

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

Preview Lab → · Contrast checker → · Palette generator →

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