#391887#391887

#391887 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.167 H 287.2°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#391887
RGBrgb(57, 24, 135)
HSLhsl(258, 70%, 31%)
HSVhsv(258, 82%, 53%)
CMYKcmyk(57.8%, 82.2%, 0%, 47.1%)
CIE-LABlab(21.10, 43.34, -55.51)
CIE-LCHlch(21.10, 70.43, 307.98°)
OKLaboklab(33.96% 0.0495 -0.1598)
OKLCHoklch(33.96% 0.167 287.2)
XYZxyz(6.3858, 3.2720, 23.2121)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391887 #668718
analogous
#182E87 #391887 #701887
triadic
#391887 #873918 #188739
tetradic
#391887 #87182E #668718 #188770
square
#391887 #87182E #668718 #188770
split-complementary
#391887 #877018 #2E8718
monochromatic
#0D061F #230F53 #391887 #4F21BB #6C3DDC

Accessibility & contrast

On white

12.69
#391887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391887
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391887#FFFFFF#000000##FFFFFF
##3918871.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#153950
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #391887;
/* rgb */ color: rgb(57, 24, 135);
/* oklch */ color: oklch(34.0% 0.167 287.2);
Tailwind
colors: {
  custom: {
    50: '#7a5aab',
    500: '#391887',
    950: '#000000',
  },
}
SCSS
$custom: #391887;
$custom-light: #7a5aab;
$custom-dark: #000000;
JSON
{
  "hex": "#391887",
  "rgb": {
    "r": 57,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 257.838,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33958,
    "c": 0.16729,
    "h": 287.2
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#391887
secondary
#96BB40
accent
#ED3BB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391887

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

Preview Lab → · Contrast checker → · Palette generator →

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