#391F71#391F71

#391F71 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.133 H 291.9°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#391F71
RGBrgb(57, 31, 113)
HSLhsl(259, 57%, 28%)
HSVhsv(259, 73%, 44%)
CMYKcmyk(49.6%, 72.6%, 0%, 55.7%)
CIE-LABlab(20.21, 33.21, -42.96)
CIE-LCHlch(20.21, 54.30, 307.70°)
OKLaboklab(32.67% 0.0496 -0.1231)
OKLCHoklch(32.67% 0.133 291.9)
XYZxyz(5.1571, 3.0419, 15.9350)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F71 #57711F
analogous
#1F2E71 #391F71 #621F71
triadic
#391F71 #71391F #1F7139
tetradic
#391F71 #711F2E #57711F #1F7162
square
#391F71 #711F2E #57711F #1F7162
split-complementary
#391F71 #71621F #2E711F
monochromatic
#0C0718 #211241 #391F71 #512CA1 #6C40CB

Accessibility & contrast

On white

13.06
#391F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#391F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F71
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F71#FFFFFF#000000##FFFFFF
##391F711.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#283445
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #391f71;
/* rgb */ color: rgb(57, 31, 113);
/* oklch */ color: oklch(32.7% 0.133 291.9);
Tailwind
colors: {
  custom: {
    50: '#755d9b',
    500: '#391f71',
    950: '#000000',
  },
}
SCSS
$custom: #391f71;
$custom-light: #755d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#391f71",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 259.024,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32674,
    "c": 0.13272,
    "h": 291.9
  },
  "luminance": 0.03042
}

Semantic roles & 50–950 ramp

primary
#391F71
secondary
#87A547
accent
#E048B0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #391F71

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

Preview Lab → · Contrast checker → · Palette generator →

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