#371C9B#371C9B

#371C9B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.187 H 281.5°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#371C9B
RGBrgb(55, 28, 155)
HSLhsl(253, 69%, 36%)
HSVhsv(253, 82%, 61%)
CMYKcmyk(64.5%, 81.9%, 0%, 39.2%)
CIE-LABlab(23.70, 47.13, -63.63)
CIE-LCHlch(23.70, 79.19, 306.53°)
OKLaboklab(36.35% 0.0372 -0.1836)
OKLCHoklch(36.35% 0.187 281.5)
XYZxyz(7.9053, 4.0087, 31.3612)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C9B #809B1C
analogous
#1C409B #371C9B #761C9B
triadic
#371C9B #9B371C #1C9B37
tetradic
#371C9B #9B1C40 #809B1C #1C9B76
square
#371C9B #9B1C40 #809B1C #1C9B76
split-complementary
#371C9B #9B761C #409B1C
monochromatic
#120933 #251367 #371C9B #4925CF #7052E0

Accessibility & contrast

On white

11.66
#371C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#371C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C9B
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C9B#FFFFFF#000000##FFFFFF
##371C9B1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003499
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #371c9b;
/* rgb */ color: rgb(55, 28, 155);
/* oklch */ color: oklch(36.4% 0.187 281.5);
Tailwind
colors: {
  custom: {
    50: '#7c5dba',
    500: '#371c9b',
    950: '#000000',
  },
}
SCSS
$custom: #371c9b;
$custom-light: #7c5dba;
$custom-dark: #000000;
JSON
{
  "hex": "#371c9b",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 155
  },
  "hsl": {
    "h": 252.756,
    "s": 69.399,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36354,
    "c": 0.18734,
    "h": 281.5
  },
  "luminance": 0.04009
}

Semantic roles & 50–950 ramp

primary
#371C9B
secondary
#AAC350
accent
#EC3CC7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #371C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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