#371C7F#371C7F

#371C7F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.154 H 287.3°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#371C7F
RGBrgb(55, 28, 127)
HSLhsl(256, 64%, 30%)
HSVhsv(256, 78%, 50%)
CMYKcmyk(56.7%, 78%, 0%, 50.2%)
CIE-LABlab(20.73, 38.76, -51.08)
CIE-LCHlch(20.73, 64.12, 307.19°)
OKLaboklab(33.4% 0.0458 -0.147)
OKLCHoklch(33.4% 0.154 287.3)
XYZxyz(5.8204, 3.1747, 20.3806)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C7F #647F1C
analogous
#1C327F #371C7F #691C7F
triadic
#371C7F #7F371C #1C7F37
tetradic
#371C7F #7F1C32 #647F1C #1C7F69
square
#371C7F #7F1C32 #647F1C #1C7F69
split-complementary
#371C7F #7F691C #327F1C
monochromatic
#0C061B #21114D #371C7F #4D27B1 #6940D5

Accessibility & contrast

On white

12.84
#371C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#371C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C7F
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C7F#FFFFFF#000000##FFFFFF
##371C7F1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#18384C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371c7f;
/* rgb */ color: rgb(55, 28, 127);
/* oklch */ color: oklch(33.4% 0.154 287.3);
Tailwind
colors: {
  custom: {
    50: '#775ca5',
    500: '#371c7f',
    950: '#000000',
  },
}
SCSS
$custom: #371c7f;
$custom-light: #775ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#371c7f",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 256.364,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33397,
    "c": 0.15394,
    "h": 287.3
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#371C7F
secondary
#94B344
accent
#E741BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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