#371A9A#371A9A

#371A9A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.188 H 281.8°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#371A9A
RGBrgb(55, 26, 154)
HSLhsl(254, 71%, 35%)
HSVhsv(254, 83%, 60%)
CMYKcmyk(64.3%, 83.1%, 0%, 39.6%)
CIE-LABlab(23.28, 47.74, -63.71)
CIE-LCHlch(23.28, 79.61, 306.84°)
OKLaboklab(36.03% 0.0386 -0.1838)
OKLCHoklch(36.03% 0.188 281.8)
XYZxyz(7.7758, 3.8835, 30.9054)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A9A #7D9A1A
analogous
#1A3D9A #371A9A #771A9A
triadic
#371A9A #9A371A #1A9A37
tetradic
#371A9A #9A1A3D #7D9A1A #1A9A77
square
#371A9A #9A1A3D #7D9A1A #1A9A77
split-complementary
#371A9A #9A771A #3D9A1A
monochromatic
#120831 #241166 #371A9A #4A23CE #6F4DE1

Accessibility & contrast

On white

11.82
#371A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#371A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A9A
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A9A#FFFFFF#000000##FFFFFF
##371A9A1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #371a9a;
/* rgb */ color: rgb(55, 26, 154);
/* oklch */ color: oklch(36.0% 0.188 281.8);
Tailwind
colors: {
  custom: {
    50: '#7c5cb9',
    500: '#371a9a',
    950: '#000000',
  },
}
SCSS
$custom: #371a9a;
$custom-light: #7c5cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#371a9a",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 154
  },
  "hsl": {
    "h": 253.594,
    "s": 71.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36032,
    "c": 0.18781,
    "h": 281.8
  },
  "luminance": 0.03884
}

Semantic roles & 50–950 ramp

primary
#371A9A
secondary
#A8C34D
accent
#EE3AC5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #371A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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