#391F8F#391F8F

#391F8F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.170 H 284.3°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#391F8F
RGBrgb(57, 31, 143)
HSLhsl(254, 64%, 34%)
HSVhsv(254, 78%, 56%)
CMYKcmyk(60.1%, 78.3%, 0%, 43.9%)
CIE-LABlab(23.11, 42.33, -57.20)
CIE-LCHlch(23.11, 71.16, 306.51°)
OKLaboklab(35.61% 0.0422 -0.1648)
OKLCHoklch(35.61% 0.17 284.3)
XYZxyz(7.1337, 3.8325, 26.3451)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F8F #758F1F
analogous
#1F3D8F #391F8F #711F8F
triadic
#391F8F #8F391F #1F8F39
tetradic
#391F8F #8F1F3D #758F1F #1F8F71
square
#391F8F #8F1F3D #758F1F #1F8F71
split-complementary
#391F8F #8F711F #3D8F1F
monochromatic
#11092A #25145D #391F8F #4D2AC1 #6F4FD9

Accessibility & contrast

On white

11.89
#391F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#391F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F8F
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F8F#FFFFFF#000000##FFFFFF
##391F8F1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#043F56
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #391f8f;
/* rgb */ color: rgb(57, 31, 143);
/* oklch */ color: oklch(35.6% 0.170 284.3);
Tailwind
colors: {
  custom: {
    50: '#7b5eb1',
    500: '#391f8f',
    950: '#000000',
  },
}
SCSS
$custom: #391f8f;
$custom-light: #7b5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#391f8f",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 253.929,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35607,
    "c": 0.17011,
    "h": 284.3
  },
  "luminance": 0.03833
}

Semantic roles & 50–950 ramp

primary
#391F8F
secondary
#A2BC4E
accent
#E740C1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #391F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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