#391E78#391E78

#391E78 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.143 H 290.1°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#391E78
RGBrgb(57, 30, 120)
HSLhsl(258, 60%, 29%)
HSVhsv(258, 75%, 47%)
CMYKcmyk(52.5%, 75%, 0%, 52.9%)
CIE-LABlab(20.65, 35.89, -46.74)
CIE-LCHlch(20.65, 58.93, 307.52°)
OKLaboklab(33.19% 0.0491 -0.1342)
OKLCHoklch(33.19% 0.143 290.1)
XYZxyz(5.5408, 3.1542, 18.0825)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391E78 #5D781E
analogous
#1E3078 #391E78 #661E78
triadic
#391E78 #78391E #1E7839
tetradic
#391E78 #781E30 #5D781E #1E7866
square
#391E78 #781E30 #5D781E #1E7866
split-complementary
#391E78 #78661E #30781E
monochromatic
#0C0618 #221247 #391E78 #502AA9 #6C41CF

Accessibility & contrast

On white

12.88
#391E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#391E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391E78
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391E78#FFFFFF#000000##FFFFFF
##391E781.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#233649
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #391e78;
/* rgb */ color: rgb(57, 30, 120);
/* oklch */ color: oklch(33.2% 0.143 290.1);
Tailwind
colors: {
  custom: {
    50: '#765ca0',
    500: '#391e78',
    950: '#000000',
  },
}
SCSS
$custom: #391e78;
$custom-light: #765ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#391e78",
  "rgb": {
    "r": 57,
    "g": 30,
    "b": 120
  },
  "hsl": {
    "h": 258,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33186,
    "c": 0.14289,
    "h": 290.1
  },
  "luminance": 0.03154
}

Semantic roles & 50–950 ramp

primary
#391E78
secondary
#8DAC46
accent
#E345B4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #391E78

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

Preview Lab → · Contrast checker → · Palette generator →

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