#371C86#371C86

#371C86 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.162 H 285.6°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#371C86
RGBrgb(55, 28, 134)
HSLhsl(255, 65%, 32%)
HSVhsv(255, 79%, 53%)
CMYKcmyk(59%, 79.1%, 0%, 47.5%)
CIE-LABlab(21.44, 40.87, -54.32)
CIE-LCHlch(21.44, 67.98, 306.96°)
OKLaboklab(34.11% 0.0438 -0.1564)
OKLCHoklch(34.11% 0.162 285.6)
XYZxyz(6.2926, 3.3636, 22.8673)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C86 #6B861C
analogous
#1C3686 #371C86 #6C1C86
triadic
#371C86 #86371C #1C8637
tetradic
#371C86 #861C36 #6B861C #1C866C
square
#371C86 #861C36 #6B861C #1C866C
split-complementary
#371C86 #866C1C #36861C
monochromatic
#0D0721 #221153 #371C86 #4C27B9 #6A44D8

Accessibility & contrast

On white

12.55
#371C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#371C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C86
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C86#FFFFFF#000000##FFFFFF
##371C861.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#0E3A50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371c86;
/* rgb */ color: rgb(55, 28, 134);
/* oklch */ color: oklch(34.1% 0.162 285.6);
Tailwind
colors: {
  custom: {
    50: '#785caa',
    500: '#371c86',
    950: '#000000',
  },
}
SCSS
$custom: #371c86;
$custom-light: #785caa;
$custom-dark: #000000;
JSON
{
  "hex": "#371c86",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 134
  },
  "hsl": {
    "h": 255.283,
    "s": 65.432,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34114,
    "c": 0.16246,
    "h": 285.6
  },
  "luminance": 0.03364
}

Semantic roles & 50–950 ramp

primary
#371C86
secondary
#9BB945
accent
#E83FBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371C86

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

Preview Lab → · Contrast checker → · Palette generator →

#371C86 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva