#391F79#391F79

#391F79 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.143 H 289.6°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#391F79
RGBrgb(57, 31, 121)
HSLhsl(257, 59%, 30%)
HSVhsv(257, 74%, 47%)
CMYKcmyk(52.9%, 74.4%, 0%, 52.5%)
CIE-LABlab(20.94, 35.64, -46.90)
CIE-LCHlch(20.94, 58.91, 307.23°)
OKLaboklab(33.42% 0.0479 -0.1347)
OKLCHoklch(33.42% 0.143 289.6)
XYZxyz(5.6275, 3.2301, 18.4124)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F79 #5F791F
analogous
#1F3279 #391F79 #661F79
triadic
#391F79 #79391F #1F7939
tetradic
#391F79 #791F32 #5F791F #1F7966
square
#391F79 #791F32 #5F791F #1F7966
split-complementary
#391F79 #79661F #32791F
monochromatic
#0B0618 #221348 #391F79 #502BAA #6C43CF

Accessibility & contrast

On white

12.76
#391F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#391F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F79
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F79#FFFFFF#000000##FFFFFF
##391F791.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#22374A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #391f79;
/* rgb */ color: rgb(57, 31, 121);
/* oklch */ color: oklch(33.4% 0.143 289.6);
Tailwind
colors: {
  custom: {
    50: '#775da1',
    500: '#391f79',
    950: '#000000',
  },
}
SCSS
$custom: #391f79;
$custom-light: #775da1;
$custom-dark: #000000;
JSON
{
  "hex": "#391f79",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 257.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33421,
    "c": 0.14295,
    "h": 289.6
  },
  "luminance": 0.0323
}

Semantic roles & 50–950 ramp

primary
#391F79
secondary
#8FAC47
accent
#E245B5
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #391F79

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

Preview Lab → · Contrast checker → · Palette generator →

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