#391B78#391B78

#391B78 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.146 H 290.7°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#391B78
RGBrgb(57, 27, 120)
HSLhsl(259, 63%, 29%)
HSVhsv(259, 78%, 47%)
CMYKcmyk(52.5%, 77.5%, 0%, 52.9%)
CIE-LABlab(20.08, 37.50, -47.67)
CIE-LCHlch(20.08, 60.65, 308.19°)
OKLaboklab(32.78% 0.0518 -0.1369)
OKLCHoklch(32.78% 0.146 290.7)
XYZxyz(5.4685, 3.0096, 18.0584)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B78 #5A781B
analogous
#1B2C78 #391B78 #681B78
triadic
#391B78 #78391B #1B7839
tetradic
#391B78 #781B2C #5A781B #1B7868
square
#391B78 #781B2C #5A781B #1B7868
split-complementary
#391B78 #78681B #2C781B
monochromatic
#0C0619 #211046 #391B78 #5126AA #6C3BD3

Accessibility & contrast

On white

13.11
#391B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#391B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B78
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B78#FFFFFF#000000##FFFFFF
##391B781.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#233448
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #391b78;
/* rgb */ color: rgb(57, 27, 120);
/* oklch */ color: oklch(32.8% 0.146 290.7);
Tailwind
colors: {
  custom: {
    50: '#775ba0',
    500: '#391b78',
    950: '#000000',
  },
}
SCSS
$custom: #391b78;
$custom-light: #775ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#391b78",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 259.355,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32784,
    "c": 0.14639,
    "h": 290.7
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

primary
#391B78
secondary
#8AAC43
accent
#E641B1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #391B78

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

Preview Lab → · Contrast checker → · Palette generator →

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