#391C83#391C83

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

Color values

HEX#391C83
RGBrgb(57, 28, 131)
HSLhsl(257, 65%, 31%)
HSVhsv(257, 79%, 51%)
CMYKcmyk(56.5%, 78.6%, 0%, 48.6%)
CIE-LABlab(21.35, 40.25, -52.58)
CIE-LCHlch(21.35, 66.22, 307.44°)
OKLaboklab(34.01% 0.0478 -0.1513)
OKLCHoklch(34.01% 0.159 287.6)
XYZxyz(6.1981, 3.3387, 21.7862)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391C83 #66831C
analogous
#1C3283 #391C83 #6C1C83
triadic
#391C83 #83391C #1C8339
tetradic
#391C83 #831C32 #66831C #1C836C
square
#391C83 #831C32 #66831C #1C836C
split-complementary
#391C83 #836C1C #32831C
monochromatic
#0D061E #231151 #391C83 #4F27B5 #6C43D7

Accessibility & contrast

On white

12.59
#391C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#391C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391C83
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391C83#FFFFFF#000000##FFFFFF
##391C831.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #391c83;
/* rgb */ color: rgb(57, 28, 131);
/* oklch */ color: oklch(34.0% 0.159 287.6);
Tailwind
colors: {
  custom: {
    50: '#795ca8',
    500: '#391c83',
    950: '#000000',
  },
}
SCSS
$custom: #391c83;
$custom-light: #795ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#391c83",
  "rgb": {
    "r": 57,
    "g": 28,
    "b": 131
  },
  "hsl": {
    "h": 256.893,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34007,
    "c": 0.15868,
    "h": 287.6
  },
  "luminance": 0.03339
}

Semantic roles & 50–950 ramp

primary
#391C83
secondary
#96B645
accent
#E840B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391C83

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

Preview Lab → · Contrast checker → · Palette generator →

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