#391161#391161

#391161 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.130 H 301.2°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#391161
RGBrgb(57, 17, 97)
HSLhsl(270, 70%, 22%)
HSVhsv(270, 82%, 38%)
CMYKcmyk(41.2%, 82.5%, 0%, 62%)
CIE-LABlab(16.17, 35.88, -39.08)
CIE-LCHlch(16.17, 53.06, 312.56°)
OKLaboklab(29.37% 0.0675 -0.1116)
OKLCHoklch(29.37% 0.13 301.2)
XYZxyz(4.0449, 2.1338, 11.5057)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391161 #396111
analogous
#111161 #391161 #611161
triadic
#391161 #613911 #116139
tetradic
#391161 #611111 #396111 #116161
square
#391161 #611111 #396111 #116161
split-complementary
#391161 #616111 #116111
monochromatic
#0F051A #1A082D #391161 #581A95 #7623C9

Accessibility & contrast

On white

14.72
#391161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#391161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391161
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391161#FFFFFF#000000##FFFFFF
##3911611.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#00285F
Tritanopia (blue-blind)
#302639
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #391161;
/* rgb */ color: rgb(57, 17, 97);
/* oklch */ color: oklch(29.4% 0.130 301.2);
Tailwind
colors: {
  custom: {
    50: '#74548f',
    500: '#391161',
    950: '#000000',
  },
}
SCSS
$custom: #391161;
$custom-light: #74548f;
$custom-dark: #000000;
JSON
{
  "hex": "#391161",
  "rgb": {
    "r": 57,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 270,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29366,
    "c": 0.13047,
    "h": 301.2
  },
  "luminance": 0.02134
}

Semantic roles & 50–950 ramp

primary
#391161
secondary
#679934
accent
#ED3B94
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #391161

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

Preview Lab → · Contrast checker → · Palette generator →

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