#391581#391581

#391581 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.163 H 289.2°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#391581
RGBrgb(57, 21, 129)
HSLhsl(260, 72%, 29%)
HSVhsv(260, 84%, 51%)
CMYKcmyk(55.8%, 83.7%, 0%, 49.4%)
CIE-LABlab(20.01, 42.96, -53.53)
CIE-LCHlch(20.01, 68.63, 308.75°)
OKLaboklab(33.01% 0.0535 -0.154)
OKLCHoklch(33.01% 0.163 289.2)
XYZxyz(5.9168, 2.9909, 21.0302)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391581 #5D8115
analogous
#152781 #391581 #6F1581
triadic
#391581 #813915 #158139
tetradic
#391581 #811527 #5D8115 #15816F
square
#391581 #811527 #5D8115 #15816F
split-complementary
#391581 #816F15 #278115
monochromatic
#0C041A #220C4C #391581 #501EB6 #6C33DE

Accessibility & contrast

On white

13.14
#391581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#391581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391581
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391581#FFFFFF#000000##FFFFFF
##3915811.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#1C354C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #391581;
/* rgb */ color: rgb(57, 21, 129);
/* oklch */ color: oklch(33.0% 0.163 289.2);
Tailwind
colors: {
  custom: {
    50: '#7958a7',
    500: '#391581',
    950: '#000000',
  },
}
SCSS
$custom: #391581;
$custom-light: #7958a7;
$custom-dark: #000000;
JSON
{
  "hex": "#391581",
  "rgb": {
    "r": 57,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 260,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33009,
    "c": 0.16303,
    "h": 289.2
  },
  "luminance": 0.02991
}

Semantic roles & 50–950 ramp

primary
#391581
secondary
#8DB63C
accent
#EF39B2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391581

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

Preview Lab → · Contrast checker → · Palette generator →

#391581 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva