#371D87#371D87

#371D87 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.163 H 285.2°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#371D87
RGBrgb(55, 29, 135)
HSLhsl(255, 65%, 32%)
HSVhsv(255, 79%, 53%)
CMYKcmyk(59.3%, 78.5%, 0%, 47.1%)
CIE-LABlab(21.73, 40.67, -54.49)
CIE-LCHlch(21.73, 67.99, 306.73°)
OKLaboklab(34.34% 0.0428 -0.1569)
OKLCHoklch(34.34% 0.163 285.2)
XYZxyz(6.3868, 3.4398, 23.2444)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D87 #6D871D
analogous
#1D3887 #371D87 #6C1D87
triadic
#371D87 #87371D #1D8737
tetradic
#371D87 #871D38 #6D871D #1D876C
square
#371D87 #871D38 #6D871D #1D876C
split-complementary
#371D87 #876C1D #38871D
monochromatic
#0E0722 #221255 #371D87 #4C28B9 #6A47D7

Accessibility & contrast

On white

12.44
#371D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#371D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D87
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D87#FFFFFF#000000##FFFFFF
##371D871.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371d87;
/* rgb */ color: rgb(55, 29, 135);
/* oklch */ color: oklch(34.3% 0.163 285.2);
Tailwind
colors: {
  custom: {
    50: '#785dab',
    500: '#371d87',
    950: '#000000',
  },
}
SCSS
$custom: #371d87;
$custom-light: #785dab;
$custom-dark: #000000;
JSON
{
  "hex": "#371d87",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 254.717,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34341,
    "c": 0.16267,
    "h": 285.2
  },
  "luminance": 0.0344
}

Semantic roles & 50–950 ramp

primary
#371D87
secondary
#9DB946
accent
#E840BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371D87

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

Preview Lab → · Contrast checker → · Palette generator →

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