#391971#391971

#391971 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.140 H 293.3°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#391971
RGBrgb(57, 25, 113)
HSLhsl(262, 64%, 27%)
HSVhsv(262, 78%, 44%)
CMYKcmyk(49.6%, 77.9%, 0%, 55.7%)
CIE-LABlab(19.04, 36.48, -44.87)
CIE-LCHlch(19.04, 57.83, 309.11°)
OKLaboklab(31.85% 0.0555 -0.1287)
OKLCHoklch(31.85% 0.14 293.3)
XYZxyz(5.0148, 2.7572, 15.8876)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391971 #517119
analogous
#192571 #391971 #651971
triadic
#391971 #713919 #197139
tetradic
#391971 #711925 #517119 #197165
square
#391971 #711925 #517119 #197165
split-complementary
#391971 #716519 #257119
monochromatic
#0D0619 #200E3F #391971 #5224A3 #6C33D2

Accessibility & contrast

On white

13.54
#391971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#391971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391971
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391971#FFFFFF#000000##FFFFFF
##3919711.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#283144
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #391971;
/* rgb */ color: rgb(57, 25, 113);
/* oklch */ color: oklch(31.8% 0.140 293.3);
Tailwind
colors: {
  custom: {
    50: '#76599b',
    500: '#391971',
    950: '#000000',
  },
}
SCSS
$custom: #391971;
$custom-light: #76599b;
$custom-dark: #000000;
JSON
{
  "hex": "#391971",
  "rgb": {
    "r": 57,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 261.818,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31847,
    "c": 0.14015,
    "h": 293.3
  },
  "luminance": 0.02757
}

Semantic roles & 50–950 ramp

primary
#391971
secondary
#81A640
accent
#E741AB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #391971

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

Preview Lab → · Contrast checker → · Palette generator →

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