#371996#371996

#371996 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.184 H 282.7°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#371996
RGBrgb(55, 25, 150)
HSLhsl(254, 71%, 34%)
HSVhsv(254, 83%, 59%)
CMYKcmyk(63.3%, 83.3%, 0%, 41.2%)
CIE-LABlab(22.69, 47.01, -62.24)
CIE-LCHlch(22.69, 78.00, 307.07°)
OKLaboklab(35.49% 0.0405 -0.1795)
OKLCHoklch(35.49% 0.184 282.7)
XYZxyz(7.4265, 3.7090, 29.1728)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371996 #789619
analogous
#193A96 #371996 #761996
triadic
#371996 #963719 #199637
tetradic
#371996 #96193A #789619 #199676
square
#371996 #96193A #789619 #199676
split-complementary
#371996 #967619 #3A9619
monochromatic
#11082D #241062 #371996 #4A22CA #6D49E1

Accessibility & contrast

On white

12.06
#371996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#371996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371996
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371996#FFFFFF#000000##FFFFFF
##3719961.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003294
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #371996;
/* rgb */ color: rgb(55, 25, 150);
/* oklch */ color: oklch(35.5% 0.184 282.7);
Tailwind
colors: {
  custom: {
    50: '#7b5bb6',
    500: '#371996',
    950: '#000000',
  },
}
SCSS
$custom: #371996;
$custom-light: #7b5bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#371996",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 254.4,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35488,
    "c": 0.184,
    "h": 282.7
  },
  "luminance": 0.03709
}

Semantic roles & 50–950 ramp

primary
#371996
secondary
#A5C249
accent
#EE3AC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #371996

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

Preview Lab → · Contrast checker → · Palette generator →

#371996 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva