#391F97#391F97

#391F97 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.180 H 282.8°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#391F97
RGBrgb(57, 31, 151)
HSLhsl(253, 66%, 36%)
HSVhsv(253, 79%, 59%)
CMYKcmyk(62.3%, 79.5%, 0%, 40.8%)
CIE-LABlab(23.95, 44.74, -60.76)
CIE-LCHlch(23.95, 75.46, 306.37°)
OKLaboklab(36.44% 0.0398 -0.1752)
OKLCHoklch(36.44% 0.18 282.8)
XYZxyz(7.7615, 4.0837, 29.6514)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F97 #7D971F
analogous
#1F4197 #391F97 #751F97
triadic
#391F97 #97391F #1F9739
tetradic
#391F97 #971F41 #7D971F #1F9775
square
#391F97 #971F41 #7D971F #1F9775
split-complementary
#391F97 #97751F #41971F
monochromatic
#130A31 #261564 #391F97 #4C29CA #7254DC

Accessibility & contrast

On white

11.56
#391F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#391F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F97
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F97#FFFFFF#000000##FFFFFF
##391F971.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #391f97;
/* rgb */ color: rgb(57, 31, 151);
/* oklch */ color: oklch(36.4% 0.180 282.8);
Tailwind
colors: {
  custom: {
    50: '#7c5fb7',
    500: '#391f97',
    950: '#000000',
  },
}
SCSS
$custom: #391f97;
$custom-light: #7c5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#391f97",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 253,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36442,
    "c": 0.1797,
    "h": 282.8
  },
  "luminance": 0.04084
}

Semantic roles & 50–950 ramp

primary
#391F97
secondary
#A8BF52
accent
#E93FC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #391F97

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

Preview Lab → · Contrast checker → · Palette generator →

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