#371A9F#371A9F

#371A9F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.194 H 281.0°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#371A9F
RGBrgb(55, 26, 159)
HSLhsl(253, 72%, 36%)
HSVhsv(253, 84%, 62%)
CMYKcmyk(65.4%, 83.6%, 0%, 37.6%)
CIE-LABlab(23.85, 49.18, -65.84)
CIE-LCHlch(23.85, 82.18, 306.76°)
OKLaboklab(36.59% 0.0369 -0.19)
OKLCHoklch(36.59% 0.194 281)
XYZxyz(8.2010, 4.0536, 33.1444)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A9F #829F1A
analogous
#1A409F #371A9F #7A1A9F
triadic
#371A9F #9F371A #1A9F37
tetradic
#371A9F #9F1A40 #829F1A #1A9F7A
square
#371A9F #9F1A40 #829F1A #1A9F7A
split-complementary
#371A9F #9F7A1A #409F1A
monochromatic
#130936 #25116A #371A9F #4923D4 #7151E3

Accessibility & contrast

On white

11.60
#371A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#371A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A9F
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A9F#FFFFFF#000000##FFFFFF
##371A9F1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #371a9f;
/* rgb */ color: rgb(55, 26, 159);
/* oklch */ color: oklch(36.6% 0.194 281.0);
Tailwind
colors: {
  custom: {
    50: '#7d5dbd',
    500: '#371a9f',
    950: '#000000',
  },
}
SCSS
$custom: #371a9f;
$custom-light: #7d5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#371a9f",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 159
  },
  "hsl": {
    "h": 253.083,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36588,
    "c": 0.19353,
    "h": 281
  },
  "luminance": 0.04054
}

Semantic roles & 50–950 ramp

primary
#371A9F
secondary
#ABC550
accent
#EF39C7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #371A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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