#391F93#391F93

#391F93 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.175 H 283.6°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#391F93
RGBrgb(57, 31, 147)
HSLhsl(253, 65%, 35%)
HSVhsv(253, 79%, 58%)
CMYKcmyk(61.2%, 78.9%, 0%, 42.4%)
CIE-LABlab(23.53, 43.54, -58.99)
CIE-LCHlch(23.53, 73.32, 306.43°)
OKLaboklab(36.02% 0.041 -0.1701)
OKLCHoklch(36.02% 0.175 283.6)
XYZxyz(7.4422, 3.9559, 27.9695)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F93 #79931F
analogous
#1F3F93 #391F93 #731F93
triadic
#391F93 #93391F #1F9339
tetradic
#391F93 #931F3F #79931F #1F9373
square
#391F93 #931F3F #79931F #1F9373
split-complementary
#391F93 #93731F #3F931F
monochromatic
#120A2E #251460 #391F93 #4D2AC6 #7152DA

Accessibility & contrast

On white

11.72
#391F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#391F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F93
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F93#FFFFFF#000000##FFFFFF
##391F931.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B96
Deuteranopia (green-blind)
#003491
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #391f93;
/* rgb */ color: rgb(57, 31, 147);
/* oklch */ color: oklch(36.0% 0.175 283.6);
Tailwind
colors: {
  custom: {
    50: '#7b5fb4',
    500: '#391f93',
    950: '#000000',
  },
}
SCSS
$custom: #391f93;
$custom-light: #7b5fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#391f93",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 253.448,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36022,
    "c": 0.17493,
    "h": 283.6
  },
  "luminance": 0.03956
}

Semantic roles & 50–950 ramp

primary
#391F93
secondary
#A5BE50
accent
#E840C2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #391F93

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

Preview Lab → · Contrast checker → · Palette generator →

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