#391F9E#391F9E

#391F9E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.188 H 281.6°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#391F9E
RGBrgb(57, 31, 158)
HSLhsl(252, 67%, 37%)
HSVhsv(252, 80%, 62%)
CMYKcmyk(63.9%, 80.4%, 0%, 38%)
CIE-LABlab(24.70, 46.83, -63.82)
CIE-LCHlch(24.70, 79.16, 306.27°)
OKLaboklab(37.19% 0.0377 -0.1841)
OKLCHoklch(37.19% 0.188 281.6)
XYZxyz(8.3469, 4.3178, 32.7347)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F9E #849E1F
analogous
#1F459E #391F9E #781F9E
triadic
#391F9E #9E391F #1F9E39
tetradic
#391F9E #9E1F45 #849E1F #1F9E78
square
#391F9E #9E1F45 #849E1F #1F9E78
split-complementary
#391F9E #9E781F #459E1F
monochromatic
#140B38 #27156B #391F9E #4B29D1 #7459DE

Accessibility & contrast

On white

11.27
#391F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#391F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F9E
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F9E#FFFFFF#000000##FFFFFF
##391F9E1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA2
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #391f9e;
/* rgb */ color: rgb(57, 31, 158);
/* oklch */ color: oklch(37.2% 0.188 281.6);
Tailwind
colors: {
  custom: {
    50: '#7d5fbc',
    500: '#391f9e',
    950: '#000000',
  },
}
SCSS
$custom: #391f9e;
$custom-light: #7d5fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#391f9e",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 252.283,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37186,
    "c": 0.18795,
    "h": 281.6
  },
  "luminance": 0.04318
}

Semantic roles & 50–950 ramp

primary
#391F9E
secondary
#ACC256
accent
#EA3EC7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #391F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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