#391988#391988

#391988 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.168 H 286.8°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#391988
RGBrgb(57, 25, 136)
HSLhsl(257, 69%, 32%)
HSVhsv(257, 82%, 53%)
CMYKcmyk(58.1%, 81.6%, 0%, 46.7%)
CIE-LABlab(21.37, 43.18, -55.70)
CIE-LCHlch(21.37, 70.47, 307.78°)
OKLaboklab(34.17% 0.0484 -0.1604)
OKLCHoklch(34.17% 0.168 286.8)
XYZxyz(6.4776, 3.3423, 23.5916)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391988 #688819
analogous
#193188 #391988 #711988
triadic
#391988 #883919 #198839
tetradic
#391988 #881931 #688819 #198871
square
#391988 #881931 #688819 #198871
split-complementary
#391988 #887119 #318819
monochromatic
#0E0621 #230F54 #391988 #4F23BC #6D40DC

Accessibility & contrast

On white

12.59
#391988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#391988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391988
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391988#FFFFFF#000000##FFFFFF
##3919881.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#133A51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #391988;
/* rgb */ color: rgb(57, 25, 136);
/* oklch */ color: oklch(34.2% 0.168 286.8);
Tailwind
colors: {
  custom: {
    50: '#7a5bac',
    500: '#391988',
    950: '#000000',
  },
}
SCSS
$custom: #391988;
$custom-light: #7a5bac;
$custom-dark: #000000;
JSON
{
  "hex": "#391988",
  "rgb": {
    "r": 57,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 257.297,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34172,
    "c": 0.16754,
    "h": 286.8
  },
  "luminance": 0.03343
}

Semantic roles & 50–950 ramp

primary
#391988
secondary
#98BB41
accent
#EC3CB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391988

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

Preview Lab → · Contrast checker → · Palette generator →

#391988 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva