#391F8D#391F8D

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

Color values

HEX#391F8D
RGBrgb(57, 31, 141)
HSLhsl(254, 64%, 34%)
HSVhsv(254, 78%, 55%)
CMYKcmyk(59.6%, 78%, 0%, 44.7%)
CIE-LABlab(22.90, 41.73, -56.29)
CIE-LCHlch(22.90, 70.07, 306.55°)
OKLaboklab(35.4% 0.0427 -0.1622)
OKLCHoklch(35.4% 0.168 284.8)
XYZxyz(6.9836, 3.7725, 25.5543)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F8D #738D1F
analogous
#1F3C8D #391F8D #701F8D
triadic
#391F8D #8D391F #1F8D39
tetradic
#391F8D #8D1F3C #738D1F #1F8D70
square
#391F8D #8D1F3C #738D1F #1F8D70
split-complementary
#391F8D #8D701F #3C8D1F
monochromatic
#100929 #25145B #391F8D #4D2ABF #6F4ED8

Accessibility & contrast

On white

11.97
#391F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391F8D
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F8D#FFFFFF#000000##FFFFFF
##391F8D1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#093E55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #391f8d;
/* rgb */ color: rgb(57, 31, 141);
/* oklch */ color: oklch(35.4% 0.168 284.8);
Tailwind
colors: {
  custom: {
    50: '#7a5eaf',
    500: '#391f8d',
    950: '#000000',
  },
}
SCSS
$custom: #391f8d;
$custom-light: #7a5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#391f8d",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 254.182,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35402,
    "c": 0.1677,
    "h": 284.8
  },
  "luminance": 0.03773
}

Semantic roles & 50–950 ramp

primary
#391F8D
secondary
#A1BB4D
accent
#E741C0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #391F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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