#371C99#371C99

#371C99 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.185 H 281.8°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#371C99
RGBrgb(55, 28, 153)
HSLhsl(253, 69%, 35%)
HSVhsv(253, 82%, 60%)
CMYKcmyk(64.1%, 81.7%, 0%, 40%)
CIE-LABlab(23.48, 46.54, -62.77)
CIE-LCHlch(23.48, 78.14, 306.56°)
OKLaboklab(36.14% 0.0379 -0.1811)
OKLCHoklch(36.14% 0.185 281.8)
XYZxyz(7.7388, 3.9421, 30.4839)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C99 #7E991C
analogous
#1C3F99 #371C99 #751C99
triadic
#371C99 #99371C #1C9937
tetradic
#371C99 #991C3F #7E991C #1C9975
square
#371C99 #991C3F #7E991C #1C9975
split-complementary
#371C99 #99751C #3F991C
monochromatic
#120932 #241365 #371C99 #4A25CD #6F50DF

Accessibility & contrast

On white

11.74
#371C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#371C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C99
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C99#FFFFFF#000000##FFFFFF
##371C991.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003397
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #371c99;
/* rgb */ color: rgb(55, 28, 153);
/* oklch */ color: oklch(36.1% 0.185 281.8);
Tailwind
colors: {
  custom: {
    50: '#7c5db8',
    500: '#371c99',
    950: '#000000',
  },
}
SCSS
$custom: #371c99;
$custom-light: #7c5db8;
$custom-dark: #000000;
JSON
{
  "hex": "#371c99",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 153
  },
  "hsl": {
    "h": 252.96,
    "s": 69.061,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36135,
    "c": 0.18501,
    "h": 281.8
  },
  "luminance": 0.03943
}

Semantic roles & 50–950 ramp

primary
#371C99
secondary
#A9C24F
accent
#EC3CC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #371C99

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

Preview Lab → · Contrast checker → · Palette generator →

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