#371E9E#371E9E

#371E9E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.189 H 280.7°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#371E9E
RGBrgb(55, 30, 158)
HSLhsl(252, 68%, 37%)
HSVhsv(252, 81%, 62%)
CMYKcmyk(65.2%, 81%, 0%, 38%)
CIE-LABlab(24.35, 47.10, -64.39)
CIE-LCHlch(24.35, 79.78, 306.18°)
OKLaboklab(36.9% 0.0352 -0.1859)
OKLCHoklch(36.9% 0.189 280.7)
XYZxyz(8.2094, 4.2088, 32.7209)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E9E #859E1E
analogous
#1E459E #371E9E #771E9E
triadic
#371E9E #9E371E #1E9E37
tetradic
#371E9E #9E1E45 #859E1E #1E9E77
square
#371E9E #9E1E45 #859E1E #1E9E77
split-complementary
#371E9E #9E771E #459E1E
monochromatic
#130A37 #25146B #371E9E #4928D1 #7257DF

Accessibility & contrast

On white

11.40
#371E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#371E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E9E
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E9E#FFFFFF#000000##FFFFFF
##371E9E1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #371e9e;
/* rgb */ color: rgb(55, 30, 158);
/* oklch */ color: oklch(36.9% 0.189 280.7);
Tailwind
colors: {
  custom: {
    50: '#7d5fbc',
    500: '#371e9e',
    950: '#000000',
  },
}
SCSS
$custom: #371e9e;
$custom-light: #7d5fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#371e9e",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 158
  },
  "hsl": {
    "h": 251.719,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36901,
    "c": 0.18916,
    "h": 280.7
  },
  "luminance": 0.04209
}

Semantic roles & 50–950 ramp

primary
#371E9E
secondary
#ADC355
accent
#EB3DC9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #371E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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