#391783#391783

#391783 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.164 H 288.4°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#391783
RGBrgb(57, 23, 131)
HSLhsl(259, 70%, 30%)
HSVhsv(259, 82%, 51%)
CMYKcmyk(56.5%, 82.4%, 0%, 48.6%)
CIE-LABlab(20.52, 42.65, -53.94)
CIE-LCHlch(20.52, 68.76, 308.33°)
OKLaboklab(33.43% 0.0515 -0.1552)
OKLCHoklch(33.43% 0.164 288.4)
XYZxyz(6.0893, 3.1210, 21.7499)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391783 #618317
analogous
#172B83 #391783 #6F1783
triadic
#391783 #833917 #178339
tetradic
#391783 #83172B #618317 #17836F
square
#391783 #83172B #618317 #17836F
split-complementary
#391783 #836F17 #2B8317
monochromatic
#0C051B #220E4F #391783 #5020B7 #6C38DC

Accessibility & contrast

On white

12.93
#391783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#391783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391783
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391783#FFFFFF#000000##FFFFFF
##3917831.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#1A374D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #391783;
/* rgb */ color: rgb(57, 23, 131);
/* oklch */ color: oklch(33.4% 0.164 288.4);
Tailwind
colors: {
  custom: {
    50: '#7959a8',
    500: '#391783',
    950: '#000000',
  },
}
SCSS
$custom: #391783;
$custom-light: #7959a8;
$custom-dark: #000000;
JSON
{
  "hex": "#391783",
  "rgb": {
    "r": 57,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 258.889,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33429,
    "c": 0.16355,
    "h": 288.4
  },
  "luminance": 0.03121
}

Semantic roles & 50–950 ramp

primary
#391783
secondary
#91B73F
accent
#ED3BB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391783

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

Preview Lab → · Contrast checker → · Palette generator →

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