#391F7C#391F7C

#391F7C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.147 H 288.8°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#391F7C
RGBrgb(57, 31, 124)
HSLhsl(257, 60%, 30%)
HSVhsv(257, 75%, 49%)
CMYKcmyk(54%, 75%, 0%, 51.4%)
CIE-LABlab(21.23, 36.56, -48.35)
CIE-LCHlch(21.23, 60.62, 307.09°)
OKLaboklab(33.71% 0.0472 -0.1389)
OKLCHoklch(33.71% 0.147 288.8)
XYZxyz(5.8144, 3.3048, 19.3964)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F7C #627C1F
analogous
#1F347C #391F7C #671F7C
triadic
#391F7C #7C391F #1F7C39
tetradic
#391F7C #7C1F34 #627C1F #1F7C67
square
#391F7C #7C1F34 #627C1F #1F7C67
split-complementary
#391F7C #7C671F #347C1F
monochromatic
#0C071A #22134B #391F7C #502BAD #6C45D0

Accessibility & contrast

On white

12.64
#391F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#391F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F7C
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F7C#FFFFFF#000000##FFFFFF
##391F7C1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#20384B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #391f7c;
/* rgb */ color: rgb(57, 31, 124);
/* oklch */ color: oklch(33.7% 0.147 288.8);
Tailwind
colors: {
  custom: {
    50: '#775da3',
    500: '#391f7c',
    950: '#000000',
  },
}
SCSS
$custom: #391f7c;
$custom-light: #775da3;
$custom-dark: #000000;
JSON
{
  "hex": "#391f7c",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 256.774,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33709,
    "c": 0.14673,
    "h": 288.8
  },
  "luminance": 0.03305
}

Semantic roles & 50–950 ramp

primary
#391F7C
secondary
#92AF48
accent
#E345B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #391F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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