#391157#391157

#391157 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.119 H 306.1°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#391157
RGBrgb(57, 17, 87)
HSLhsl(274, 67%, 20%)
HSVhsv(274, 80%, 34%)
CMYKcmyk(34.5%, 80.5%, 0%, 65.9%)
CIE-LABlab(15.27, 33.25, -33.86)
CIE-LCHlch(15.27, 47.45, 314.48°)
OKLaboklab(28.45% 0.0702 -0.0963)
OKLCHoklch(28.45% 0.119 306.1)
XYZxyz(3.6077, 1.9589, 9.2030)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391157 #2F5711
analogous
#161157 #391157 #571152
triadic
#391157 #573911 #115739
tetradic
#391157 #571611 #2F5711 #115257
square
#391157 #571611 #2F5711 #115257
split-complementary
#391157 #525711 #115716
monochromatic
#11051A #170724 #391157 #5B1B8A #7C25BD

Accessibility & contrast

On white

15.09
#391157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391157
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391157#FFFFFF#000000##FFFFFF
##3911571.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#342233
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #391157;
/* rgb */ color: rgb(57, 17, 87);
/* oklch */ color: oklch(28.4% 0.119 306.1);
Tailwind
colors: {
  custom: {
    50: '#735487',
    500: '#391157',
    950: '#000000',
  },
}
SCSS
$custom: #391157;
$custom-light: #735487;
$custom-dark: #000000;
JSON
{
  "hex": "#391157",
  "rgb": {
    "r": 57,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 274.286,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28449,
    "c": 0.11913,
    "h": 306.1
  },
  "luminance": 0.01959
}

Semantic roles & 50–950 ramp

primary
#391157
secondary
#5B9034
accent
#EA3E88
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #391157

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

Preview Lab → · Contrast checker → · Palette generator →

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