#391F92#391F92

#391F92 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.174 H 283.7°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#391F92
RGBrgb(57, 31, 146)
HSLhsl(254, 65%, 35%)
HSVhsv(254, 79%, 57%)
CMYKcmyk(61%, 78.8%, 0%, 42.7%)
CIE-LABlab(23.42, 43.24, -58.54)
CIE-LCHlch(23.42, 72.78, 306.45°)
OKLaboklab(35.92% 0.0413 -0.1687)
OKLCHoklch(35.92% 0.174 283.7)
XYZxyz(7.3640, 3.9247, 27.5580)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F92 #78921F
analogous
#1F3F92 #391F92 #731F92
triadic
#391F92 #92391F #1F9239
tetradic
#391F92 #921F3F #78921F #1F9273
square
#391F92 #921F3F #78921F #1F9273
split-complementary
#391F92 #92731F #3F921F
monochromatic
#120A2D #251460 #391F92 #4D2AC4 #7051DA

Accessibility & contrast

On white

11.76
#391F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391F92
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F92#FFFFFF#000000##FFFFFF
##391F921.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B95
Deuteranopia (green-blind)
#003490
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #391f92;
/* rgb */ color: rgb(57, 31, 146);
/* oklch */ color: oklch(35.9% 0.174 283.7);
Tailwind
colors: {
  custom: {
    50: '#7b5eb3',
    500: '#391f92',
    950: '#000000',
  },
}
SCSS
$custom: #391f92;
$custom-light: #7b5eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#391f92",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 253.565,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35918,
    "c": 0.17373,
    "h": 283.7
  },
  "luminance": 0.03925
}

Semantic roles & 50–950 ramp

primary
#391F92
secondary
#A4BD50
accent
#E840C2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #391F92

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

Preview Lab → · Contrast checker → · Palette generator →

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