#391B83#391B83

#391B83 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.160 H 287.7°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#391B83
RGBrgb(57, 27, 131)
HSLhsl(257, 66%, 31%)
HSVhsv(257, 79%, 51%)
CMYKcmyk(56.5%, 79.4%, 0%, 48.6%)
CIE-LABlab(21.18, 40.75, -52.86)
CIE-LCHlch(21.18, 66.75, 307.63°)
OKLaboklab(33.89% 0.0486 -0.1521)
OKLCHoklch(33.89% 0.16 287.7)
XYZxyz(6.1748, 3.2921, 21.7784)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B83 #65831B
analogous
#1B3183 #391B83 #6D1B83
triadic
#391B83 #83391B #1B8339
tetradic
#391B83 #831B31 #65831B #1B836D
square
#391B83 #831B31 #65831B #1B836D
split-complementary
#391B83 #836D1B #31831B
monochromatic
#0D061E #231150 #391B83 #4F25B6 #6C41D8

Accessibility & contrast

On white

12.66
#391B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#391B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B83
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B83#FFFFFF#000000##FFFFFF
##391B831.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#19394E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #391b83;
/* rgb */ color: rgb(57, 27, 131);
/* oklch */ color: oklch(33.9% 0.160 287.7);
Tailwind
colors: {
  custom: {
    50: '#795ba8',
    500: '#391b83',
    950: '#000000',
  },
}
SCSS
$custom: #391b83;
$custom-light: #795ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#391b83",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 257.308,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33885,
    "c": 0.1597,
    "h": 287.7
  },
  "luminance": 0.03292
}

Semantic roles & 50–950 ramp

primary
#391B83
secondary
#95B643
accent
#E93FB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391B83

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

Preview Lab → · Contrast checker → · Palette generator →

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