#391B9A#391B9A

#391B9A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.187 H 282.7°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#391B9A
RGBrgb(57, 27, 154)
HSLhsl(254, 70%, 35%)
HSVhsv(254, 82%, 60%)
CMYKcmyk(63%, 82.5%, 0%, 39.6%)
CIE-LABlab(23.63, 47.50, -63.14)
CIE-LCHlch(23.63, 79.01, 306.95°)
OKLaboklab(36.32% 0.0412 -0.1821)
OKLCHoklch(36.32% 0.187 282.7)
XYZxyz(7.9102, 3.9863, 30.9182)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B9A #7C9A1B
analogous
#1B3D9A #391B9A #781B9A
triadic
#391B9A #9A391B #1B9A39
tetradic
#391B9A #9A1B3D #7C9A1B #1B9A78
square
#391B9A #9A1B3D #7C9A1B #1B9A78
split-complementary
#391B9A #9A781B #3D9A1B
monochromatic
#120932 #261266 #391B9A #4C24CE #714FE0

Accessibility & contrast

On white

11.68
#391B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#391B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B9A
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B9A#FFFFFF#000000##FFFFFF
##391B9A1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9D
Deuteranopia (green-blind)
#003498
Tritanopia (blue-blind)
#00425C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #391b9a;
/* rgb */ color: rgb(57, 27, 154);
/* oklch */ color: oklch(36.3% 0.187 282.7);
Tailwind
colors: {
  custom: {
    50: '#7d5db9',
    500: '#391b9a',
    950: '#000000',
  },
}
SCSS
$custom: #391b9a;
$custom-light: #7d5db9;
$custom-dark: #000000;
JSON
{
  "hex": "#391b9a",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 154
  },
  "hsl": {
    "h": 254.173,
    "s": 70.166,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36316,
    "c": 0.18669,
    "h": 282.7
  },
  "luminance": 0.03987
}

Semantic roles & 50–950 ramp

primary
#391B9A
secondary
#A7C34E
accent
#ED3BC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #391B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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