#371886#371886

#371886 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.166 H 286.3°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#371886
RGBrgb(55, 24, 134)
HSLhsl(257, 70%, 31%)
HSVhsv(257, 82%, 53%)
CMYKcmyk(59%, 82.1%, 0%, 47.5%)
CIE-LABlab(20.78, 42.80, -55.42)
CIE-LCHlch(20.78, 70.03, 307.68°)
OKLaboklab(33.65% 0.0465 -0.1596)
OKLCHoklch(33.65% 0.166 286.3)
XYZxyz(6.2040, 3.1864, 22.8378)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371886 #678618
analogous
#183086 #371886 #6E1886
triadic
#371886 #863718 #188637
tetradic
#371886 #861830 #678618 #18866E
square
#371886 #861830 #678618 #18866E
split-complementary
#371886 #866E18 #308618
monochromatic
#0C051E #220F52 #371886 #4C21BA #693CDC

Accessibility & contrast

On white

12.83
#371886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#371886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371886
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371886#FFFFFF#000000##FFFFFF
##3718861.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#0F394F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371886;
/* rgb */ color: rgb(55, 24, 134);
/* oklch */ color: oklch(33.6% 0.166 286.3);
Tailwind
colors: {
  custom: {
    50: '#785aaa',
    500: '#371886',
    950: '#000000',
  },
}
SCSS
$custom: #371886;
$custom-light: #785aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#371886",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 256.909,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33648,
    "c": 0.16627,
    "h": 286.3
  },
  "luminance": 0.03187
}

Semantic roles & 50–950 ramp

primary
#371886
secondary
#97BA40
accent
#EC3BBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371886

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

Preview Lab → · Contrast checker → · Palette generator →

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