#371E87#371E87

#371E87 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.162 H 285.1°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#371E87
RGBrgb(55, 30, 135)
HSLhsl(254, 64%, 32%)
HSVhsv(254, 78%, 53%)
CMYKcmyk(59.3%, 77.8%, 0%, 47.1%)
CIE-LABlab(21.91, 40.15, -54.19)
CIE-LCHlch(21.91, 67.44, 306.53°)
OKLaboklab(34.47% 0.042 -0.1561)
OKLCHoklch(34.47% 0.162 285.1)
XYZxyz(6.4117, 3.4897, 23.2527)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E87 #6E871E
analogous
#1E3987 #371E87 #6C1E87
triadic
#371E87 #87371E #1E8737
tetradic
#371E87 #871E39 #6E871E #1E876C
square
#371E87 #871E39 #6E871E #1E876C
split-complementary
#371E87 #876C1E #39871E
monochromatic
#0E0823 #231355 #371E87 #4B29B9 #6B49D7

Accessibility & contrast

On white

12.37
#371E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#371E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E87
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E87#FFFFFF#000000##FFFFFF
##371E871.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371e87;
/* rgb */ color: rgb(55, 30, 135);
/* oklch */ color: oklch(34.5% 0.162 285.1);
Tailwind
colors: {
  custom: {
    50: '#785dab',
    500: '#371e87',
    950: '#000000',
  },
}
SCSS
$custom: #371e87;
$custom-light: #785dab;
$custom-dark: #000000;
JSON
{
  "hex": "#371e87",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 254.286,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34468,
    "c": 0.16164,
    "h": 285.1
  },
  "luminance": 0.0349
}

Semantic roles & 50–950 ramp

primary
#371E87
secondary
#9EB948
accent
#E741BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371E87

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

Preview Lab → · Contrast checker → · Palette generator →

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