#391F75#391F75

#391F75 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.138 H 290.7°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#391F75
RGBrgb(57, 31, 117)
HSLhsl(258, 58%, 29%)
HSVhsv(258, 74%, 46%)
CMYKcmyk(51.3%, 73.5%, 0%, 54.1%)
CIE-LABlab(20.57, 34.42, -44.95)
CIE-LCHlch(20.57, 56.62, 307.45°)
OKLaboklab(33.04% 0.0488 -0.1289)
OKLCHoklch(33.04% 0.138 290.7)
XYZxyz(5.3873, 3.1340, 17.1472)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F75 #5B751F
analogous
#1F3075 #391F75 #641F75
triadic
#391F75 #75391F #1F7539
tetradic
#391F75 #751F30 #5B751F #1F7564
square
#391F75 #751F30 #5B751F #1F7564
split-complementary
#391F75 #75641F #30751F
monochromatic
#0C0618 #211245 #391F75 #512CA5 #6C42CD

Accessibility & contrast

On white

12.91
#391F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#391F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F75
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F75#FFFFFF#000000##FFFFFF
##391F751.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003378
Deuteranopia (green-blind)
#003073
Tritanopia (blue-blind)
#253547
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #391f75;
/* rgb */ color: rgb(57, 31, 117);
/* oklch */ color: oklch(33.0% 0.138 290.7);
Tailwind
colors: {
  custom: {
    50: '#765d9e',
    500: '#391f75',
    950: '#000000',
  },
}
SCSS
$custom: #391f75;
$custom-light: #765d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#391f75",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 117
  },
  "hsl": {
    "h": 258.14,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33044,
    "c": 0.13786,
    "h": 290.7
  },
  "luminance": 0.03134
}

Semantic roles & 50–950 ramp

primary
#391F75
secondary
#8BA947
accent
#E146B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #391F75

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

Preview Lab → · Contrast checker → · Palette generator →

#391F75 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva