#371D9A#371D9A

#371D9A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.185 H 281.5°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#371D9A
RGBrgb(55, 29, 154)
HSLhsl(252, 68%, 36%)
HSVhsv(252, 81%, 60%)
CMYKcmyk(64.3%, 81.2%, 0%, 39.6%)
CIE-LABlab(23.75, 46.37, -62.94)
CIE-LCHlch(23.75, 78.18, 306.38°)
OKLaboklab(36.35% 0.037 -0.1816)
OKLCHoklch(36.35% 0.185 281.5)
XYZxyz(7.8458, 4.0235, 30.9287)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D9A #809A1D
analogous
#1D419A #371D9A #751D9A
triadic
#371D9A #9A371D #1D9A37
tetradic
#371D9A #9A1D41 #809A1D #1D9A75
square
#371D9A #9A1D41 #809A1D #1D9A75
split-complementary
#371D9A #9A751D #419A1D
monochromatic
#120A33 #251366 #371D9A #4927CE #7053DF

Accessibility & contrast

On white

11.64
#371D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#371D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D9A
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D9A#FFFFFF#000000##FFFFFF
##371D9A1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003498
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #371d9a;
/* rgb */ color: rgb(55, 29, 154);
/* oklch */ color: oklch(36.4% 0.185 281.5);
Tailwind
colors: {
  custom: {
    50: '#7c5eb9',
    500: '#371d9a',
    950: '#000000',
  },
}
SCSS
$custom: #371d9a;
$custom-light: #7c5eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#371d9a",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 252.48,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36355,
    "c": 0.18533,
    "h": 281.5
  },
  "luminance": 0.04024
}

Semantic roles & 50–950 ramp

primary
#371D9A
secondary
#AAC251
accent
#EB3DC7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #371D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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