#391F82#391F82

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

Color values

HEX#391F82
RGBrgb(57, 31, 130)
HSLhsl(256, 61%, 32%)
HSVhsv(256, 76%, 51%)
CMYKcmyk(56.2%, 76.2%, 0%, 49%)
CIE-LABlab(21.80, 38.39, -51.20)
CIE-LCHlch(21.80, 64.00, 306.86°)
OKLaboklab(34.29% 0.0457 -0.1473)
OKLCHoklch(34.29% 0.154 287.2)
XYZxyz(6.2054, 3.4612, 21.4559)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F82 #68821F
analogous
#1F3682 #391F82 #6B1F82
triadic
#391F82 #82391F #1F8239
tetradic
#391F82 #821F36 #68821F #1F826B
square
#391F82 #821F36 #68821F #1F826B
split-complementary
#391F82 #826B1F #36821F
monochromatic
#0E071F #231351 #391F82 #4F2BB3 #6D48D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##391F82#FFFFFF#000000##FFFFFF
##391F821.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)
#003785
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#1A3A4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #391f82;
/* rgb */ color: rgb(57, 31, 130);
/* oklch */ color: oklch(34.3% 0.154 287.2);
Tailwind
colors: {
  custom: {
    50: '#785ea7',
    500: '#391f82',
    950: '#000000',
  },
}
SCSS
$custom: #391f82;
$custom-light: #785ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#391f82",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 255.758,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34294,
    "c": 0.15422,
    "h": 287.2
  },
  "luminance": 0.03462
}

Semantic roles & 50–950 ramp

primary
#391F82
secondary
#98B548
accent
#E543BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391F82

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

Preview Lab → · Contrast checker → · Palette generator →

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