#391780#391780

#391780 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.160 H 289.2°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#391780
RGBrgb(57, 23, 128)
HSLhsl(259, 70%, 30%)
HSVhsv(259, 82%, 50%)
CMYKcmyk(55.5%, 82%, 0%, 49.8%)
CIE-LABlab(20.21, 41.79, -52.56)
CIE-LCHlch(20.21, 67.15, 308.48°)
OKLaboklab(33.12% 0.0525 -0.1512)
OKLCHoklch(33.12% 0.16 289.2)
XYZxyz(5.8889, 3.0409, 20.6945)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391780 #5E8017
analogous
#172980 #391780 #6E1780
triadic
#391780 #803917 #178039
tetradic
#391780 #801729 #5E8017 #17806E
square
#391780 #801729 #5E8017 #17806E
split-complementary
#391780 #806E17 #298017
monochromatic
#0C051A #220E4C #391780 #5020B4 #6C36DB

Accessibility & contrast

On white

13.06
#391780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#391780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391780
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391780#FFFFFF#000000##FFFFFF
##3917801.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#1D364C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #391780;
/* rgb */ color: rgb(57, 23, 128);
/* oklch */ color: oklch(33.1% 0.160 289.2);
Tailwind
colors: {
  custom: {
    50: '#7859a6',
    500: '#391780',
    950: '#000000',
  },
}
SCSS
$custom: #391780;
$custom-light: #7859a6;
$custom-dark: #000000;
JSON
{
  "hex": "#391780",
  "rgb": {
    "r": 57,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 259.429,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33116,
    "c": 0.16006,
    "h": 289.2
  },
  "luminance": 0.03041
}

Semantic roles & 50–950 ramp

primary
#391780
secondary
#8EB43E
accent
#EC3BB3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #391780

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

Preview Lab → · Contrast checker → · Palette generator →

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