#391B89#391B89

#391B89 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.167 H 286.3°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#391B89
RGBrgb(57, 27, 137)
HSLhsl(256, 67%, 32%)
HSVhsv(256, 80%, 54%)
CMYKcmyk(58.4%, 80.3%, 0%, 46.3%)
CIE-LABlab(21.80, 42.52, -55.62)
CIE-LCHlch(21.80, 70.01, 307.40°)
OKLaboklab(34.5% 0.0468 -0.1602)
OKLCHoklch(34.5% 0.167 286.3)
XYZxyz(6.5933, 3.4595, 23.9824)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B89 #6B891B
analogous
#1B3489 #391B89 #701B89
triadic
#391B89 #89391B #1B8939
tetradic
#391B89 #891B34 #6B891B #1B8970
square
#391B89 #891B34 #6B891B #1B8970
split-complementary
#391B89 #89701B #34891B
monochromatic
#0E0723 #241156 #391B89 #4E25BC #6D44DA

Accessibility & contrast

On white

12.41
#391B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#391B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B89
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B89#FFFFFF#000000##FFFFFF
##391B891.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#113B52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #391b89;
/* rgb */ color: rgb(57, 27, 137);
/* oklch */ color: oklch(34.5% 0.167 286.3);
Tailwind
colors: {
  custom: {
    50: '#7a5cad',
    500: '#391b89',
    950: '#000000',
  },
}
SCSS
$custom: #391b89;
$custom-light: #7a5cad;
$custom-dark: #000000;
JSON
{
  "hex": "#391b89",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 256.364,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34504,
    "c": 0.16685,
    "h": 286.3
  },
  "luminance": 0.0346
}

Semantic roles & 50–950 ramp

primary
#391B89
secondary
#9BBC44
accent
#EA3EBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391B89

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

Preview Lab → · Contrast checker → · Palette generator →

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