#391794#391794

#391794 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.3% C 0.183 H 284.4°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#391794
RGBrgb(57, 23, 148)
HSLhsl(256, 73%, 34%)
HSVhsv(256, 84%, 58%)
CMYKcmyk(61.5%, 84.5%, 0%, 42%)
CIE-LABlab(22.37, 47.49, -61.51)
CIE-LCHlch(22.37, 77.71, 307.67°)
OKLaboklab(35.26% 0.0454 -0.1773)
OKLCHoklch(35.26% 0.183 284.4)
XYZxyz(7.3374, 3.6203, 28.3234)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391794 #729417
analogous
#173394 #391794 #771794
triadic
#391794 #943917 #179439
tetradic
#391794 #941733 #729417 #179477
square
#391794 #941733 #729417 #179477
split-complementary
#391794 #947717 #339417
monochromatic
#10072A #250F5F #391794 #4D1FC9 #6F44E2

Accessibility & contrast

On white

12.18
#391794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#391794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391794
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391794#FFFFFF#000000##FFFFFF
##3917941.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#003192
Tritanopia (blue-blind)
#003E57
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #391794;
/* rgb */ color: rgb(57, 23, 148);
/* oklch */ color: oklch(35.3% 0.183 284.4);
Tailwind
colors: {
  custom: {
    50: '#7c5bb5',
    500: '#391794',
    950: '#000000',
  },
}
SCSS
$custom: #391794;
$custom-light: #7c5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#391794",
  "rgb": {
    "r": 57,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 256.32,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35257,
    "c": 0.18302,
    "h": 284.4
  },
  "luminance": 0.03621
}

Semantic roles & 50–950 ramp

primary
#391794
secondary
#A0C344
accent
#F038BE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #391794

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

Preview Lab → · Contrast checker → · Palette generator →

#391794 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva