#391790#391790

#391790 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.178 H 285.2°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#391790
RGBrgb(57, 23, 144)
HSLhsl(257, 72%, 33%)
HSVhsv(257, 84%, 56%)
CMYKcmyk(60.4%, 84%, 0%, 43.5%)
CIE-LABlab(21.93, 46.36, -59.76)
CIE-LCHlch(21.93, 75.64, 307.80°)
OKLaboklab(34.82% 0.0469 -0.1722)
OKLCHoklch(34.82% 0.178 285.2)
XYZxyz(7.0262, 3.4958, 26.6847)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391790 #6E9017
analogous
#173190 #391790 #761790
triadic
#391790 #903917 #179039
tetradic
#391790 #901731 #6E9017 #179076
square
#391790 #901731 #6E9017 #179076
split-complementary
#391790 #907617 #319017
monochromatic
#0F0626 #240F5B #391790 #4E1FC5 #6E41E1

Accessibility & contrast

On white

12.36
#391790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#391790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391790
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391790#FFFFFF#000000##FFFFFF
##3917901.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#033D55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #391790;
/* rgb */ color: rgb(57, 23, 144);
/* oklch */ color: oklch(34.8% 0.178 285.2);
Tailwind
colors: {
  custom: {
    50: '#7b5ab2',
    500: '#391790',
    950: '#000000',
  },
}
SCSS
$custom: #391790;
$custom-light: #7b5ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#391790",
  "rgb": {
    "r": 57,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 256.86,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3482,
    "c": 0.17848,
    "h": 285.2
  },
  "luminance": 0.03496
}

Semantic roles & 50–950 ramp

primary
#391790
secondary
#9DC142
accent
#EF39BC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #391790

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

Preview Lab → · Contrast checker → · Palette generator →

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