#371F76#371F76

#371F76 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.139 H 289.0°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#371F76
RGBrgb(55, 31, 118)
HSLhsl(257, 58%, 29%)
HSVhsv(257, 74%, 46%)
CMYKcmyk(53.4%, 73.7%, 0%, 53.7%)
CIE-LABlab(20.44, 34.37, -45.82)
CIE-LCHlch(20.44, 57.27, 306.87°)
OKLaboklab(32.92% 0.0454 -0.1316)
OKLCHoklch(32.92% 0.139 289)
XYZxyz(5.3346, 3.1000, 17.4533)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F76 #5E761F
analogous
#1F3376 #371F76 #631F76
triadic
#371F76 #76371F #1F7637
tetradic
#371F76 #761F33 #5E761F #1F7663
square
#371F76 #761F33 #5E761F #1F7663
split-complementary
#371F76 #76631F #33761F
monochromatic
#0B0618 #201246 #371F76 #4E2CA6 #6842CD

Accessibility & contrast

On white

12.96
#371F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#371F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F76
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F76#FFFFFF#000000##FFFFFF
##371F761.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#002F74
Tritanopia (blue-blind)
#203648
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371f76;
/* rgb */ color: rgb(55, 31, 118);
/* oklch */ color: oklch(32.9% 0.139 289.0);
Tailwind
colors: {
  custom: {
    50: '#755d9e',
    500: '#371f76',
    950: '#000000',
  },
}
SCSS
$custom: #371f76;
$custom-light: #755d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#371f76",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 256.552,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32925,
    "c": 0.13919,
    "h": 289
  },
  "luminance": 0.031
}

Semantic roles & 50–950 ramp

primary
#371F76
secondary
#8EAA47
accent
#E246B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371F76

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

Preview Lab → · Contrast checker → · Palette generator →

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