#391E95#391E95

#391E95 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.178 H 283.3°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#391E95
RGBrgb(57, 30, 149)
HSLhsl(254, 66%, 35%)
HSVhsv(254, 80%, 58%)
CMYKcmyk(61.7%, 79.9%, 0%, 41.6%)
CIE-LABlab(23.56, 44.63, -60.16)
CIE-LCHlch(23.56, 74.91, 306.57°)
OKLaboklab(36.11% 0.041 -0.1735)
OKLCHoklch(36.11% 0.178 283.3)
XYZxyz(7.5748, 3.9678, 28.7947)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391E95 #7A951E
analogous
#1E3F95 #391E95 #741E95
triadic
#391E95 #95391E #1E9539
tetradic
#391E95 #951E3F #7A951E #1E9574
square
#391E95 #951E3F #7A951E #1E9574
split-complementary
#391E95 #95741E #3F951E
monochromatic
#12092F #261462 #391E95 #4C28C8 #7151DC

Accessibility & contrast

On white

11.71
#391E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#391E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391E95
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391E95#FFFFFF#000000##FFFFFF
##391E951.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #391e95;
/* rgb */ color: rgb(57, 30, 149);
/* oklch */ color: oklch(36.1% 0.178 283.3);
Tailwind
colors: {
  custom: {
    50: '#7c5eb5',
    500: '#391e95',
    950: '#000000',
  },
}
SCSS
$custom: #391e95;
$custom-light: #7c5eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#391e95",
  "rgb": {
    "r": 57,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 253.613,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36113,
    "c": 0.17825,
    "h": 283.3
  },
  "luminance": 0.03968
}

Semantic roles & 50–950 ramp

primary
#391E95
secondary
#A6BF50
accent
#E93EC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #391E95

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

Preview Lab → · Contrast checker → · Palette generator →

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