#371D72#371D72

#371D72 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.137 H 290.7°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#371D72
RGBrgb(55, 29, 114)
HSLhsl(258, 59%, 28%)
HSVhsv(258, 75%, 45%)
CMYKcmyk(51.8%, 74.6%, 0%, 55.3%)
CIE-LABlab(19.66, 34.27, -44.52)
CIE-LCHlch(19.66, 56.18, 307.59°)
OKLaboklab(32.26% 0.0482 -0.1277)
OKLCHoklch(32.26% 0.137 290.7)
XYZxyz(5.0513, 2.9057, 16.2110)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D72 #58721D
analogous
#1D2D72 #371D72 #611D72
triadic
#371D72 #72371D #1D7237
tetradic
#371D72 #721D2D #58721D #1D7261
square
#371D72 #721D2D #58721D #1D7261
split-complementary
#371D72 #72611D #2D721D
monochromatic
#0C0618 #1F1141 #371D72 #4F29A3 #683CCD

Accessibility & contrast

On white

13.28
#371D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#371D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D72
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D72#FFFFFF#000000##FFFFFF
##371D721.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#233345
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371d72;
/* rgb */ color: rgb(55, 29, 114);
/* oklch */ color: oklch(32.3% 0.137 290.7);
Tailwind
colors: {
  custom: {
    50: '#745b9b',
    500: '#371d72',
    950: '#000000',
  },
}
SCSS
$custom: #371d72;
$custom-light: #745b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#371d72",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 114
  },
  "hsl": {
    "h": 258.353,
    "s": 59.441,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32257,
    "c": 0.13654,
    "h": 290.7
  },
  "luminance": 0.02906
}

Semantic roles & 50–950 ramp

primary
#371D72
secondary
#88A645
accent
#E345B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371D72

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

Preview Lab → · Contrast checker → · Palette generator →

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