#371C79#371C79

#371C79 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.147 H 288.9°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#371C79
RGBrgb(55, 28, 121)
HSLhsl(257, 62%, 29%)
HSVhsv(257, 77%, 47%)
CMYKcmyk(54.5%, 76.9%, 0%, 52.5%)
CIE-LABlab(20.14, 36.94, -48.23)
CIE-LCHlch(20.14, 60.76, 307.45°)
OKLaboklab(32.8% 0.0475 -0.1386)
OKLCHoklch(32.8% 0.147 288.9)
XYZxyz(5.4410, 3.0230, 18.3822)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C79 #5E791C
analogous
#1C3079 #371C79 #661C79
triadic
#371C79 #79371C #1C7937
tetradic
#371C79 #791C30 #5E791C #1C7966
square
#371C79 #791C30 #5E791C #1C7966
split-complementary
#371C79 #79661C #30791C
monochromatic
#0B0619 #201047 #371C79 #4E28AB #683DD2

Accessibility & contrast

On white

13.09
#371C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#371C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C79
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C79#FFFFFF#000000##FFFFFF
##371C791.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#1E3549
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371c79;
/* rgb */ color: rgb(55, 28, 121);
/* oklch */ color: oklch(32.8% 0.147 288.9);
Tailwind
colors: {
  custom: {
    50: '#765ba1',
    500: '#371c79',
    950: '#000000',
  },
}
SCSS
$custom: #371c79;
$custom-light: #765ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#371c79",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 257.419,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32797,
    "c": 0.14654,
    "h": 288.9
  },
  "luminance": 0.03023
}

Semantic roles & 50–950 ramp

primary
#371C79
secondary
#8EAD44
accent
#E542B6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371C79

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

Preview Lab → · Contrast checker → · Palette generator →

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