#371A9D#371A9D

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

Color values

HEX#371A9D
RGBrgb(55, 26, 157)
HSLhsl(253, 72%, 36%)
HSVhsv(253, 83%, 62%)
CMYKcmyk(65%, 83.4%, 0%, 38.4%)
CIE-LABlab(23.62, 48.61, -64.99)
CIE-LCHlch(23.62, 81.15, 306.79°)
OKLaboklab(36.36% 0.0375 -0.1875)
OKLCHoklch(36.36% 0.191 281.3)
XYZxyz(8.0288, 3.9847, 32.2378)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A9D #809D1A
analogous
#1A3F9D #371A9D #781A9D
triadic
#371A9D #9D371A #1A9D37
tetradic
#371A9D #9D1A3F #809D1A #1A9D78
square
#371A9D #9D1A3F #809D1A #1A9D78
split-complementary
#371A9D #9D781A #3F9D1A
monochromatic
#120934 #251168 #371A9D #4923D2 #704FE2

Accessibility & contrast

On white

11.69
#371A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371A9D
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A9D#FFFFFF#000000##FFFFFF
##371A9D1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA1
Deuteranopia (green-blind)
#00339B
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #371a9d;
/* rgb */ color: rgb(55, 26, 157);
/* oklch */ color: oklch(36.4% 0.191 281.3);
Tailwind
colors: {
  custom: {
    50: '#7d5cbb',
    500: '#371a9d',
    950: '#000000',
  },
}
SCSS
$custom: #371a9d;
$custom-light: #7d5cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#371a9d",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 157
  },
  "hsl": {
    "h": 253.282,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36365,
    "c": 0.19125,
    "h": 281.3
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#371A9D
secondary
#AAC44E
accent
#EE39C6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #371A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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