#371B9A#371B9A

#371B9A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.187 H 281.7°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#371B9A
RGBrgb(55, 27, 154)
HSLhsl(253, 70%, 35%)
HSVhsv(253, 82%, 60%)
CMYKcmyk(64.3%, 82.5%, 0%, 39.6%)
CIE-LABlab(23.43, 47.29, -63.46)
CIE-LCHlch(23.43, 79.14, 306.69°)
OKLaboklab(36.14% 0.0381 -0.1831)
OKLCHoklch(36.14% 0.187 281.7)
XYZxyz(7.7984, 3.9286, 30.9129)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B9A #7E9A1B
analogous
#1B3F9A #371B9A #761B9A
triadic
#371B9A #9A371B #1B9A37
tetradic
#371B9A #9A1B3F #7E9A1B #1B9A76
square
#371B9A #9A1B3F #7E9A1B #1B9A76
split-complementary
#371B9A #9A761B #3F9A1B
monochromatic
#120932 #241266 #371B9A #4A24CE #6F4FE0

Accessibility & contrast

On white

11.76
#371B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#371B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B9A
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B9A#FFFFFF#000000##FFFFFF
##371B9A1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371b9a;
/* rgb */ color: rgb(55, 27, 154);
/* oklch */ color: oklch(36.1% 0.187 281.7);
Tailwind
colors: {
  custom: {
    50: '#7c5db9',
    500: '#371b9a',
    950: '#000000',
  },
}
SCSS
$custom: #371b9a;
$custom-light: #7c5db9;
$custom-dark: #000000;
JSON
{
  "hex": "#371b9a",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 154
  },
  "hsl": {
    "h": 253.228,
    "s": 70.166,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36137,
    "c": 0.187,
    "h": 281.7
  },
  "luminance": 0.03929
}

Semantic roles & 50–950 ramp

primary
#371B9A
secondary
#A9C34E
accent
#ED3BC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #371B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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