#391E8F#391E8F

#391E8F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.171 H 284.5°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#391E8F
RGBrgb(57, 30, 143)
HSLhsl(254, 65%, 34%)
HSVhsv(254, 79%, 56%)
CMYKcmyk(60.1%, 79%, 0%, 43.9%)
CIE-LABlab(22.93, 42.84, -57.48)
CIE-LCHlch(22.93, 71.69, 306.69°)
OKLaboklab(35.49% 0.0429 -0.1656)
OKLCHoklch(35.49% 0.171 284.5)
XYZxyz(7.1080, 3.7811, 26.3365)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391E8F #748F1E
analogous
#1E3C8F #391E8F #721E8F
triadic
#391E8F #8F391E #1E8F39
tetradic
#391E8F #8F1E3C #748F1E #1E8F72
square
#391E8F #8F1E3C #748F1E #1E8F72
split-complementary
#391E8F #8F721E #3C8F1E
monochromatic
#11092A #25135C #391E8F #4D29C2 #6F4EDA

Accessibility & contrast

On white

11.96
#391E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#391E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391E8F
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391E8F#FFFFFF#000000##FFFFFF
##391E8F1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#043F56
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #391e8f;
/* rgb */ color: rgb(57, 30, 143);
/* oklch */ color: oklch(35.5% 0.171 284.5);
Tailwind
colors: {
  custom: {
    50: '#7b5eb1',
    500: '#391e8f',
    950: '#000000',
  },
}
SCSS
$custom: #391e8f;
$custom-light: #7b5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#391e8f",
  "rgb": {
    "r": 57,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 254.336,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35485,
    "c": 0.1711,
    "h": 284.5
  },
  "luminance": 0.03782
}

Semantic roles & 50–950 ramp

primary
#391E8F
secondary
#A2BC4C
accent
#E840C0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #391E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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