#371C81#371C81

#371C81 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.156 H 286.8°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#371C81
RGBrgb(55, 28, 129)
HSLhsl(256, 64%, 31%)
HSVhsv(256, 78%, 51%)
CMYKcmyk(57.4%, 78.3%, 0%, 49.4%)
CIE-LABlab(20.93, 39.36, -52.01)
CIE-LCHlch(20.93, 65.23, 307.12°)
OKLaboklab(33.6% 0.0452 -0.1497)
OKLCHoklch(33.6% 0.156 286.8)
XYZxyz(5.9521, 3.2274, 21.0739)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C81 #66811C
analogous
#1C3381 #371C81 #691C81
triadic
#371C81 #81371C #1C8137
tetradic
#371C81 #811C33 #66811C #1C8169
square
#371C81 #811C33 #66811C #1C8169
split-complementary
#371C81 #81691C #33811C
monochromatic
#0C061C #22114F #371C81 #4C27B3 #6942D6

Accessibility & contrast

On white

12.76
#371C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#371C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C81
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C81#FFFFFF#000000##FFFFFF
##371C811.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#16384D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371c81;
/* rgb */ color: rgb(55, 28, 129);
/* oklch */ color: oklch(33.6% 0.156 286.8);
Tailwind
colors: {
  custom: {
    50: '#775ca7',
    500: '#371c81',
    950: '#000000',
  },
}
SCSS
$custom: #371c81;
$custom-light: #775ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#371c81",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 256.04,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.336,
    "c": 0.15639,
    "h": 286.8
  },
  "luminance": 0.03228
}

Semantic roles & 50–950 ramp

primary
#371C81
secondary
#96B444
accent
#E740BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #371C81

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

Preview Lab → · Contrast checker → · Palette generator →

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