#391F76#391F76

#391F76 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.1% C 0.139 H 290.4°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#391F76
RGBrgb(57, 31, 118)
HSLhsl(258, 58%, 29%)
HSVhsv(258, 74%, 46%)
CMYKcmyk(51.7%, 73.7%, 0%, 53.7%)
CIE-LABlab(20.66, 34.73, -45.44)
CIE-LCHlch(20.66, 57.19, 307.39°)
OKLaboklab(33.14% 0.0485 -0.1304)
OKLCHoklch(33.14% 0.139 290.4)
XYZxyz(5.4464, 3.1576, 17.4585)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F76 #5C761F
analogous
#1F3176 #391F76 #651F76
triadic
#391F76 #76391F #1F7639
tetradic
#391F76 #761F31 #5C761F #1F7665
square
#391F76 #761F31 #5C761F #1F7665
split-complementary
#391F76 #76651F #31761F
monochromatic
#0C0618 #221246 #391F76 #502CA6 #6C42CD

Accessibility & contrast

On white

12.87
#391F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#391F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F76
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F76#FFFFFF#000000##FFFFFF
##391F761.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#243648
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #391f76;
/* rgb */ color: rgb(57, 31, 118);
/* oklch */ color: oklch(33.1% 0.139 290.4);
Tailwind
colors: {
  custom: {
    50: '#765d9e',
    500: '#391f76',
    950: '#000000',
  },
}
SCSS
$custom: #391f76;
$custom-light: #765d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#391f76",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 257.931,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33138,
    "c": 0.13913,
    "h": 290.4
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#391F76
secondary
#8CAA47
accent
#E246B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #391F76

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

Preview Lab → · Contrast checker → · Palette generator →

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