#391B8B#391B8B

#391B8B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.169 H 285.8°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#391B8B
RGBrgb(57, 27, 139)
HSLhsl(256, 67%, 33%)
HSVhsv(256, 81%, 55%)
CMYKcmyk(59%, 80.6%, 0%, 45.5%)
CIE-LABlab(22.01, 43.11, -56.52)
CIE-LCHlch(22.01, 71.09, 307.34°)
OKLaboklab(34.71% 0.0461 -0.1628)
OKLCHoklch(34.71% 0.169 285.8)
XYZxyz(6.7381, 3.5174, 24.7450)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B8B #6D8B1B
analogous
#1B358B #391B8B #711B8B
triadic
#391B8B #8B391B #1B8B39
tetradic
#391B8B #8B1B35 #6D8B1B #1B8B71
square
#391B8B #8B1B35 #6D8B1B #1B8B71
split-complementary
#391B8B #8B711B #358B1B
monochromatic
#0F0725 #241158 #391B8B #4E25BE #6D45DB

Accessibility & contrast

On white

12.33
#391B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391B8B
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B8B#FFFFFF#000000##FFFFFF
##391B8B1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#0E3C53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #391b8b;
/* rgb */ color: rgb(57, 27, 139);
/* oklch */ color: oklch(34.7% 0.169 285.8);
Tailwind
colors: {
  custom: {
    50: '#7a5cae',
    500: '#391b8b',
    950: '#000000',
  },
}
SCSS
$custom: #391b8b;
$custom-light: #7a5cae;
$custom-dark: #000000;
JSON
{
  "hex": "#391b8b",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 256.071,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34713,
    "c": 0.16921,
    "h": 285.8
  },
  "luminance": 0.03518
}

Semantic roles & 50–950 ramp

primary
#391B8B
secondary
#9DBC45
accent
#EA3DBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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