#391886#391886

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

Color values

HEX#391886
RGBrgb(57, 24, 134)
HSLhsl(258, 70%, 31%)
HSVhsv(258, 82%, 53%)
CMYKcmyk(57.5%, 82.1%, 0%, 47.5%)
CIE-LABlab(21.00, 43.06, -55.05)
CIE-LCHlch(21.00, 69.89, 308.03°)
OKLaboklab(33.85% 0.0498 -0.1585)
OKLCHoklch(33.85% 0.166 287.4)
XYZxyz(6.3158, 3.2440, 22.8430)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391886 #658618
analogous
#182E86 #391886 #701886
triadic
#391886 #863918 #188639
tetradic
#391886 #86182E #658618 #188670
square
#391886 #86182E #658618 #188670
split-complementary
#391886 #867018 #2E8618
monochromatic
#0D051E #230F52 #391886 #4F21BA #6C3CDC

Accessibility & contrast

On white

12.74
#391886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#391886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391886
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391886#FFFFFF#000000##FFFFFF
##3918861.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#16394F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #391886;
/* rgb */ color: rgb(57, 24, 134);
/* oklch */ color: oklch(33.9% 0.166 287.4);
Tailwind
colors: {
  custom: {
    50: '#795aaa',
    500: '#391886',
    950: '#000000',
  },
}
SCSS
$custom: #391886;
$custom-light: #795aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#391886",
  "rgb": {
    "r": 57,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 258,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33852,
    "c": 0.16612,
    "h": 287.4
  },
  "luminance": 0.03244
}

Semantic roles & 50–950 ramp

primary
#391886
secondary
#95BA40
accent
#EC3BB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391886

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

Preview Lab → · Contrast checker → · Palette generator →

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