#371786#371786

#371786 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.167 H 286.4°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#371786
RGBrgb(55, 23, 134)
HSLhsl(257, 71%, 31%)
HSVhsv(257, 83%, 53%)
CMYKcmyk(59%, 82.8%, 0%, 47.5%)
CIE-LABlab(20.62, 43.26, -55.68)
CIE-LCHlch(20.62, 70.51, 307.84°)
OKLaboklab(33.54% 0.0472 -0.1604)
OKLCHoklch(33.54% 0.167 286.4)
XYZxyz(6.1837, 3.1459, 22.8310)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371786 #668617
analogous
#172E86 #371786 #6E1786
triadic
#371786 #863717 #178637
tetradic
#371786 #86172E #668617 #17866E
square
#371786 #86172E #668617 #17866E
split-complementary
#371786 #866E17 #2E8617
monochromatic
#0C051E #220E52 #371786 #4C20BA #693ADD

Accessibility & contrast

On white

12.89
#371786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#371786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371786
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371786#FFFFFF#000000##FFFFFF
##3717861.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#0F384F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371786;
/* rgb */ color: rgb(55, 23, 134);
/* oklch */ color: oklch(33.5% 0.167 286.4);
Tailwind
colors: {
  custom: {
    50: '#7859aa',
    500: '#371786',
    950: '#000000',
  },
}
SCSS
$custom: #371786;
$custom-light: #7859aa;
$custom-dark: #000000;
JSON
{
  "hex": "#371786",
  "rgb": {
    "r": 55,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 257.297,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33539,
    "c": 0.16716,
    "h": 286.4
  },
  "luminance": 0.03146
}

Semantic roles & 50–950 ramp

primary
#371786
secondary
#96BA3F
accent
#ED3ABA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371786

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

Preview Lab → · Contrast checker → · Palette generator →

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