#391771#391771

#391771 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.142 H 293.7°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#391771
RGBrgb(57, 23, 113)
HSLhsl(263, 66%, 27%)
HSVhsv(263, 80%, 44%)
CMYKcmyk(49.6%, 79.6%, 0%, 55.7%)
CIE-LABlab(18.69, 37.49, -45.45)
CIE-LCHlch(18.69, 58.91, 309.52°)
OKLaboklab(31.6% 0.0573 -0.1304)
OKLCHoklch(31.6% 0.142 293.7)
XYZxyz(4.9736, 2.6747, 15.8738)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391771 #4F7117
analogous
#172271 #391771 #661771
triadic
#391771 #713917 #177139
tetradic
#391771 #711722 #4F7117 #177166
square
#391771 #711722 #4F7117 #177166
split-complementary
#391771 #716617 #227117
monochromatic
#0D0519 #1F0D3E #391771 #5321A4 #6D2ED4

Accessibility & contrast

On white

13.68
#391771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#391771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391771
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391771#FFFFFF#000000##FFFFFF
##3917711.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#283043
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #391771;
/* rgb */ color: rgb(57, 23, 113);
/* oklch */ color: oklch(31.6% 0.142 293.7);
Tailwind
colors: {
  custom: {
    50: '#76589b',
    500: '#391771',
    950: '#000000',
  },
}
SCSS
$custom: #391771;
$custom-light: #76589b;
$custom-dark: #000000;
JSON
{
  "hex": "#391771",
  "rgb": {
    "r": 57,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 262.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31599,
    "c": 0.14241,
    "h": 293.7
  },
  "luminance": 0.02675
}

Semantic roles & 50–950 ramp

primary
#391771
secondary
#7FA73D
accent
#E93FA9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #391771

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

Preview Lab → · Contrast checker → · Palette generator →

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