#391F8E#391F8E

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

Color values

HEX#391F8E
RGBrgb(57, 31, 142)
HSLhsl(254, 64%, 34%)
HSVhsv(254, 78%, 56%)
CMYKcmyk(59.9%, 78.2%, 0%, 44.3%)
CIE-LABlab(23.01, 42.03, -56.74)
CIE-LCHlch(23.01, 70.61, 306.53°)
OKLaboklab(35.5% 0.0424 -0.1635)
OKLCHoklch(35.5% 0.169 284.6)
XYZxyz(7.0583, 3.8024, 25.9479)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F8E #748E1F
analogous
#1F3D8E #391F8E #711F8E
triadic
#391F8E #8E391F #1F8E39
tetradic
#391F8E #8E1F3D #748E1F #1F8E71
square
#391F8E #8E1F3D #748E1F #1F8E71
split-complementary
#391F8E #8E711F #3D8E1F
monochromatic
#11092A #25145C #391F8E #4D2AC0 #6F4FD9

Accessibility & contrast

On white

11.93
#391F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391F8E
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F8E#FFFFFF#000000##FFFFFF
##391F8E1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#063F55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #391f8e;
/* rgb */ color: rgb(57, 31, 142);
/* oklch */ color: oklch(35.5% 0.169 284.6);
Tailwind
colors: {
  custom: {
    50: '#7a5eb0',
    500: '#391f8e',
    950: '#000000',
  },
}
SCSS
$custom: #391f8e;
$custom-light: #7a5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#391f8e",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 254.054,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35505,
    "c": 0.16891,
    "h": 284.6
  },
  "luminance": 0.03803
}

Semantic roles & 50–950 ramp

primary
#391F8E
secondary
#A2BB4D
accent
#E741C0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #391F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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