#391F7D#391F7D

#391F7D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.148 H 288.5°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#391F7D
RGBrgb(57, 31, 125)
HSLhsl(257, 60%, 31%)
HSVhsv(257, 75%, 49%)
CMYKcmyk(54.4%, 75.2%, 0%, 51%)
CIE-LABlab(21.32, 36.86, -48.83)
CIE-LCHlch(21.32, 61.18, 307.05°)
OKLaboklab(33.81% 0.047 -0.1403)
OKLCHoklch(33.81% 0.148 288.5)
XYZxyz(5.8779, 3.3302, 19.7311)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F7D #637D1F
analogous
#1F347D #391F7D #681F7D
triadic
#391F7D #7D391F #1F7D39
tetradic
#391F7D #7D1F34 #637D1F #1F7D68
square
#391F7D #7D1F34 #637D1F #1F7D68
split-complementary
#391F7D #7D681F #347D1F
monochromatic
#0C071B #23134C #391F7D #4F2BAE #6C45D1

Accessibility & contrast

On white

12.61
#391F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#391F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F7D
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F7D#FFFFFF#000000##FFFFFF
##391F7D1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#1F384C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #391f7d;
/* rgb */ color: rgb(57, 31, 125);
/* oklch */ color: oklch(33.8% 0.148 288.5);
Tailwind
colors: {
  custom: {
    50: '#775da4',
    500: '#391f7d',
    950: '#000000',
  },
}
SCSS
$custom: #391f7d;
$custom-light: #775da4;
$custom-dark: #000000;
JSON
{
  "hex": "#391f7d",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 256.596,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33805,
    "c": 0.14799,
    "h": 288.5
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#391F7D
secondary
#93B048
accent
#E344B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #391F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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