#371AA1#371AA1

#371AA1 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.196 H 280.6°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#371AA1
RGBrgb(55, 26, 161)
HSLhsl(253, 72%, 37%)
HSVhsv(253, 84%, 63%)
CMYKcmyk(65.8%, 83.9%, 0%, 36.9%)
CIE-LABlab(24.08, 49.76, -66.68)
CIE-LCHlch(24.08, 83.20, 306.73°)
OKLaboklab(36.81% 0.0362 -0.1924)
OKLCHoklch(36.81% 0.196 280.6)
XYZxyz(8.3759, 4.1236, 34.0658)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371AA1 #84A11A
analogous
#1A41A1 #371AA1 #7B1AA1
triadic
#371AA1 #A1371A #1AA137
tetradic
#371AA1 #A11A41 #84A11A #1AA17B
square
#371AA1 #A11A41 #84A11A #1AA17B
split-complementary
#371AA1 #A17B1A #41A11A
monochromatic
#130938 #25116C #371AA1 #4923D6 #7152E3

Accessibility & contrast

On white

11.51
#371AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#371AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371AA1
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371AA1#FFFFFF#000000##FFFFFF
##371AA11.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00349F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #371aa1;
/* rgb */ color: rgb(55, 26, 161);
/* oklch */ color: oklch(36.8% 0.196 280.6);
Tailwind
colors: {
  custom: {
    50: '#7e5dbe',
    500: '#371aa1',
    950: '#000000',
  },
}
SCSS
$custom: #371aa1;
$custom-light: #7e5dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#371aa1",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 252.889,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36811,
    "c": 0.19581,
    "h": 280.6
  },
  "luminance": 0.04124
}

Semantic roles & 50–950 ramp

primary
#371AA1
secondary
#ADC651
accent
#EF39C8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #371AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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