#391B74#391B74

#391B74 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.141 H 291.9°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#391B74
RGBrgb(57, 27, 116)
HSLhsl(260, 62%, 28%)
HSVhsv(260, 77%, 45%)
CMYKcmyk(50.9%, 76.7%, 0%, 54.5%)
CIE-LABlab(19.70, 36.32, -45.74)
CIE-LCHlch(19.70, 58.40, 308.45°)
OKLaboklab(32.4% 0.0529 -0.1312)
OKLCHoklch(32.4% 0.141 291.9)
XYZxyz(5.2308, 2.9145, 16.8066)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391B74 #56741B
analogous
#1B2974 #391B74 #651B74
triadic
#391B74 #74391B #1B7439
tetradic
#391B74 #741B29 #56741B #1B7465
square
#391B74 #741B29 #56741B #1B7465
split-complementary
#391B74 #74651B #29741B
monochromatic
#0C0619 #210F42 #391B74 #5127A6 #6C39D1

Accessibility & contrast

On white

13.27
#391B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#391B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391B74
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391B74#FFFFFF#000000##FFFFFF
##391B741.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002E72
Tritanopia (blue-blind)
#263346
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #391b74;
/* rgb */ color: rgb(57, 27, 116);
/* oklch */ color: oklch(32.4% 0.141 291.9);
Tailwind
colors: {
  custom: {
    50: '#765b9d',
    500: '#391b74',
    950: '#000000',
  },
}
SCSS
$custom: #391b74;
$custom-light: #765b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#391b74",
  "rgb": {
    "r": 57,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 260.225,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32395,
    "c": 0.14149,
    "h": 291.9
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#391B74
secondary
#86A942
accent
#E542AE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #391B74

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

Preview Lab → · Contrast checker → · Palette generator →

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