#391F77#391F77

#391F77 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.140 H 290.1°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#391F77
RGBrgb(57, 31, 119)
HSLhsl(258, 59%, 29%)
HSVhsv(258, 74%, 47%)
CMYKcmyk(52.1%, 73.9%, 0%, 53.3%)
CIE-LABlab(20.76, 35.03, -45.93)
CIE-LCHlch(20.76, 57.77, 307.33°)
OKLaboklab(33.23% 0.0483 -0.1318)
OKLCHoklch(33.23% 0.14 290.1)
XYZxyz(5.5061, 3.1815, 17.7732)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F77 #5D771F
analogous
#1F3177 #391F77 #651F77
triadic
#391F77 #77391F #1F7739
tetradic
#391F77 #771F31 #5D771F #1F7765
square
#391F77 #771F31 #5D771F #1F7765
split-complementary
#391F77 #77651F #31771F
monochromatic
#0C0618 #221246 #391F77 #502CA8 #6C43CE

Accessibility & contrast

On white

12.83
#391F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#391F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F77
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F77#FFFFFF#000000##FFFFFF
##391F771.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#243649
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #391f77;
/* rgb */ color: rgb(57, 31, 119);
/* oklch */ color: oklch(33.2% 0.140 290.1);
Tailwind
colors: {
  custom: {
    50: '#765d9f',
    500: '#391f77',
    950: '#000000',
  },
}
SCSS
$custom: #391f77;
$custom-light: #765d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#391f77",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 257.727,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33232,
    "c": 0.14041,
    "h": 290.1
  },
  "luminance": 0.03182
}

Semantic roles & 50–950 ramp

primary
#391F77
secondary
#8DAB47
accent
#E246B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #391F77

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

Preview Lab → · Contrast checker → · Palette generator →

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