#391984#391984

#391984 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.163 H 287.8°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#391984
RGBrgb(57, 25, 132)
HSLhsl(258, 68%, 31%)
HSVhsv(258, 81%, 52%)
CMYKcmyk(56.8%, 81.1%, 0%, 48.2%)
CIE-LABlab(20.95, 42.01, -53.88)
CIE-LCHlch(20.95, 68.32, 307.95°)
OKLaboklab(33.75% 0.0498 -0.1551)
OKLCHoklch(33.75% 0.163 287.8)
XYZxyz(6.1986, 3.2307, 22.1223)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391984 #648419
analogous
#192E84 #391984 #6E1984
triadic
#391984 #843919 #198439
tetradic
#391984 #84192E #648419 #19846E
square
#391984 #84192E #648419 #19846E
split-complementary
#391984 #846E19 #2E8419
monochromatic
#0D061D #230F51 #391984 #4F23B7 #6C3DDA

Accessibility & contrast

On white

12.76
#391984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#391984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391984
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391984#FFFFFF#000000##FFFFFF
##3919841.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#18384E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #391984;
/* rgb */ color: rgb(57, 25, 132);
/* oklch */ color: oklch(33.8% 0.163 287.8);
Tailwind
colors: {
  custom: {
    50: '#795aa9',
    500: '#391984',
    950: '#000000',
  },
}
SCSS
$custom: #391984;
$custom-light: #795aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#391984",
  "rgb": {
    "r": 57,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 257.944,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33754,
    "c": 0.16285,
    "h": 287.8
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#391984
secondary
#94B841
accent
#EB3DB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391984

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

Preview Lab → · Contrast checker → · Palette generator →

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