#391F72#391F72

#391F72 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.8% C 0.134 H 291.6°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#391F72
RGBrgb(57, 31, 114)
HSLhsl(259, 57%, 28%)
HSVhsv(259, 73%, 45%)
CMYKcmyk(50%, 72.8%, 0%, 55.3%)
CIE-LABlab(20.30, 33.51, -43.46)
CIE-LCHlch(20.30, 54.88, 307.63°)
OKLaboklab(32.77% 0.0494 -0.1246)
OKLCHoklch(32.77% 0.134 291.6)
XYZxyz(5.2137, 3.0645, 16.2331)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F72 #58721F
analogous
#1F2E72 #391F72 #621F72
triadic
#391F72 #72391F #1F7239
tetradic
#391F72 #721F2E #58721F #1F7262
square
#391F72 #721F2E #58721F #1F7262
split-complementary
#391F72 #72621F #2E721F
monochromatic
#0C0718 #211242 #391F72 #512CA2 #6C40CB

Accessibility & contrast

On white

13.02
#391F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#391F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F72
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F72#FFFFFF#000000##FFFFFF
##391F721.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#273446
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #391f72;
/* rgb */ color: rgb(57, 31, 114);
/* oklch */ color: oklch(32.8% 0.134 291.6);
Tailwind
colors: {
  custom: {
    50: '#755d9b',
    500: '#391f72',
    950: '#000000',
  },
}
SCSS
$custom: #391f72;
$custom-light: #755d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#391f72",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 258.795,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32766,
    "c": 0.13401,
    "h": 291.6
  },
  "luminance": 0.03065
}

Semantic roles & 50–950 ramp

primary
#391F72
secondary
#88A647
accent
#E047B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #391F72

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

Preview Lab → · Contrast checker → · Palette generator →

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