#371C87#371C87

#371C87 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.164 H 285.4°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#371C87
RGBrgb(55, 28, 135)
HSLhsl(255, 66%, 32%)
HSVhsv(255, 79%, 53%)
CMYKcmyk(59.3%, 79.3%, 0%, 47.1%)
CIE-LABlab(21.55, 41.17, -54.78)
CIE-LCHlch(21.55, 68.53, 306.93°)
OKLaboklab(34.22% 0.0435 -0.1578)
OKLCHoklch(34.22% 0.164 285.4)
XYZxyz(6.3626, 3.3916, 23.2363)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C87 #6C871C
analogous
#1C3787 #371C87 #6D1C87
triadic
#371C87 #87371C #1C8737
tetradic
#371C87 #871C37 #6C871C #1C876D
square
#371C87 #871C37 #6C871C #1C876D
split-complementary
#371C87 #876D1C #37871C
monochromatic
#0E0722 #221154 #371C87 #4C27BA #6A45D8

Accessibility & contrast

On white

12.51
#371C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#371C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C87
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C87#FFFFFF#000000##FFFFFF
##371C871.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#0C3B51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #371c87;
/* rgb */ color: rgb(55, 28, 135);
/* oklch */ color: oklch(34.2% 0.164 285.4);
Tailwind
colors: {
  custom: {
    50: '#785cab',
    500: '#371c87',
    950: '#000000',
  },
}
SCSS
$custom: #371c87;
$custom-light: #785cab;
$custom-dark: #000000;
JSON
{
  "hex": "#371c87",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 255.14,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34217,
    "c": 0.16367,
    "h": 285.4
  },
  "luminance": 0.03392
}

Semantic roles & 50–950 ramp

primary
#371C87
secondary
#9CBA45
accent
#E93FBE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371C87

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

Preview Lab → · Contrast checker → · Palette generator →

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