#371986#371986

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

Color values

HEX#371986
RGBrgb(55, 25, 134)
HSLhsl(257, 69%, 31%)
HSVhsv(257, 81%, 53%)
CMYKcmyk(59%, 81.3%, 0%, 47.5%)
CIE-LABlab(20.94, 42.34, -55.16)
CIE-LCHlch(20.94, 69.53, 307.51°)
OKLaboklab(33.76% 0.0459 -0.1589)
OKLCHoklch(33.76% 0.165 286.1)
XYZxyz(6.2250, 3.2284, 22.8448)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371986 #688619
analogous
#193186 #371986 #6D1986
triadic
#371986 #863719 #198637
tetradic
#371986 #861931 #688619 #19866D
square
#371986 #861931 #688619 #19866D
split-complementary
#371986 #866D19 #318619
monochromatic
#0D061F #220F52 #371986 #4C23BA #693EDB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##371986#FFFFFF#000000##FFFFFF
##3719861.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)
#003589
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#0F3950
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371986;
/* rgb */ color: rgb(55, 25, 134);
/* oklch */ color: oklch(33.8% 0.165 286.1);
Tailwind
colors: {
  custom: {
    50: '#785aaa',
    500: '#371986',
    950: '#000000',
  },
}
SCSS
$custom: #371986;
$custom-light: #785aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#371986",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 256.514,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33759,
    "c": 0.16536,
    "h": 286.1
  },
  "luminance": 0.03229
}

Semantic roles & 50–950 ramp

primary
#371986
secondary
#98BA41
accent
#EB3CBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371986

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

Preview Lab → · Contrast checker → · Palette generator →

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