#391E8E#391E8E

#391E8E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.170 H 284.7°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#391E8E
RGBrgb(57, 30, 142)
HSLhsl(254, 65%, 34%)
HSVhsv(254, 79%, 56%)
CMYKcmyk(59.9%, 78.9%, 0%, 44.3%)
CIE-LABlab(22.83, 42.53, -57.03)
CIE-LCHlch(22.83, 71.15, 306.71°)
OKLaboklab(35.38% 0.0431 -0.1643)
OKLCHoklch(35.38% 0.17 284.7)
XYZxyz(7.0326, 3.7510, 25.9394)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391E8E #738E1E
analogous
#1E3B8E #391E8E #711E8E
triadic
#391E8E #8E391E #1E8E39
tetradic
#391E8E #8E1E3B #738E1E #1E8E71
square
#391E8E #8E1E3B #738E1E #1E8E71
split-complementary
#391E8E #8E711E #3B8E1E
monochromatic
#100929 #25135B #391E8E #4D29C1 #6F4DD9

Accessibility & contrast

On white

12.00
#391E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#391E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391E8E
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391E8E#FFFFFF#000000##FFFFFF
##391E8E1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#073E55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #391e8e;
/* rgb */ color: rgb(57, 30, 142);
/* oklch */ color: oklch(35.4% 0.170 284.7);
Tailwind
colors: {
  custom: {
    50: '#7a5eb0',
    500: '#391e8e',
    950: '#000000',
  },
}
SCSS
$custom: #391e8e;
$custom-light: #7a5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#391e8e",
  "rgb": {
    "r": 57,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 254.464,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35381,
    "c": 0.1699,
    "h": 284.7
  },
  "luminance": 0.03751
}

Semantic roles & 50–950 ramp

primary
#391E8E
secondary
#A1BC4C
accent
#E840BF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #391E8E

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

Preview Lab → · Contrast checker → · Palette generator →

#391E8E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva