#371584#371584

#371584 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.167 H 287.2°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#371584
RGBrgb(55, 21, 132)
HSLhsl(258, 73%, 30%)
HSVhsv(258, 84%, 52%)
CMYKcmyk(58.3%, 84.1%, 0%, 48.2%)
CIE-LABlab(20.10, 43.56, -55.28)
CIE-LCHlch(20.10, 70.38, 308.24°)
OKLaboklab(33.12% 0.0491 -0.1592)
OKLCHoklch(33.12% 0.167 287.2)
XYZxyz(6.0073, 3.0142, 22.0906)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371584 #628415
analogous
#152B84 #371584 #6E1584
triadic
#371584 #843715 #158437
tetradic
#371584 #84152B #628415 #15846E
square
#371584 #84152B #628415 #15846E
split-complementary
#371584 #846E15 #2B8415
monochromatic
#0B041A #210D4F #371584 #4D1DB9 #6935DF

Accessibility & contrast

On white

13.10
#371584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#371584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371584
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371584#FFFFFF#000000##FFFFFF
##3715841.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#12374E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371584;
/* rgb */ color: rgb(55, 21, 132);
/* oklch */ color: oklch(33.1% 0.167 287.2);
Tailwind
colors: {
  custom: {
    50: '#7858a9',
    500: '#371584',
    950: '#000000',
  },
}
SCSS
$custom: #371584;
$custom-light: #7858a9;
$custom-dark: #000000;
JSON
{
  "hex": "#371584",
  "rgb": {
    "r": 55,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 258.378,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.33116,
    "c": 0.16658,
    "h": 287.2
  },
  "luminance": 0.03014
}

Semantic roles & 50–950 ramp

primary
#371584
secondary
#92B93C
accent
#EF39B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371584

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

Preview Lab → · Contrast checker → · Palette generator →

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