#391B8A#391B8A

#391B8A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.168 H 286.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#391B8A
RGBrgb(57, 27, 138)
HSLhsl(256, 67%, 32%)
HSVhsv(256, 80%, 54%)
CMYKcmyk(58.7%, 80.4%, 0%, 45.9%)
CIE-LABlab(21.90, 42.82, -56.07)
CIE-LCHlch(21.90, 70.55, 307.37°)
OKLaboklab(34.61% 0.0464 -0.1615)
OKLCHoklch(34.61% 0.168 286)
XYZxyz(6.6653, 3.4883, 24.3619)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B8A #6C8A1B
analogous
#1B358A #391B8A #701B8A
triadic
#391B8A #8A391B #1B8A39
tetradic
#391B8A #8A1B35 #6C8A1B #1B8A70
square
#391B8A #8A1B35 #6C8A1B #1B8A70
split-complementary
#391B8A #8A701B #358A1B
monochromatic
#0F0724 #241157 #391B8A #4E25BD #6D45DB

Accessibility & contrast

On white

12.37
#391B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#391B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B8A
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B8A#FFFFFF#000000##FFFFFF
##391B8A1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#103C52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #391b8a;
/* rgb */ color: rgb(57, 27, 138);
/* oklch */ color: oklch(34.6% 0.168 286.0);
Tailwind
colors: {
  custom: {
    50: '#7a5cad',
    500: '#391b8a',
    950: '#000000',
  },
}
SCSS
$custom: #391b8a;
$custom-light: #7a5cad;
$custom-dark: #000000;
JSON
{
  "hex": "#391b8a",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 256.216,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34608,
    "c": 0.16803,
    "h": 286
  },
  "luminance": 0.03489
}

Semantic roles & 50–950 ramp

primary
#391B8A
secondary
#9CBC45
accent
#EA3EBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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