#391B7D#391B7D

#391B7D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.152 H 289.3°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#391B7D
RGBrgb(57, 27, 125)
HSLhsl(258, 64%, 30%)
HSVhsv(258, 78%, 49%)
CMYKcmyk(54.4%, 78.4%, 0%, 51%)
CIE-LABlab(20.57, 38.98, -50.06)
CIE-LCHlch(20.57, 63.44, 307.91°)
OKLaboklab(33.28% 0.0504 -0.1439)
OKLCHoklch(33.28% 0.152 289.3)
XYZxyz(5.7799, 3.1341, 19.6985)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B7D #5F7D1B
analogous
#1B2E7D #391B7D #6A1B7D
triadic
#391B7D #7D391B #1B7D39
tetradic
#391B7D #7D1B2E #5F7D1B #1B7D6A
square
#391B7D #7D1B2E #5F7D1B #1B7D6A
split-complementary
#391B7D #7D6A1B #2E7D1B
monochromatic
#0B0519 #22104B #391B7D #5026AF #6C3DD5

Accessibility & contrast

On white

12.91
#391B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#391B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B7D
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B7D#FFFFFF#000000##FFFFFF
##391B7D1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#1F364B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #391b7d;
/* rgb */ color: rgb(57, 27, 125);
/* oklch */ color: oklch(33.3% 0.152 289.3);
Tailwind
colors: {
  custom: {
    50: '#785ba4',
    500: '#391b7d',
    950: '#000000',
  },
}
SCSS
$custom: #391b7d;
$custom-light: #785ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#391b7d",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 258.367,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33279,
    "c": 0.15247,
    "h": 289.3
  },
  "luminance": 0.03134
}

Semantic roles & 50–950 ramp

primary
#391B7D
secondary
#8FB143
accent
#E740B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #391B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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