#371C7E#371C7E

#371C7E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.153 H 287.6°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#371C7E
RGBrgb(55, 28, 126)
HSLhsl(257, 64%, 30%)
HSVhsv(257, 78%, 49%)
CMYKcmyk(56.3%, 77.8%, 0%, 50.6%)
CIE-LABlab(20.63, 38.46, -50.61)
CIE-LCHlch(20.63, 63.56, 307.23°)
OKLaboklab(33.3% 0.0461 -0.1456)
OKLCHoklch(33.3% 0.153 287.6)
XYZxyz(5.7556, 3.1488, 20.0391)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C7E #637E1C
analogous
#1C327E #371C7E #681C7E
triadic
#371C7E #7E371C #1C7E37
tetradic
#371C7E #7E1C32 #637E1C #1C7E68
square
#371C7E #7E1C32 #637E1C #1C7E68
split-complementary
#371C7E #7E681C #327E1C
monochromatic
#0B061A #21114C #371C7E #4D27B0 #6940D5

Accessibility & contrast

On white

12.89
#371C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#371C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C7E
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C7E#FFFFFF#000000##FFFFFF
##371C7E1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#19374C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371c7e;
/* rgb */ color: rgb(55, 28, 126);
/* oklch */ color: oklch(33.3% 0.153 287.6);
Tailwind
colors: {
  custom: {
    50: '#775ba4',
    500: '#371c7e',
    950: '#000000',
  },
}
SCSS
$custom: #371c7e;
$custom-light: #775ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#371c7e",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 256.531,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33296,
    "c": 0.15271,
    "h": 287.6
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#371C7E
secondary
#93B244
accent
#E741B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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