#391B82#391B82

#391B82 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.159 H 288.0°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#391B82
RGBrgb(57, 27, 130)
HSLhsl(257, 66%, 31%)
HSVhsv(257, 79%, 51%)
CMYKcmyk(56.2%, 79.2%, 0%, 49%)
CIE-LABlab(21.08, 40.46, -52.40)
CIE-LCHlch(21.08, 66.20, 307.67°)
OKLaboklab(33.78% 0.0489 -0.1508)
OKLCHoklch(33.78% 0.159 288)
XYZxyz(6.1073, 3.2651, 21.4232)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B82 #64821B
analogous
#1B3082 #391B82 #6C1B82
triadic
#391B82 #82391B #1B8239
tetradic
#391B82 #821B30 #64821B #1B826C
square
#391B82 #821B30 #64821B #1B826C
split-complementary
#391B82 #826C1B #30821B
monochromatic
#0D061D #23104F #391B82 #4F26B5 #6C40D7

Accessibility & contrast

On white

12.70
#391B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#391B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B82
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B82#FFFFFF#000000##FFFFFF
##391B821.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#1A384E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #391b82;
/* rgb */ color: rgb(57, 27, 130);
/* oklch */ color: oklch(33.8% 0.159 288.0);
Tailwind
colors: {
  custom: {
    50: '#785ba7',
    500: '#391b82',
    950: '#000000',
  },
}
SCSS
$custom: #391b82;
$custom-light: #785ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#391b82",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 257.476,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33783,
    "c": 0.1585,
    "h": 288
  },
  "luminance": 0.03265
}

Semantic roles & 50–950 ramp

primary
#391B82
secondary
#94B643
accent
#E93FB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391B82

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

Preview Lab → · Contrast checker → · Palette generator →

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