#371C40#371C40

#371C40 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.1% C 0.072 H 317.2°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#371C40
RGBrgb(55, 28, 64)
HSLhsl(285, 39%, 18%)
HSVhsv(285, 56%, 25%)
CMYKcmyk(14.1%, 56.2%, 0%, 74.9%)
CIE-LABlab(15.56, 20.51, -17.61)
CIE-LCHlch(15.56, 27.04, 319.35°)
OKLaboklab(28.05% 0.0527 -0.0489)
OKLCHoklch(28.05% 0.072 317.2)
XYZxyz(2.9161, 2.0130, 5.0844)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C40 #25401C
analogous
#251C40 #371C40 #401C37
triadic
#371C40 #40371C #1C4037
tetradic
#371C40 #40251C #25401C #1C3740
square
#371C40 #40251C #25401C #1C3740
split-complementary
#371C40 #37401C #1C4025
monochromatic
#120915 #120915 #371C40 #5C2F6B #804195

Accessibility & contrast

On white

14.97
#371C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#371C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C40
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C40#FFFFFF#000000##FFFFFF
##371C401.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152541
Deuteranopia (green-blind)
#1D283F
Tritanopia (blue-blind)
#37212B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #371c40;
/* rgb */ color: rgb(55, 28, 64);
/* oklch */ color: oklch(28.1% 0.072 317.2);
Tailwind
colors: {
  custom: {
    50: '#6f5975',
    500: '#371c40',
    950: '#000000',
  },
}
SCSS
$custom: #371c40;
$custom-light: #6f5975;
$custom-dark: #000000;
JSON
{
  "hex": "#371c40",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 64
  },
  "hsl": {
    "h": 285,
    "s": 39.13,
    "l": 18.039
  },
  "oklch": {
    "l": 0.28054,
    "c": 0.07191,
    "h": 317.2
  },
  "luminance": 0.02013
}

Semantic roles & 50–950 ramp

primary
#371C40
secondary
#4F7543
accent
#CF5976
background
#F6F5F7
surface
#ECE9ED
border
#C7C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #371C40

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

Preview Lab → · Contrast checker → · Palette generator →

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