#371156#371156

#371156 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.117 H 304.9°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#371156
RGBrgb(55, 17, 86)
HSLhsl(273, 67%, 20%)
HSVhsv(273, 80%, 34%)
CMYKcmyk(36%, 80.2%, 0%, 66.3%)
CIE-LABlab(14.87, 32.57, -33.84)
CIE-LCHlch(14.87, 46.97, 313.90°)
OKLaboklab(28.08% 0.0672 -0.0963)
OKLCHoklch(28.08% 0.117 304.9)
XYZxyz(3.4553, 1.8850, 8.9841)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371156 #305611
analogous
#141156 #371156 #561153
triadic
#371156 #563711 #115637
tetradic
#371156 #561411 #305611 #115356
square
#371156 #561411 #305611 #115356
split-complementary
#371156 #535611 #115614
monochromatic
#10051A #160723 #371156 #581B89 #7825BC

Accessibility & contrast

On white

15.25
#371156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#371156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371156
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371156#FFFFFF#000000##FFFFFF
##3711561.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#312232
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #371156;
/* rgb */ color: rgb(55, 17, 86);
/* oklch */ color: oklch(28.1% 0.117 304.9);
Tailwind
colors: {
  custom: {
    50: '#715386',
    500: '#371156',
    950: '#000000',
  },
}
SCSS
$custom: #371156;
$custom-light: #715386;
$custom-dark: #000000;
JSON
{
  "hex": "#371156",
  "rgb": {
    "r": 55,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 273.043,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28075,
    "c": 0.11745,
    "h": 304.9
  },
  "luminance": 0.01885
}

Semantic roles & 50–950 ramp

primary
#371156
secondary
#5D8F34
accent
#EA3E8B
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #371156

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

Preview Lab → · Contrast checker → · Palette generator →

#371156 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva