#391C7B#391C7B

#391C7B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.149 H 289.7°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#391C7B
RGBrgb(57, 28, 123)
HSLhsl(258, 63%, 30%)
HSVhsv(258, 77%, 48%)
CMYKcmyk(53.7%, 77.2%, 0%, 51.8%)
CIE-LABlab(20.56, 37.87, -48.81)
CIE-LCHlch(20.56, 61.78, 307.80°)
OKLaboklab(33.21% 0.0501 -0.1403)
OKLCHoklch(33.21% 0.149 289.7)
XYZxyz(5.6767, 3.1302, 19.0401)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391C7B #5E7B1C
analogous
#1C2E7B #391C7B #691C7B
triadic
#391C7B #7B391C #1C7B39
tetradic
#391C7B #7B1C2E #5E7B1C #1C7B69
square
#391C7B #7B1C2E #5E7B1C #1C7B69
split-complementary
#391C7B #7B691C #2E7B1C
monochromatic
#0C0619 #221149 #391C7B #5027AD #6C3ED3

Accessibility & contrast

On white

12.92
#391C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#391C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391C7B
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391C7B#FFFFFF#000000##FFFFFF
##391C7B1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#21364A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #391c7b;
/* rgb */ color: rgb(57, 28, 123);
/* oklch */ color: oklch(33.2% 0.149 289.7);
Tailwind
colors: {
  custom: {
    50: '#775ba2',
    500: '#391c7b',
    950: '#000000',
  },
}
SCSS
$custom: #391c7b;
$custom-light: #775ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#391c7b",
  "rgb": {
    "r": 57,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 258.316,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33208,
    "c": 0.14894,
    "h": 289.7
  },
  "luminance": 0.0313
}

Semantic roles & 50–950 ramp

primary
#391C7B
secondary
#8EAF44
accent
#E642B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #391C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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