#391F9F#391F9F

#391F9F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.189 H 281.4°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#391F9F
RGBrgb(57, 31, 159)
HSLhsl(252, 67%, 37%)
HSVhsv(252, 81%, 62%)
CMYKcmyk(64.2%, 80.5%, 0%, 37.6%)
CIE-LABlab(24.80, 47.13, -64.25)
CIE-LCHlch(24.80, 79.68, 306.26°)
OKLaboklab(37.29% 0.0374 -0.1854)
OKLCHoklch(37.29% 0.189 281.4)
XYZxyz(8.4334, 4.3524, 33.1899)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F9F #859F1F
analogous
#1F459F #391F9F #791F9F
triadic
#391F9F #9F391F #1F9F39
tetradic
#391F9F #9F1F45 #859F1F #1F9F79
square
#391F9F #9F1F45 #859F1F #1F9F79
split-complementary
#391F9F #9F791F #459F1F
monochromatic
#140B39 #27156C #391F9F #4B29D2 #755ADF

Accessibility & contrast

On white

11.23
#391F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#391F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F9F
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F9F#FFFFFF#000000##FFFFFF
##391F9F1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #391f9f;
/* rgb */ color: rgb(57, 31, 159);
/* oklch */ color: oklch(37.3% 0.189 281.4);
Tailwind
colors: {
  custom: {
    50: '#7e5fbd',
    500: '#391f9f',
    950: '#000000',
  },
}
SCSS
$custom: #391f9f;
$custom-light: #7e5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#391f9f",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 252.188,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37294,
    "c": 0.18912,
    "h": 281.4
  },
  "luminance": 0.04353
}

Semantic roles & 50–950 ramp

primary
#391F9F
secondary
#ADC357
accent
#EA3EC7
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #391F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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