#391B7B#391B7B

#391B7B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.150 H 289.9°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#391B7B
RGBrgb(57, 27, 123)
HSLhsl(259, 64%, 29%)
HSVhsv(259, 78%, 48%)
CMYKcmyk(53.7%, 78%, 0%, 51.8%)
CIE-LABlab(20.38, 38.39, -49.11)
CIE-LCHlch(20.38, 62.33, 308.01°)
OKLaboklab(33.08% 0.051 -0.1411)
OKLCHoklch(33.08% 0.15 289.9)
XYZxyz(5.6534, 3.0835, 19.0323)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B7B #5D7B1B
analogous
#1B2D7B #391B7B #691B7B
triadic
#391B7B #7B391B #1B7B39
tetradic
#391B7B #7B1B2D #5D7B1B #1B7B69
square
#391B7B #7B1B2D #5D7B1B #1B7B69
split-complementary
#391B7B #7B691B #2D7B1B
monochromatic
#0C0619 #221049 #391B7B #5026AD #6C3CD4

Accessibility & contrast

On white

12.99
#391B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#391B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B7B
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B7B#FFFFFF#000000##FFFFFF
##391B7B1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#21354A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #391b7b;
/* rgb */ color: rgb(57, 27, 123);
/* oklch */ color: oklch(33.1% 0.150 289.9);
Tailwind
colors: {
  custom: {
    50: '#775ba2',
    500: '#391b7b',
    950: '#000000',
  },
}
SCSS
$custom: #391b7b;
$custom-light: #775ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#391b7b",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 258.75,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3308,
    "c": 0.15004,
    "h": 289.9
  },
  "luminance": 0.03084
}

Semantic roles & 50–950 ramp

primary
#391B7B
secondary
#8DAF43
accent
#E741B3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #391B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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