#391B8E#391B8E

#391B8E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.173 H 285.2°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#391B8E
RGBrgb(57, 27, 142)
HSLhsl(256, 68%, 33%)
HSVhsv(256, 81%, 56%)
CMYKcmyk(59.9%, 81%, 0%, 44.3%)
CIE-LABlab(22.32, 43.99, -57.87)
CIE-LCHlch(22.32, 72.69, 307.24°)
OKLaboklab(35.03% 0.0452 -0.1667)
OKLCHoklch(35.03% 0.173 285.2)
XYZxyz(6.9603, 3.6063, 25.9153)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B8E #708E1B
analogous
#1B378E #391B8E #721B8E
triadic
#391B8E #8E391B #1B8E39
tetradic
#391B8E #8E1B37 #708E1B #1B8E72
square
#391B8E #8E1B37 #708E1B #1B8E72
split-complementary
#391B8E #8E721B #378E1B
monochromatic
#100727 #24115B #391B8E #4E25C1 #6E47DC

Accessibility & contrast

On white

12.20
#391B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#391B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B8E
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B8E#FFFFFF#000000##FFFFFF
##391B8E1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#073D55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #391b8e;
/* rgb */ color: rgb(57, 27, 142);
/* oklch */ color: oklch(35.0% 0.173 285.2);
Tailwind
colors: {
  custom: {
    50: '#7b5cb0',
    500: '#391b8e',
    950: '#000000',
  },
}
SCSS
$custom: #391b8e;
$custom-light: #7b5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#391b8e",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 255.652,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35029,
    "c": 0.17274,
    "h": 285.2
  },
  "luminance": 0.03607
}

Semantic roles & 50–950 ramp

primary
#391B8E
secondary
#9FBE47
accent
#EB3DBE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #391B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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