#371C72#371C72

#371C72 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.1% C 0.138 H 290.9°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#371C72
RGBrgb(55, 28, 114)
HSLhsl(259, 61%, 28%)
HSVhsv(259, 75%, 45%)
CMYKcmyk(51.8%, 75.4%, 0%, 55.3%)
CIE-LABlab(19.46, 34.83, -44.84)
CIE-LCHlch(19.46, 56.78, 307.84°)
OKLaboklab(32.12% 0.0492 -0.1287)
OKLCHoklch(32.12% 0.138 290.9)
XYZxyz(5.0272, 2.8574, 16.2030)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C72 #57721C
analogous
#1C2C72 #371C72 #621C72
triadic
#371C72 #72371C #1C7237
tetradic
#371C72 #721C2C #57721C #1C7262
square
#371C72 #721C2C #57721C #1C7262
split-complementary
#371C72 #72621C #2C721C
monochromatic
#0C0619 #1F1041 #371C72 #4F28A3 #693ACF

Accessibility & contrast

On white

13.36
#371C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#371C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C72
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C72#FFFFFF#000000##FFFFFF
##371C721.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#233345
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #371c72;
/* rgb */ color: rgb(55, 28, 114);
/* oklch */ color: oklch(32.1% 0.138 290.9);
Tailwind
colors: {
  custom: {
    50: '#745b9b',
    500: '#371c72',
    950: '#000000',
  },
}
SCSS
$custom: #371c72;
$custom-light: #745b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#371c72",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 114
  },
  "hsl": {
    "h": 258.837,
    "s": 60.563,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32117,
    "c": 0.13777,
    "h": 290.9
  },
  "luminance": 0.02858
}

Semantic roles & 50–950 ramp

primary
#371C72
secondary
#87A643
accent
#E444B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371C72

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

Preview Lab → · Contrast checker → · Palette generator →

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