#391C87#391C87

#391C87 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.163 H 286.6°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#391C87
RGBrgb(57, 28, 135)
HSLhsl(256, 66%, 32%)
HSVhsv(256, 79%, 53%)
CMYKcmyk(57.8%, 79.3%, 0%, 47.1%)
CIE-LABlab(21.76, 41.44, -54.42)
CIE-LCHlch(21.76, 68.41, 307.29°)
OKLaboklab(34.42% 0.0467 -0.1567)
OKLCHoklch(34.42% 0.163 286.6)
XYZxyz(6.4745, 3.4493, 23.2416)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391C87 #6A871C
analogous
#1C3487 #391C87 #6F1C87
triadic
#391C87 #87391C #1C8739
tetradic
#391C87 #871C34 #6A871C #1C876F
square
#391C87 #871C34 #6A871C #1C876F
split-complementary
#391C87 #876F1C #34871C
monochromatic
#0E0722 #241154 #391C87 #4E27BA #6D45D8

Accessibility & contrast

On white

12.43
#391C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#391C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391C87
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391C87#FFFFFF#000000##FFFFFF
##391C871.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#143B51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #391c87;
/* rgb */ color: rgb(57, 28, 135);
/* oklch */ color: oklch(34.4% 0.163 286.6);
Tailwind
colors: {
  custom: {
    50: '#795cab',
    500: '#391c87',
    950: '#000000',
  },
}
SCSS
$custom: #391c87;
$custom-light: #795cab;
$custom-dark: #000000;
JSON
{
  "hex": "#391c87",
  "rgb": {
    "r": 57,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 256.262,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34416,
    "c": 0.16348,
    "h": 286.6
  },
  "luminance": 0.0345
}

Semantic roles & 50–950 ramp

primary
#391C87
secondary
#9ABA45
accent
#E93FBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391C87

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

Preview Lab → · Contrast checker → · Palette generator →

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