#371C9C#371C9C

#371C9C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.189 H 281.3°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#371C9C
RGBrgb(55, 28, 156)
HSLhsl(253, 70%, 36%)
HSVhsv(253, 82%, 61%)
CMYKcmyk(64.7%, 82.1%, 0%, 38.8%)
CIE-LABlab(23.81, 47.43, -64.06)
CIE-LCHlch(23.81, 79.71, 306.51°)
OKLaboklab(36.46% 0.0369 -0.1849)
OKLCHoklch(36.46% 0.189 281.3)
XYZxyz(7.9897, 4.0424, 31.8053)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C9C #819C1C
analogous
#1C419C #371C9C #771C9C
triadic
#371C9C #9C371C #1C9C37
tetradic
#371C9C #9C1C41 #819C1C #1C9C77
square
#371C9C #9C1C41 #819C1C #1C9C77
split-complementary
#371C9C #9C771C #419C1C
monochromatic
#120934 #251368 #371C9C #4925D0 #7052E0

Accessibility & contrast

On white

11.61
#371C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371C9C
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C9C#FFFFFF#000000##FFFFFF
##371C9C1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00349A
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #371c9c;
/* rgb */ color: rgb(55, 28, 156);
/* oklch */ color: oklch(36.5% 0.189 281.3);
Tailwind
colors: {
  custom: {
    50: '#7c5dba',
    500: '#371c9c',
    950: '#000000',
  },
}
SCSS
$custom: #371c9c;
$custom-light: #7c5dba;
$custom-dark: #000000;
JSON
{
  "hex": "#371c9c",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 156
  },
  "hsl": {
    "h": 252.656,
    "s": 69.565,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36463,
    "c": 0.1885,
    "h": 281.3
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#371C9C
secondary
#ABC351
accent
#EC3BC7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #371C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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