#391B71#391B71

#391B71 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.138 H 292.9°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#391B71
RGBrgb(57, 27, 113)
HSLhsl(261, 61%, 27%)
HSVhsv(261, 76%, 44%)
CMYKcmyk(49.6%, 76.1%, 0%, 55.7%)
CIE-LABlab(19.42, 35.43, -44.26)
CIE-LCHlch(19.42, 56.70, 308.67°)
OKLaboklab(32.11% 0.0536 -0.1269)
OKLCHoklch(32.11% 0.138 292.9)
XYZxyz(5.0591, 2.8458, 15.9023)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B71 #53711B
analogous
#1B2871 #391B71 #641B71
triadic
#391B71 #71391B #1B7139
tetradic
#391B71 #711B28 #53711B #1B7164
square
#391B71 #711B28 #53711B #1B7164
split-complementary
#391B71 #71641B #28711B
monochromatic
#0C0619 #200F40 #391B71 #5227A2 #6C37CF

Accessibility & contrast

On white

13.38
#391B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#391B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B71
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B71#FFFFFF#000000##FFFFFF
##391B711.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#283244
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #391b71;
/* rgb */ color: rgb(57, 27, 113);
/* oklch */ color: oklch(32.1% 0.138 292.9);
Tailwind
colors: {
  custom: {
    50: '#765a9b',
    500: '#391b71',
    950: '#000000',
  },
}
SCSS
$custom: #391b71;
$custom-light: #765a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#391b71",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 260.93,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32109,
    "c": 0.13778,
    "h": 292.9
  },
  "luminance": 0.02846
}

Semantic roles & 50–950 ramp

primary
#391B71
secondary
#83A642
accent
#E543AC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #391B71

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

Preview Lab → · Contrast checker → · Palette generator →

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