#371571#371571

#371571 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.144 H 292.7°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#371571
RGBrgb(55, 21, 113)
HSLhsl(262, 69%, 26%)
HSVhsv(262, 81%, 44%)
CMYKcmyk(51.3%, 81.4%, 0%, 55.7%)
CIE-LABlab(18.10, 38.13, -46.43)
CIE-LCHlch(18.10, 60.08, 309.39°)
OKLaboklab(31.13% 0.0557 -0.1333)
OKLCHoklch(31.13% 0.144 292.7)
XYZxyz(4.8235, 2.5406, 15.8558)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371571 #4F7115
analogous
#152171 #371571 #651571
triadic
#371571 #713715 #157137
tetradic
#371571 #711521 #4F7115 #157165
square
#371571 #711521 #4F7115 #157165
split-complementary
#371571 #716515 #217115
monochromatic
#0D051A #1E0B3D #371571 #501FA5 #6929D7

Accessibility & contrast

On white

13.92
#371571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371571
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371571#FFFFFF#000000##FFFFFF
##3715711.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371571;
/* rgb */ color: rgb(55, 21, 113);
/* oklch */ color: oklch(31.1% 0.144 292.7);
Tailwind
colors: {
  custom: {
    50: '#75579b',
    500: '#371571',
    950: '#000000',
  },
}
SCSS
$custom: #371571;
$custom-light: #75579b;
$custom-dark: #000000;
JSON
{
  "hex": "#371571",
  "rgb": {
    "r": 55,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 262.174,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31129,
    "c": 0.14447,
    "h": 292.7
  },
  "luminance": 0.02541
}

Semantic roles & 50–950 ramp

primary
#371571
secondary
#7FA73B
accent
#EB3CAB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #371571

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

Preview Lab → · Contrast checker → · Palette generator →

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