#391F96#391F96

#391F96 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.178 H 283.0°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#391F96
RGBrgb(57, 31, 150)
HSLhsl(253, 66%, 35%)
HSVhsv(253, 79%, 59%)
CMYKcmyk(62%, 79.3%, 0%, 41.2%)
CIE-LABlab(23.84, 44.44, -60.32)
CIE-LCHlch(23.84, 74.92, 306.38°)
OKLaboklab(36.34% 0.0401 -0.1739)
OKLCHoklch(36.34% 0.179 283)
XYZxyz(7.6806, 4.0513, 29.2255)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F96 #7C961F
analogous
#1F4196 #391F96 #741F96
triadic
#391F96 #96391F #1F9639
tetradic
#391F96 #961F41 #7C961F #1F9674
square
#391F96 #961F41 #7C961F #1F9674
split-complementary
#391F96 #96741F #41961F
monochromatic
#120A31 #261563 #391F96 #4C29C9 #7154DC

Accessibility & contrast

On white

11.60
#391F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#391F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F96
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F96#FFFFFF#000000##FFFFFF
##391F961.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #391f96;
/* rgb */ color: rgb(57, 31, 150);
/* oklch */ color: oklch(36.3% 0.178 283.0);
Tailwind
colors: {
  custom: {
    50: '#7c5fb6',
    500: '#391f96',
    950: '#000000',
  },
}
SCSS
$custom: #391f96;
$custom-light: #7c5fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#391f96",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 253.109,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36337,
    "c": 0.1785,
    "h": 283
  },
  "luminance": 0.04052
}

Semantic roles & 50–950 ramp

primary
#391F96
secondary
#A7BF52
accent
#E93FC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #391F96

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

Preview Lab → · Contrast checker → · Palette generator →

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