#371D7D#371D7D

#371D7D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.150 H 287.6°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#371D7D
RGBrgb(55, 29, 125)
HSLhsl(256, 62%, 30%)
HSVhsv(256, 77%, 49%)
CMYKcmyk(56%, 76.8%, 0%, 51%)
CIE-LABlab(20.72, 37.62, -49.83)
CIE-LCHlch(20.72, 62.44, 307.05°)
OKLaboklab(33.33% 0.0455 -0.1433)
OKLCHoklch(33.33% 0.15 287.6)
XYZxyz(5.7155, 3.1713, 19.7090)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D7D #637D1D
analogous
#1D337D #371D7D #671D7D
triadic
#371D7D #7D371D #1D7D37
tetradic
#371D7D #7D1D33 #637D1D #1D7D67
square
#371D7D #7D1D33 #637D1D #1D7D67
split-complementary
#371D7D #7D671D #337D1D
monochromatic
#0B061A #21114B #371D7D #4D29AF #6941D3

Accessibility & contrast

On white

12.85
#371D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#371D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D7D
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D7D#FFFFFF#000000##FFFFFF
##371D7D1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#1A374B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371d7d;
/* rgb */ color: rgb(55, 29, 125);
/* oklch */ color: oklch(33.3% 0.150 287.6);
Tailwind
colors: {
  custom: {
    50: '#765ca4',
    500: '#371d7d',
    950: '#000000',
  },
}
SCSS
$custom: #371d7d;
$custom-light: #765ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#371d7d",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 256.25,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33327,
    "c": 0.15038,
    "h": 287.6
  },
  "luminance": 0.03172
}

Semantic roles & 50–950 ramp

primary
#371D7D
secondary
#93B145
accent
#E542B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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