#391785#391785

#391785 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.166 H 287.8°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#391785
RGBrgb(57, 23, 133)
HSLhsl(259, 71%, 31%)
HSVhsv(259, 83%, 52%)
CMYKcmyk(57.1%, 82.7%, 0%, 47.8%)
CIE-LABlab(20.73, 43.22, -54.85)
CIE-LCHlch(20.73, 69.83, 308.23°)
OKLaboklab(33.64% 0.0508 -0.1579)
OKLCHoklch(33.64% 0.166 287.8)
XYZxyz(6.2261, 3.1758, 22.4707)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391785 #638517
analogous
#172C85 #391785 #701785
triadic
#391785 #853917 #178539
tetradic
#391785 #85172C #638517 #178570
square
#391785 #85172C #638517 #178570
split-complementary
#391785 #857017 #2C8517
monochromatic
#0C051D #230E51 #391785 #4F20B9 #6C3ADD

Accessibility & contrast

On white

12.84
#391785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#391785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391785
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391785#FFFFFF#000000##FFFFFF
##3917851.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#17384F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #391785;
/* rgb */ color: rgb(57, 23, 133);
/* oklch */ color: oklch(33.6% 0.166 287.8);
Tailwind
colors: {
  custom: {
    50: '#7959aa',
    500: '#391785',
    950: '#000000',
  },
}
SCSS
$custom: #391785;
$custom-light: #7959aa;
$custom-dark: #000000;
JSON
{
  "hex": "#391785",
  "rgb": {
    "r": 57,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 258.545,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3364,
    "c": 0.16586,
    "h": 287.8
  },
  "luminance": 0.03176
}

Semantic roles & 50–950 ramp

primary
#391785
secondary
#93B93F
accent
#ED3BB6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391785

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

Preview Lab → · Contrast checker → · Palette generator →

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