#371FA1#371FA1

#371FA1 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.192 H 280.1°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#371FA1
RGBrgb(55, 31, 161)
HSLhsl(251, 68%, 38%)
HSVhsv(251, 81%, 63%)
CMYKcmyk(65.8%, 80.7%, 0%, 36.9%)
CIE-LABlab(24.84, 47.52, -65.41)
CIE-LCHlch(24.84, 80.85, 306.00°)
OKLaboklab(37.34% 0.0338 -0.1888)
OKLCHoklch(37.34% 0.192 280.1)
XYZxyz(8.4965, 4.3647, 34.1060)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371FA1 #89A11F
analogous
#1F48A1 #371FA1 #781FA1
triadic
#371FA1 #A1371F #1FA137
tetradic
#371FA1 #A11F48 #89A11F #1FA178
square
#371FA1 #A11F48 #89A11F #1FA178
split-complementary
#371FA1 #A1781F #48A11F
monochromatic
#140B3A #25156E #371FA1 #4929D4 #735BDF

Accessibility & contrast

On white

11.21
#371FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#371FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371FA1
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371FA1#FFFFFF#000000##FFFFFF
##371FA11.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #371fa1;
/* rgb */ color: rgb(55, 31, 161);
/* oklch */ color: oklch(37.3% 0.192 280.1);
Tailwind
colors: {
  custom: {
    50: '#7d5fbe',
    500: '#371fa1',
    950: '#000000',
  },
}
SCSS
$custom: #371fa1;
$custom-light: #7d5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#371fa1",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 251.077,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3734,
    "c": 0.19182,
    "h": 280.1
  },
  "luminance": 0.04365
}

Semantic roles & 50–950 ramp

primary
#371FA1
secondary
#B0C458
accent
#EB3DCB
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #371FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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