#391F99#391F99

#391F99 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.182 H 282.4°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#391F99
RGBrgb(57, 31, 153)
HSLhsl(253, 66%, 36%)
HSVhsv(253, 80%, 60%)
CMYKcmyk(62.7%, 79.7%, 0%, 40%)
CIE-LABlab(24.16, 45.34, -61.64)
CIE-LCHlch(24.16, 76.52, 306.34°)
OKLaboklab(36.65% 0.0392 -0.1778)
OKLCHoklch(36.65% 0.182 282.4)
XYZxyz(7.9253, 4.1492, 30.5141)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F99 #7F991F
analogous
#1F4299 #391F99 #761F99
triadic
#391F99 #99391F #1F9939
tetradic
#391F99 #991F42 #7F991F #1F9976
square
#391F99 #991F42 #7F991F #1F9976
split-complementary
#391F99 #99761F #42991F
monochromatic
#130A33 #261566 #391F99 #4C29CC #7256DD

Accessibility & contrast

On white

11.48
#391F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#391F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F99
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F99#FFFFFF#000000##FFFFFF
##391F991.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003597
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #391f99;
/* rgb */ color: rgb(57, 31, 153);
/* oklch */ color: oklch(36.7% 0.182 282.4);
Tailwind
colors: {
  custom: {
    50: '#7c5fb8',
    500: '#391f99',
    950: '#000000',
  },
}
SCSS
$custom: #391f99;
$custom-light: #7c5fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#391f99",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 252.787,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36653,
    "c": 0.18206,
    "h": 282.4
  },
  "luminance": 0.0415
}

Semantic roles & 50–950 ramp

primary
#391F99
secondary
#A9C054
accent
#E93FC5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #391F99

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

Preview Lab → · Contrast checker → · Palette generator →

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