#371A96#371A96

#371A96 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.183 H 282.6°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#371A96
RGBrgb(55, 26, 150)
HSLhsl(254, 70%, 35%)
HSVhsv(254, 83%, 59%)
CMYKcmyk(63.3%, 82.7%, 0%, 41.2%)
CIE-LABlab(22.84, 46.57, -61.99)
CIE-LCHlch(22.84, 77.53, 306.92°)
OKLaboklab(35.59% 0.0399 -0.1788)
OKLCHoklch(35.59% 0.183 282.6)
XYZxyz(7.4482, 3.7525, 29.1801)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A96 #79961A
analogous
#1A3B96 #371A96 #751A96
triadic
#371A96 #96371A #1A9637
tetradic
#371A96 #961A3B #79961A #1A9675
square
#371A96 #961A3B #79961A #1A9675
split-complementary
#371A96 #96751A #3B961A
monochromatic
#11082E #241162 #371A96 #4A23CA #6E4BE0

Accessibility & contrast

On white

12.00
#371A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#371A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A96
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A96#FFFFFF#000000##FFFFFF
##371A961.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.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: #371a96;
/* rgb */ color: rgb(55, 26, 150);
/* oklch */ color: oklch(35.6% 0.183 282.6);
Tailwind
colors: {
  custom: {
    50: '#7b5cb6',
    500: '#371a96',
    950: '#000000',
  },
}
SCSS
$custom: #371a96;
$custom-light: #7b5cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#371a96",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 150
  },
  "hsl": {
    "h": 254.032,
    "s": 70.455,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35592,
    "c": 0.18319,
    "h": 282.6
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#371A96
secondary
#A6C24A
accent
#ED3BC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #371A96

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

Preview Lab → · Contrast checker → · Palette generator →

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