#371A97#371A97

#371A97 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.184 H 282.4°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#371A97
RGBrgb(55, 26, 151)
HSLhsl(254, 71%, 35%)
HSVhsv(254, 83%, 59%)
CMYKcmyk(63.6%, 82.8%, 0%, 40.8%)
CIE-LABlab(22.95, 46.86, -62.42)
CIE-LCHlch(22.95, 78.05, 306.90°)
OKLaboklab(35.7% 0.0396 -0.18)
OKLCHoklch(35.7% 0.184 282.4)
XYZxyz(7.5291, 3.7848, 29.6059)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A97 #7A971A
analogous
#1A3C97 #371A97 #761A97
triadic
#371A97 #97371A #1A9737
tetradic
#371A97 #971A3C #7A971A #1A9776
square
#371A97 #971A3C #7A971A #1A9776
split-complementary
#371A97 #97761A #3C971A
monochromatic
#11082F #241163 #371A97 #4A23CB #6E4BE0

Accessibility & contrast

On white

11.95
#371A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#371A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A97
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A97#FFFFFF#000000##FFFFFF
##371A971.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #371a97;
/* rgb */ color: rgb(55, 26, 151);
/* oklch */ color: oklch(35.7% 0.184 282.4);
Tailwind
colors: {
  custom: {
    50: '#7b5cb7',
    500: '#371a97',
    950: '#000000',
  },
}
SCSS
$custom: #371a97;
$custom-light: #7b5cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#371a97",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 253.92,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35702,
    "c": 0.18435,
    "h": 282.4
  },
  "luminance": 0.03785
}

Semantic roles & 50–950 ramp

primary
#371A97
secondary
#A6C24B
accent
#ED3AC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #371A97

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

Preview Lab → · Contrast checker → · Palette generator →

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