#371EA1#371EA1

#371EA1 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.193 H 280.2°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#371EA1
RGBrgb(55, 30, 161)
HSLhsl(251, 69%, 37%)
HSVhsv(251, 81%, 63%)
CMYKcmyk(65.8%, 81.4%, 0%, 36.9%)
CIE-LABlab(24.68, 47.99, -65.68)
CIE-LCHlch(24.68, 81.34, 306.16°)
OKLaboklab(37.23% 0.0343 -0.1896)
OKLCHoklch(37.23% 0.193 280.2)
XYZxyz(8.4708, 4.3133, 34.0975)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371EA1 #88A11E
analogous
#1E47A1 #371EA1 #781EA1
triadic
#371EA1 #A1371E #1EA137
tetradic
#371EA1 #A11E47 #88A11E #1EA178
square
#371EA1 #A11E47 #88A11E #1EA178
split-complementary
#371EA1 #A1781E #47A11E
monochromatic
#140B3A #25146D #371EA1 #4928D5 #7359E0

Accessibility & contrast

On white

11.27
#371EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#371EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371EA1
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371EA1#FFFFFF#000000##FFFFFF
##371EA11.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #371ea1;
/* rgb */ color: rgb(55, 30, 161);
/* oklch */ color: oklch(37.2% 0.193 280.2);
Tailwind
colors: {
  custom: {
    50: '#7d5fbe',
    500: '#371ea1',
    950: '#000000',
  },
}
SCSS
$custom: #371ea1;
$custom-light: #7d5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#371ea1",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 251.45,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37229,
    "c": 0.19266,
    "h": 280.2
  },
  "luminance": 0.04314
}

Semantic roles & 50–950 ramp

primary
#371EA1
secondary
#AFC457
accent
#EB3CCA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #371EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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