#371C92#371C92

#371C92 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.177 H 283.1°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#371C92
RGBrgb(55, 28, 146)
HSLhsl(254, 68%, 34%)
HSVhsv(254, 81%, 57%)
CMYKcmyk(62.3%, 80.8%, 0%, 42.7%)
CIE-LABlab(22.71, 44.47, -59.71)
CIE-LCHlch(22.71, 74.45, 306.67°)
OKLaboklab(35.38% 0.0401 -0.1722)
OKLCHoklch(35.38% 0.177 283.1)
XYZxyz(7.1775, 3.7176, 27.5279)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C92 #77921C
analogous
#1C3C92 #371C92 #721C92
triadic
#371C92 #92371C #1C9237
tetradic
#371C92 #921C3C #77921C #1C9272
square
#371C92 #921C3C #77921C #1C9272
split-complementary
#371C92 #92721C #3C921C
monochromatic
#10082B #24125F #371C92 #4A26C5 #6D4CDD

Accessibility & contrast

On white

12.04
#371C92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#371C92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C92
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C92#FFFFFF#000000##FFFFFF
##371C921.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#003290
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #371c92;
/* rgb */ color: rgb(55, 28, 146);
/* oklch */ color: oklch(35.4% 0.177 283.1);
Tailwind
colors: {
  custom: {
    50: '#7a5db3',
    500: '#371c92',
    950: '#000000',
  },
}
SCSS
$custom: #371c92;
$custom-light: #7a5db3;
$custom-dark: #000000;
JSON
{
  "hex": "#371c92",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 146
  },
  "hsl": {
    "h": 253.729,
    "s": 67.816,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35379,
    "c": 0.17681,
    "h": 283.1
  },
  "luminance": 0.03718
}

Semantic roles & 50–950 ramp

primary
#371C92
secondary
#A4BF4B
accent
#EB3DC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #371C92

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

Preview Lab → · Contrast checker → · Palette generator →

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