#391D80#391D80

#391D80 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.154 H 288.1°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#391D80
RGBrgb(57, 29, 128)
HSLhsl(257, 63%, 31%)
HSVhsv(257, 77%, 50%)
CMYKcmyk(55.5%, 77.3%, 0%, 49.8%)
CIE-LABlab(21.23, 38.84, -50.88)
CIE-LCHlch(21.23, 64.01, 307.36°)
OKLaboklab(33.83% 0.0479 -0.1463)
OKLCHoklch(33.83% 0.154 288.1)
XYZxyz(6.0218, 3.3068, 20.7389)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391D80 #64801D
analogous
#1D3280 #391D80 #6A1D80
triadic
#391D80 #80391D #1D8039
tetradic
#391D80 #801D32 #64801D #1D806A
square
#391D80 #801D32 #64801D #1D806A
split-complementary
#391D80 #806A1D #32801D
monochromatic
#0D061C #23124E #391D80 #4F28B2 #6C43D4

Accessibility & contrast

On white

12.64
#391D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#391D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391D80
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391D80#FFFFFF#000000##FFFFFF
##391D801.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#1C384D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #391d80;
/* rgb */ color: rgb(57, 29, 128);
/* oklch */ color: oklch(33.8% 0.154 288.1);
Tailwind
colors: {
  custom: {
    50: '#785ca6',
    500: '#391d80',
    950: '#000000',
  },
}
SCSS
$custom: #391d80;
$custom-light: #785ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#391d80",
  "rgb": {
    "r": 57,
    "g": 29,
    "b": 128
  },
  "hsl": {
    "h": 256.97,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33832,
    "c": 0.15396,
    "h": 288.1
  },
  "luminance": 0.03307
}

Semantic roles & 50–950 ramp

primary
#391D80
secondary
#94B345
accent
#E642B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #391D80

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

Preview Lab → · Contrast checker → · Palette generator →

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