#371E96#371E96

#371E96 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.180 H 282.1°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#371E96
RGBrgb(55, 30, 150)
HSLhsl(253, 67%, 35%)
HSVhsv(253, 80%, 59%)
CMYKcmyk(63.3%, 80%, 0%, 41.2%)
CIE-LABlab(23.48, 44.70, -60.92)
CIE-LCHlch(23.48, 75.56, 306.27°)
OKLaboklab(36.04% 0.0376 -0.1757)
OKLCHoklch(36.04% 0.18 282.1)
XYZxyz(7.5431, 3.9422, 29.2117)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E96 #7D961E
analogous
#1E4196 #371E96 #731E96
triadic
#371E96 #96371E #1E9637
tetradic
#371E96 #961E41 #7D961E #1E9673
square
#371E96 #961E41 #7D961E #1E9673
split-complementary
#371E96 #96731E #41961E
monochromatic
#120A30 #241463 #371E96 #4A28C9 #6F52DC

Accessibility & contrast

On white

11.74
#371E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#371E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E96
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E96#FFFFFF#000000##FFFFFF
##371E961.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #371e96;
/* rgb */ color: rgb(55, 30, 150);
/* oklch */ color: oklch(36.0% 0.180 282.1);
Tailwind
colors: {
  custom: {
    50: '#7b5eb6',
    500: '#371e96',
    950: '#000000',
  },
}
SCSS
$custom: #371e96;
$custom-light: #7b5eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#371e96",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 252.5,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36039,
    "c": 0.17973,
    "h": 282.1
  },
  "luminance": 0.03943
}

Semantic roles & 50–950 ramp

primary
#371E96
secondary
#A8BF50
accent
#EA3EC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #371E96

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

Preview Lab → · Contrast checker → · Palette generator →

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