#371BA1#371BA1

#371BA1 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.195 H 280.6°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#371BA1
RGBrgb(55, 27, 161)
HSLhsl(253, 71%, 37%)
HSVhsv(253, 83%, 63%)
CMYKcmyk(65.8%, 83.2%, 0%, 36.9%)
CIE-LABlab(24.22, 49.34, -66.44)
CIE-LCHlch(24.22, 82.75, 306.60°)
OKLaboklab(36.91% 0.0357 -0.1918)
OKLCHoklch(36.91% 0.195 280.6)
XYZxyz(8.3985, 4.1686, 34.0734)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371BA1 #85A11B
analogous
#1B42A1 #371BA1 #7A1BA1
triadic
#371BA1 #A1371B #1BA137
tetradic
#371BA1 #A11B42 #85A11B #1BA17A
square
#371BA1 #A11B42 #85A11B #1BA17A
split-complementary
#371BA1 #A17A1B #42A11B
monochromatic
#130938 #25126D #371BA1 #4924D5 #7254E2

Accessibility & contrast

On white

11.45
#371BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#371BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371BA1
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371BA1#FFFFFF#000000##FFFFFF
##371BA11.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#004560
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #371ba1;
/* rgb */ color: rgb(55, 27, 161);
/* oklch */ color: oklch(36.9% 0.195 280.6);
Tailwind
colors: {
  custom: {
    50: '#7d5dbe',
    500: '#371ba1',
    950: '#000000',
  },
}
SCSS
$custom: #371ba1;
$custom-light: #7d5dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#371ba1",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 252.537,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36911,
    "c": 0.19506,
    "h": 280.6
  },
  "luminance": 0.04169
}

Semantic roles & 50–950 ramp

primary
#371BA1
secondary
#ADC552
accent
#EE3AC8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #371BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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