#371E9D#371E9D

#371E9D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.188 H 280.9°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#371E9D
RGBrgb(55, 30, 157)
HSLhsl(252, 68%, 37%)
HSVhsv(252, 81%, 62%)
CMYKcmyk(65%, 80.9%, 0%, 38.4%)
CIE-LABlab(24.24, 46.80, -63.96)
CIE-LCHlch(24.24, 79.26, 306.19°)
OKLaboklab(36.79% 0.0355 -0.1846)
OKLCHoklch(36.79% 0.188 280.9)
XYZxyz(8.1237, 4.1745, 32.2694)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E9D #849D1E
analogous
#1E459D #371E9D #771E9D
triadic
#371E9D #9D371E #1E9D37
tetradic
#371E9D #9D1E45 #849D1E #1E9D77
square
#371E9D #9D1E45 #849D1E #1E9D77
split-complementary
#371E9D #9D771E #459D1E
monochromatic
#130A36 #25146A #371E9D #4928D0 #7157DF

Accessibility & contrast

On white

11.44
#371E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371E9D
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E9D#FFFFFF#000000##FFFFFF
##371E9D1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371e9d;
/* rgb */ color: rgb(55, 30, 157);
/* oklch */ color: oklch(36.8% 0.188 280.9);
Tailwind
colors: {
  custom: {
    50: '#7c5ebb',
    500: '#371e9d',
    950: '#000000',
  },
}
SCSS
$custom: #371e9d;
$custom-light: #7c5ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#371e9d",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 251.811,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36793,
    "c": 0.18799,
    "h": 280.9
  },
  "luminance": 0.04175
}

Semantic roles & 50–950 ramp

primary
#371E9D
secondary
#ADC254
accent
#EB3DC9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #371E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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