#391C81#391C81

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

Color values

HEX#391C81
RGBrgb(57, 28, 129)
HSLhsl(257, 64%, 31%)
HSVhsv(257, 78%, 51%)
CMYKcmyk(55.8%, 78.3%, 0%, 49.4%)
CIE-LABlab(21.15, 39.66, -51.65)
CIE-LCHlch(21.15, 65.11, 307.52°)
OKLaboklab(33.81% 0.0484 -0.1486)
OKLCHoklch(33.81% 0.156 288.1)
XYZxyz(6.0639, 3.2850, 21.0792)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391C81 #64811C
analogous
#1C3181 #391C81 #6B1C81
triadic
#391C81 #81391C #1C8139
tetradic
#391C81 #811C31 #64811C #1C816B
square
#391C81 #811C31 #64811C #1C816B
split-complementary
#391C81 #816B1C #31811C
monochromatic
#0D061C #23114F #391C81 #4F27B3 #6C42D6

Accessibility & contrast

On white

12.67
#391C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391C81
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391C81#FFFFFF#000000##FFFFFF
##391C811.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #391c81;
/* rgb */ color: rgb(57, 28, 129);
/* oklch */ color: oklch(33.8% 0.156 288.1);
Tailwind
colors: {
  custom: {
    50: '#785ca7',
    500: '#391c81',
    950: '#000000',
  },
}
SCSS
$custom: #391c81;
$custom-light: #785ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#391c81",
  "rgb": {
    "r": 57,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 257.228,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33805,
    "c": 0.15625,
    "h": 288.1
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

primary
#391C81
secondary
#94B444
accent
#E740B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #391C81

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

Preview Lab → · Contrast checker → · Palette generator →

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