#391F8A#391F8A

#391F8A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.164 H 285.4°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#391F8A
RGBrgb(57, 31, 138)
HSLhsl(255, 63%, 33%)
HSVhsv(255, 78%, 54%)
CMYKcmyk(58.7%, 77.5%, 0%, 45.9%)
CIE-LABlab(22.60, 40.82, -54.92)
CIE-LCHlch(22.60, 68.43, 306.62°)
OKLaboklab(35.1% 0.0436 -0.1582)
OKLCHoklch(35.1% 0.164 285.4)
XYZxyz(6.7634, 3.6844, 24.3946)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F8A #708A1F
analogous
#1F3B8A #391F8A #6E1F8A
triadic
#391F8A #8A391F #1F8A39
tetradic
#391F8A #8A1F3B #708A1F #1F8A6E
square
#391F8A #8A1F3B #708A1F #1F8A6E
split-complementary
#391F8A #8A6E1F #3B8A1F
monochromatic
#100926 #241458 #391F8A #4E2ABC #6E4CD7

Accessibility & contrast

On white

12.09
#391F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#391F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F8A
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F8A#FFFFFF#000000##FFFFFF
##391F8A1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#0F3D53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #391f8a;
/* rgb */ color: rgb(57, 31, 138);
/* oklch */ color: oklch(35.1% 0.164 285.4);
Tailwind
colors: {
  custom: {
    50: '#7a5ead',
    500: '#391f8a',
    950: '#000000',
  },
}
SCSS
$custom: #391f8a;
$custom-light: #7a5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#391f8a",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 254.579,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35096,
    "c": 0.16406,
    "h": 285.4
  },
  "luminance": 0.03685
}

Semantic roles & 50–950 ramp

primary
#391F8A
secondary
#9FBA4B
accent
#E641BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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