#391F88#391F88

#391F88 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.162 H 285.8°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#391F88
RGBrgb(57, 31, 136)
HSLhsl(255, 63%, 33%)
HSVhsv(255, 77%, 53%)
CMYKcmyk(58.1%, 77.2%, 0%, 46.7%)
CIE-LABlab(22.40, 40.21, -54.00)
CIE-LCHlch(22.40, 67.33, 306.67°)
OKLaboklab(34.89% 0.0441 -0.1555)
OKLCHoklch(34.89% 0.162 285.8)
XYZxyz(6.6199, 3.6270, 23.6390)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391F88 #6E881F
analogous
#1F3A88 #391F88 #6D1F88
triadic
#391F88 #88391F #1F8839
tetradic
#391F88 #881F3A #6E881F #1F886D
square
#391F88 #881F3A #6E881F #1F886D
split-complementary
#391F88 #886D1F #3A881F
monochromatic
#0F0824 #241456 #391F88 #4E2ABA #6E4BD6

Accessibility & contrast

On white

12.17
#391F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#391F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391F88
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391F88#FFFFFF#000000##FFFFFF
##391F881.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#133C52
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #391f88;
/* rgb */ color: rgb(57, 31, 136);
/* oklch */ color: oklch(34.9% 0.162 285.8);
Tailwind
colors: {
  custom: {
    50: '#795eac',
    500: '#391f88',
    950: '#000000',
  },
}
SCSS
$custom: #391f88;
$custom-light: #795eac;
$custom-dark: #000000;
JSON
{
  "hex": "#391f88",
  "rgb": {
    "r": 57,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 254.857,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34893,
    "c": 0.16162,
    "h": 285.8
  },
  "luminance": 0.03627
}

Semantic roles & 50–950 ramp

primary
#391F88
secondary
#9DB94A
accent
#E642BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391F88

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

Preview Lab → · Contrast checker → · Palette generator →

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