#371E7D#371E7D

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

Color values

HEX#371E7D
RGBrgb(55, 30, 125)
HSLhsl(256, 61%, 30%)
HSVhsv(256, 76%, 49%)
CMYKcmyk(56%, 76%, 0%, 51%)
CIE-LABlab(20.91, 37.08, -49.52)
CIE-LCHlch(20.91, 61.86, 306.83°)
OKLaboklab(33.46% 0.0447 -0.1424)
OKLCHoklch(33.46% 0.149 287.4)
XYZxyz(5.7404, 3.2211, 19.7173)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E7D #647D1E
analogous
#1E357D #371E7D #661E7D
triadic
#371E7D #7D371E #1E7D37
tetradic
#371E7D #7D1E35 #647D1E #1E7D66
square
#371E7D #7D1E35 #647D1E #1E7D66
split-complementary
#371E7D #7D661E #357D1E
monochromatic
#0C061A #21124C #371E7D #4D2AAE #6943D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##371E7D#FFFFFF#000000##FFFFFF
##371E7D1.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)
#003480
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#1A384C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371e7d;
/* rgb */ color: rgb(55, 30, 125);
/* oklch */ color: oklch(33.5% 0.149 287.4);
Tailwind
colors: {
  custom: {
    50: '#765da4',
    500: '#371e7d',
    950: '#000000',
  },
}
SCSS
$custom: #371e7d;
$custom-light: #765da4;
$custom-dark: #000000;
JSON
{
  "hex": "#371e7d",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 255.789,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33462,
    "c": 0.14925,
    "h": 287.4
  },
  "luminance": 0.03221
}

Semantic roles & 50–950 ramp

primary
#371E7D
secondary
#94B046
accent
#E443BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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