#371B76#371B76

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

Color values

HEX#371B76
RGBrgb(55, 27, 118)
HSLhsl(258, 63%, 28%)
HSVhsv(258, 77%, 46%)
CMYKcmyk(53.4%, 77.1%, 0%, 53.7%)
CIE-LABlab(19.65, 36.57, -47.10)
CIE-LCHlch(19.65, 59.63, 307.83°)
OKLaboklab(32.37% 0.0491 -0.1353)
OKLCHoklch(32.37% 0.144 290)
XYZxyz(5.2366, 2.9039, 17.4206)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B76 #5A761B
analogous
#1B2C76 #371B76 #641B76
triadic
#371B76 #76371B #1B7637
tetradic
#371B76 #761B2C #5A761B #1B7664
square
#371B76 #761B2C #5A761B #1B7664
split-complementary
#371B76 #76641B #2C761B
monochromatic
#0C0619 #201044 #371B76 #4E26A8 #683AD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##371B76#FFFFFF#000000##FFFFFF
##371B761.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)
#003179
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#203447
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371b76;
/* rgb */ color: rgb(55, 27, 118);
/* oklch */ color: oklch(32.4% 0.144 290.0);
Tailwind
colors: {
  custom: {
    50: '#755a9e',
    500: '#371b76',
    950: '#000000',
  },
}
SCSS
$custom: #371b76;
$custom-light: #755a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#371b76",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 258.462,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32369,
    "c": 0.14395,
    "h": 290
  },
  "luminance": 0.02904
}

Semantic roles & 50–950 ramp

primary
#371B76
secondary
#8AAA42
accent
#E642B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371B76

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

Preview Lab → · Contrast checker → · Palette generator →

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