#391E8D#391E8D

#391E8D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.169 H 284.9°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#391E8D
RGBrgb(57, 30, 141)
HSLhsl(255, 65%, 34%)
HSVhsv(255, 79%, 55%)
CMYKcmyk(59.6%, 78.7%, 0%, 44.7%)
CIE-LABlab(22.73, 42.23, -56.58)
CIE-LCHlch(22.73, 70.61, 306.74°)
OKLaboklab(35.28% 0.0434 -0.163)
OKLCHoklch(35.28% 0.169 284.9)
XYZxyz(6.9579, 3.7211, 25.5457)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391E8D #728D1E
analogous
#1E3A8D #391E8D #701E8D
triadic
#391E8D #8D391E #1E8D39
tetradic
#391E8D #8D1E3A #728D1E #1E8D70
square
#391E8D #8D1E3A #728D1E #1E8D70
split-complementary
#391E8D #8D701E #3A8D1E
monochromatic
#100928 #25135B #391E8D #4D29BF #6F4CD9

Accessibility & contrast

On white

12.04
#391E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#391E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391E8D
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391E8D#FFFFFF#000000##FFFFFF
##391E8D1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#093E55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #391e8d;
/* rgb */ color: rgb(57, 30, 141);
/* oklch */ color: oklch(35.3% 0.169 284.9);
Tailwind
colors: {
  custom: {
    50: '#7a5eaf',
    500: '#391e8d',
    950: '#000000',
  },
}
SCSS
$custom: #391e8d;
$custom-light: #7a5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#391e8d",
  "rgb": {
    "r": 57,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 254.595,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35278,
    "c": 0.1687,
    "h": 284.9
  },
  "luminance": 0.03721
}

Semantic roles & 50–950 ramp

primary
#391E8D
secondary
#A0BC4B
accent
#E840BF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #391E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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