#391C82#391C82

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

Color values

HEX#391C82
RGBrgb(57, 28, 130)
HSLhsl(257, 65%, 31%)
HSVhsv(257, 78%, 51%)
CMYKcmyk(56.2%, 78.5%, 0%, 49%)
CIE-LABlab(21.25, 39.95, -52.11)
CIE-LCHlch(21.25, 65.67, 307.48°)
OKLaboklab(33.91% 0.0481 -0.1499)
OKLCHoklch(33.91% 0.157 287.8)
XYZxyz(6.1307, 3.3118, 21.4310)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391C82 #65821C
analogous
#1C3282 #391C82 #6C1C82
triadic
#391C82 #82391C #1C8239
tetradic
#391C82 #821C32 #65821C #1C826C
square
#391C82 #821C32 #65821C #1C826C
split-complementary
#391C82 #826C1C #32821C
monochromatic
#0D061D #231150 #391C82 #4F27B4 #6C42D6

Accessibility & contrast

On white

12.63
#391C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391C82
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391C82#FFFFFF#000000##FFFFFF
##391C821.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #391c82;
/* rgb */ color: rgb(57, 28, 130);
/* oklch */ color: oklch(33.9% 0.157 287.8);
Tailwind
colors: {
  custom: {
    50: '#785ca7',
    500: '#391c82',
    950: '#000000',
  },
}
SCSS
$custom: #391c82;
$custom-light: #785ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#391c82",
  "rgb": {
    "r": 57,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 257.059,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33906,
    "c": 0.15746,
    "h": 287.8
  },
  "luminance": 0.03312
}

Semantic roles & 50–950 ramp

primary
#391C82
secondary
#95B544
accent
#E840B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391C82

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

Preview Lab → · Contrast checker → · Palette generator →

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