#371E9A#371E9A

#371E9A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.184 H 281.4°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#371E9A
RGBrgb(55, 30, 154)
HSLhsl(252, 67%, 36%)
HSVhsv(252, 81%, 60%)
CMYKcmyk(64.3%, 80.5%, 0%, 39.6%)
CIE-LABlab(23.91, 45.90, -62.67)
CIE-LCHlch(23.91, 77.68, 306.22°)
OKLaboklab(36.47% 0.0364 -0.1808)
OKLCHoklch(36.47% 0.184 281.4)
XYZxyz(7.8707, 4.0733, 30.9370)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E9A #819A1E
analogous
#1E439A #371E9A #751E9A
triadic
#371E9A #9A371E #1E9A37
tetradic
#371E9A #9A1E43 #819A1E #1E9A75
square
#371E9A #9A1E43 #819A1E #1E9A75
split-complementary
#371E9A #9A751E #439A1E
monochromatic
#120A34 #251467 #371E9A #4928CD #7055DE

Accessibility & contrast

On white

11.57
#371E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#371E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E9A
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E9A#FFFFFF#000000##FFFFFF
##371E9A1.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003498
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #371e9a;
/* rgb */ color: rgb(55, 30, 154);
/* oklch */ color: oklch(36.5% 0.184 281.4);
Tailwind
colors: {
  custom: {
    50: '#7c5eb9',
    500: '#371e9a',
    950: '#000000',
  },
}
SCSS
$custom: #371e9a;
$custom-light: #7c5eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#371e9a",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 154
  },
  "hsl": {
    "h": 252.097,
    "s": 67.391,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36468,
    "c": 0.18446,
    "h": 281.4
  },
  "luminance": 0.04074
}

Semantic roles & 50–950 ramp

primary
#371E9A
secondary
#ABC153
accent
#EA3EC7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #371E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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