#371D7F#371D7F

#371D7F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.153 H 287.1°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#371D7F
RGBrgb(55, 29, 127)
HSLhsl(256, 63%, 31%)
HSVhsv(256, 77%, 50%)
CMYKcmyk(56.7%, 77.2%, 0%, 50.2%)
CIE-LABlab(20.92, 38.23, -50.77)
CIE-LCHlch(20.92, 63.56, 306.98°)
OKLaboklab(33.53% 0.045 -0.1461)
OKLCHoklch(33.53% 0.153 287.1)
XYZxyz(5.8445, 3.2229, 20.3887)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D7F #657F1D
analogous
#1D347F #371D7F #681D7F
triadic
#371D7F #7F371D #1D7F37
tetradic
#371D7F #7F1D34 #657F1D #1D7F68
square
#371D7F #7F1D34 #657F1D #1D7F68
split-complementary
#371D7F #7F681D #347F1D
monochromatic
#0C061B #21124D #371D7F #4D28B1 #6942D4

Accessibility & contrast

On white

12.77
#371D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#371D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D7F
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D7F#FFFFFF#000000##FFFFFF
##371D7F1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#18384C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371d7f;
/* rgb */ color: rgb(55, 29, 127);
/* oklch */ color: oklch(33.5% 0.153 287.1);
Tailwind
colors: {
  custom: {
    50: '#775ca5',
    500: '#371d7f',
    950: '#000000',
  },
}
SCSS
$custom: #371d7f;
$custom-light: #775ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#371d7f",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 255.918,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33527,
    "c": 0.15285,
    "h": 287.1
  },
  "luminance": 0.03223
}

Semantic roles & 50–950 ramp

primary
#371D7F
secondary
#95B245
accent
#E642BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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