#371C89#371C89

#371C89 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.166 H 285.0°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#371C89
RGBrgb(55, 28, 137)
HSLhsl(255, 66%, 32%)
HSVhsv(255, 80%, 54%)
CMYKcmyk(59.9%, 79.6%, 0%, 46.3%)
CIE-LABlab(21.76, 41.77, -55.69)
CIE-LCHlch(21.76, 69.61, 306.87°)
OKLaboklab(34.43% 0.0429 -0.1604)
OKLCHoklch(34.43% 0.166 285)
XYZxyz(6.5048, 3.4485, 23.9849)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C89 #6E891C
analogous
#1C3889 #371C89 #6D1C89
triadic
#371C89 #89371C #1C8937
tetradic
#371C89 #891C38 #6E891C #1C896D
square
#371C89 #891C38 #6E891C #1C896D
split-complementary
#371C89 #896D1C #38891C
monochromatic
#0E0723 #231256 #371C89 #4B26BC #6B46D9

Accessibility & contrast

On white

12.43
#371C89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#371C89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C89
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C89#FFFFFF#000000##FFFFFF
##371C891.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#083C52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #371c89;
/* rgb */ color: rgb(55, 28, 137);
/* oklch */ color: oklch(34.4% 0.166 285.0);
Tailwind
colors: {
  custom: {
    50: '#795cad',
    500: '#371c89',
    950: '#000000',
  },
}
SCSS
$custom: #371c89;
$custom-light: #795cad;
$custom-dark: #000000;
JSON
{
  "hex": "#371c89",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 137
  },
  "hsl": {
    "h": 254.862,
    "s": 66.061,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34426,
    "c": 0.16608,
    "h": 285
  },
  "luminance": 0.03449
}

Semantic roles & 50–950 ramp

primary
#371C89
secondary
#9EBB46
accent
#E93FBF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371C89

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

Preview Lab → · Contrast checker → · Palette generator →

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