#391F80#391F80

#391F80 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.152 H 287.7°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#391F80
RGBrgb(57, 31, 128)
HSLhsl(256, 61%, 31%)
HSVhsv(256, 76%, 50%)
CMYKcmyk(55.5%, 75.8%, 0%, 49.8%)
CIE-LABlab(21.61, 37.78, -50.26)
CIE-LCHlch(21.61, 62.87, 306.93°)
OKLaboklab(34.1% 0.0462 -0.1445)
OKLCHoklch(34.1% 0.152 287.7)
XYZxyz(6.0725, 3.4080, 20.7557)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F80 #66801F
analogous
#1F3680 #391F80 #691F80
triadic
#391F80 #80391F #1F8039
tetradic
#391F80 #801F36 #66801F #1F8069
square
#391F80 #801F36 #66801F #1F8069
split-complementary
#391F80 #80691F #36801F
monochromatic
#0D071D #23134F #391F80 #4F2BB1 #6C47D2

Accessibility & contrast

On white

12.49
#391F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#391F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F80
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F80#FFFFFF#000000##FFFFFF
##391F801.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#1C394E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #391f80;
/* rgb */ color: rgb(57, 31, 128);
/* oklch */ color: oklch(34.1% 0.152 287.7);
Tailwind
colors: {
  custom: {
    50: '#785da6',
    500: '#391f80',
    950: '#000000',
  },
}
SCSS
$custom: #391f80;
$custom-light: #785da6;
$custom-dark: #000000;
JSON
{
  "hex": "#391f80",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 256.082,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34097,
    "c": 0.15174,
    "h": 287.7
  },
  "luminance": 0.03408
}

Semantic roles & 50–950 ramp

primary
#391F80
secondary
#96B348
accent
#E444B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #391F80

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

Preview Lab → · Contrast checker → · Palette generator →

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