#371C9E#371C9E

#371C9E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.191 H 280.9°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#371C9E
RGBrgb(55, 28, 158)
HSLhsl(252, 70%, 36%)
HSVhsv(252, 82%, 62%)
CMYKcmyk(65.2%, 82.3%, 0%, 38%)
CIE-LABlab(24.03, 48.02, -64.92)
CIE-LCHlch(24.03, 80.74, 306.49°)
OKLaboklab(36.68% 0.0362 -0.1873)
OKLCHoklch(36.68% 0.191 280.9)
XYZxyz(8.1604, 4.1107, 32.7045)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C9E #839E1C
analogous
#1C429E #371C9E #781C9E
triadic
#371C9E #9E371C #1C9E37
tetradic
#371C9E #9E1C42 #839E1C #1C9E78
square
#371C9E #9E1C42 #839E1C #1C9E78
split-complementary
#371C9E #9E781C #429E1C
monochromatic
#130A36 #25136A #371C9E #4925D2 #7154E1

Accessibility & contrast

On white

11.52
#371C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#371C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C9E
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C9E#FFFFFF#000000##FFFFFF
##371C9E1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #371c9e;
/* rgb */ color: rgb(55, 28, 158);
/* oklch */ color: oklch(36.7% 0.191 280.9);
Tailwind
colors: {
  custom: {
    50: '#7d5dbc',
    500: '#371c9e',
    950: '#000000',
  },
}
SCSS
$custom: #371c9e;
$custom-light: #7d5dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#371c9e",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 158
  },
  "hsl": {
    "h": 252.462,
    "s": 69.892,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36683,
    "c": 0.19082,
    "h": 280.9
  },
  "luminance": 0.04111
}

Semantic roles & 50–950 ramp

primary
#371C9E
secondary
#ACC452
accent
#ED3BC8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #371C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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