#391156#391156

#391156 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.4% C 0.118 H 306.6°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#391156
RGBrgb(57, 17, 86)
HSLhsl(275, 67%, 20%)
HSVhsv(275, 80%, 34%)
CMYKcmyk(33.7%, 80.2%, 0%, 66.3%)
CIE-LABlab(15.18, 32.99, -33.32)
CIE-LCHlch(15.18, 46.89, 314.71°)
OKLaboklab(28.36% 0.0704 -0.0947)
OKLCHoklch(28.36% 0.118 306.6)
XYZxyz(3.5671, 1.9427, 8.9893)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391156 #2E5611
analogous
#171156 #391156 #561150
triadic
#391156 #563911 #115639
tetradic
#391156 #561711 #2E5611 #115056
square
#391156 #561711 #2E5611 #115056
split-complementary
#391156 #505611 #115617
monochromatic
#11051A #170723 #391156 #5B1B89 #7D25BC

Accessibility & contrast

On white

15.12
#391156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#391156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391156
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391156#FFFFFF#000000##FFFFFF
##3911561.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002655
Tritanopia (blue-blind)
#342232
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #391156;
/* rgb */ color: rgb(57, 17, 86);
/* oklch */ color: oklch(28.4% 0.118 306.6);
Tailwind
colors: {
  custom: {
    50: '#735486',
    500: '#391156',
    950: '#000000',
  },
}
SCSS
$custom: #391156;
$custom-light: #735486;
$custom-dark: #000000;
JSON
{
  "hex": "#391156",
  "rgb": {
    "r": 57,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 274.783,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28361,
    "c": 0.118,
    "h": 306.6
  },
  "luminance": 0.01943
}

Semantic roles & 50–950 ramp

primary
#391156
secondary
#5A8F34
accent
#EA3E86
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #391156

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

Preview Lab → · Contrast checker → · Palette generator →

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