#371C78#371C78

#371C78 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.145 H 289.2°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#371C78
RGBrgb(55, 28, 120)
HSLhsl(258, 62%, 29%)
HSVhsv(258, 77%, 47%)
CMYKcmyk(54.2%, 76.7%, 0%, 52.9%)
CIE-LABlab(20.04, 36.64, -47.75)
CIE-LCHlch(20.04, 60.19, 307.50°)
OKLaboklab(32.7% 0.0477 -0.1372)
OKLCHoklch(32.7% 0.145 289.2)
XYZxyz(5.3800, 2.9986, 18.0610)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C78 #5D781C
analogous
#1C2F78 #371C78 #651C78
triadic
#371C78 #78371C #1C7837
tetradic
#371C78 #781C2F #5D781C #1C7865
square
#371C78 #781C2F #5D781C #1C7865
split-complementary
#371C78 #78651C #2F781C
monochromatic
#0B0619 #201046 #371C78 #4E28AA #683DD2

Accessibility & contrast

On white

13.13
#371C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371C78
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C78#FFFFFF#000000##FFFFFF
##371C781.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#1F3548
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371c78;
/* rgb */ color: rgb(55, 28, 120);
/* oklch */ color: oklch(32.7% 0.145 289.2);
Tailwind
colors: {
  custom: {
    50: '#765ba0',
    500: '#371c78',
    950: '#000000',
  },
}
SCSS
$custom: #371c78;
$custom-light: #765ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#371c78",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 257.609,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32699,
    "c": 0.1453,
    "h": 289.2
  },
  "luminance": 0.02999
}

Semantic roles & 50–950 ramp

primary
#371C78
secondary
#8DAC44
accent
#E543B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #371C78

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

Preview Lab → · Contrast checker → · Palette generator →

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