#391B9B#391B9B

#391B9B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.188 H 282.6°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#391B9B
RGBrgb(57, 27, 155)
HSLhsl(254, 70%, 36%)
HSVhsv(254, 83%, 61%)
CMYKcmyk(63.2%, 82.6%, 0%, 39.2%)
CIE-LABlab(23.74, 47.79, -63.57)
CIE-LCHlch(23.74, 79.53, 306.94°)
OKLaboklab(36.43% 0.0408 -0.1834)
OKLCHoklch(36.43% 0.188 282.6)
XYZxyz(7.9938, 4.0197, 31.3586)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B9B #7D9B1B
analogous
#1B3D9B #391B9B #791B9B
triadic
#391B9B #9B391B #1B9B39
tetradic
#391B9B #9B1B3D #7D9B1B #1B9B79
square
#391B9B #9B1B3D #7D9B1B #1B9B79
split-complementary
#391B9B #9B791B #3D9B1B
monochromatic
#130933 #261267 #391B9B #4C24CF #7250E0

Accessibility & contrast

On white

11.64
#391B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391B9B
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B9B#FFFFFF#000000##FFFFFF
##391B9B1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9E
Deuteranopia (green-blind)
#003499
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #391b9b;
/* rgb */ color: rgb(57, 27, 155);
/* oklch */ color: oklch(36.4% 0.188 282.6);
Tailwind
colors: {
  custom: {
    50: '#7d5dba',
    500: '#391b9b',
    950: '#000000',
  },
}
SCSS
$custom: #391b9b;
$custom-light: #7d5dba;
$custom-dark: #000000;
JSON
{
  "hex": "#391b9b",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 254.063,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36425,
    "c": 0.18784,
    "h": 282.6
  },
  "luminance": 0.0402
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #391B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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