#391D78#391D78

#391D78 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.144 H 290.3°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#391D78
RGBrgb(57, 29, 120)
HSLhsl(258, 61%, 29%)
HSVhsv(258, 76%, 47%)
CMYKcmyk(52.5%, 75.8%, 0%, 52.9%)
CIE-LABlab(20.46, 36.44, -47.06)
CIE-LCHlch(20.46, 59.52, 307.75°)
OKLaboklab(33.05% 0.05 -0.1351)
OKLCHoklch(33.05% 0.144 290.3)
XYZxyz(5.5159, 3.1044, 18.0742)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391D78 #5C781D
analogous
#1D2E78 #391D78 #671D78
triadic
#391D78 #78391D #1D7839
tetradic
#391D78 #781D2E #5C781D #1D7867
square
#391D78 #781D2E #5C781D #1D7867
split-complementary
#391D78 #78671D #2E781D
monochromatic
#0C0619 #221147 #391D78 #5029A9 #6C3FD1

Accessibility & contrast

On white

12.95
#391D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#391D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391D78
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391D78#FFFFFF#000000##FFFFFF
##391D781.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#233549
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #391d78;
/* rgb */ color: rgb(57, 29, 120);
/* oklch */ color: oklch(33.0% 0.144 290.3);
Tailwind
colors: {
  custom: {
    50: '#775ca0',
    500: '#391d78',
    950: '#000000',
  },
}
SCSS
$custom: #391d78;
$custom-light: #775ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#391d78",
  "rgb": {
    "r": 57,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 258.462,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33048,
    "c": 0.14408,
    "h": 290.3
  },
  "luminance": 0.03105
}

Semantic roles & 50–950 ramp

primary
#391D78
secondary
#8CAC45
accent
#E444B3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #391D78

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

Preview Lab → · Contrast checker → · Palette generator →

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