#371157#371157

#371157 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.119 H 304.4°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#371157
RGBrgb(55, 17, 87)
HSLhsl(273, 67%, 20%)
HSVhsv(273, 80%, 34%)
CMYKcmyk(36.8%, 80.5%, 0%, 65.9%)
CIE-LABlab(14.96, 32.83, -34.37)
CIE-LCHlch(14.96, 47.53, 313.68°)
OKLaboklab(28.17% 0.067 -0.0979)
OKLCHoklch(28.17% 0.119 304.4)
XYZxyz(3.4959, 1.9013, 9.1978)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371157 #315711
analogous
#141157 #371157 #571154
triadic
#371157 #573711 #115737
tetradic
#371157 #571411 #315711 #115457
square
#371157 #571411 #315711 #115457
split-complementary
#371157 #545711 #115714
monochromatic
#10051A #170724 #371157 #571B8A #7825BD

Accessibility & contrast

On white

15.22
#371157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371157
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371157#FFFFFF#000000##FFFFFF
##3711571.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#312233
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #371157;
/* rgb */ color: rgb(55, 17, 87);
/* oklch */ color: oklch(28.2% 0.119 304.4);
Tailwind
colors: {
  custom: {
    50: '#725387',
    500: '#371157',
    950: '#000000',
  },
}
SCSS
$custom: #371157;
$custom-light: #725387;
$custom-dark: #000000;
JSON
{
  "hex": "#371157",
  "rgb": {
    "r": 55,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 272.571,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28165,
    "c": 0.11861,
    "h": 304.4
  },
  "luminance": 0.01901
}

Semantic roles & 50–950 ramp

primary
#371157
secondary
#5E9034
accent
#EA3E8D
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #371157

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

Preview Lab → · Contrast checker → · Palette generator →

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