#371F9A#371F9A

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

Color values

HEX#371F9A
RGBrgb(55, 31, 154)
HSLhsl(252, 66%, 36%)
HSVhsv(252, 80%, 60%)
CMYKcmyk(64.3%, 79.9%, 0%, 39.6%)
CIE-LABlab(24.08, 45.42, -62.39)
CIE-LCHlch(24.08, 77.17, 306.05°)
OKLaboklab(36.58% 0.0359 -0.18)
OKLCHoklch(36.58% 0.184 281.3)
XYZxyz(7.8964, 4.1247, 30.9456)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F9A #829A1F
analogous
#1F459A #371F9A #751F9A
triadic
#371F9A #9A371F #1F9A37
tetradic
#371F9A #9A1F45 #829A1F #1F9A75
square
#371F9A #9A1F45 #829A1F #1F9A75
split-complementary
#371F9A #9A751F #459A1F
monochromatic
#130A34 #251567 #371F9A #4929CD #7156DD

Accessibility & contrast

On white

11.51
#371F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#371F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F9A
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F9A#FFFFFF#000000##FFFFFF
##371F9A1.0011.511.8311.51
#FFFFFF11.511.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371f9a;
/* rgb */ color: rgb(55, 31, 154);
/* oklch */ color: oklch(36.6% 0.184 281.3);
Tailwind
colors: {
  custom: {
    50: '#7c5fb9',
    500: '#371f9a',
    950: '#000000',
  },
}
SCSS
$custom: #371f9a;
$custom-light: #7c5fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#371f9a",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 251.707,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36584,
    "c": 0.18357,
    "h": 281.3
  },
  "luminance": 0.04125
}

Semantic roles & 50–950 ramp

primary
#371F9A
secondary
#ABC154
accent
#E93EC8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #371F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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