#371572#371572

#371572 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.146 H 292.4°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#371572
RGBrgb(55, 21, 114)
HSLhsl(262, 69%, 26%)
HSVhsv(262, 82%, 45%)
CMYKcmyk(51.8%, 81.6%, 0%, 55.3%)
CIE-LABlab(18.20, 38.41, -46.91)
CIE-LCHlch(18.20, 60.63, 309.31°)
OKLaboklab(31.23% 0.0554 -0.1347)
OKLCHoklch(31.23% 0.146 292.4)
XYZxyz(4.8801, 2.5633, 16.1540)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371572 #507215
analogous
#152272 #371572 #661572
triadic
#371572 #723715 #157237
tetradic
#371572 #721522 #507215 #157266
square
#371572 #721522 #507215 #157266
split-complementary
#371572 #726615 #227215
monochromatic
#0C051A #1E0B3E #371572 #501FA6 #692AD8

Accessibility & contrast

On white

13.88
#371572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#371572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371572
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371572#FFFFFF#000000##FFFFFF
##3715721.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#242F43
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #371572;
/* rgb */ color: rgb(55, 21, 114);
/* oklch */ color: oklch(31.2% 0.146 292.4);
Tailwind
colors: {
  custom: {
    50: '#75579b',
    500: '#371572',
    950: '#000000',
  },
}
SCSS
$custom: #371572;
$custom-light: #75579b;
$custom-dark: #000000;
JSON
{
  "hex": "#371572",
  "rgb": {
    "r": 55,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 261.935,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3123,
    "c": 0.14564,
    "h": 292.4
  },
  "luminance": 0.02563
}

Semantic roles & 50–950 ramp

primary
#371572
secondary
#80A83B
accent
#EC3CAC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #371572

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

Preview Lab → · Contrast checker → · Palette generator →

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