#371E7E#371E7E

#371E7E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.151 H 287.2°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#371E7E
RGBrgb(55, 30, 126)
HSLhsl(256, 62%, 31%)
HSVhsv(256, 76%, 49%)
CMYKcmyk(56.3%, 76.2%, 0%, 50.6%)
CIE-LABlab(21.01, 37.39, -49.99)
CIE-LCHlch(21.01, 62.43, 306.80°)
OKLaboklab(33.56% 0.0444 -0.1438)
OKLCHoklch(33.56% 0.151 287.2)
XYZxyz(5.8046, 3.2468, 20.0555)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E7E #657E1E
analogous
#1E357E #371E7E #671E7E
triadic
#371E7E #7E371E #1E7E37
tetradic
#371E7E #7E1E35 #657E1E #1E7E67
square
#371E7E #7E1E35 #657E1E #1E7E67
split-complementary
#371E7E #7E671E #357E1E
monochromatic
#0C061B #21124D #371E7E #4D2AAF #6944D2

Accessibility & contrast

On white

12.73
#371E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#371E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371E7E
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E7E#FFFFFF#000000##FFFFFF
##371E7E1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#19384C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371e7e;
/* rgb */ color: rgb(55, 30, 126);
/* oklch */ color: oklch(33.6% 0.151 287.2);
Tailwind
colors: {
  custom: {
    50: '#765da4',
    500: '#371e7e',
    950: '#000000',
  },
}
SCSS
$custom: #371e7e;
$custom-light: #765da4;
$custom-dark: #000000;
JSON
{
  "hex": "#371e7e",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 255.625,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33561,
    "c": 0.15051,
    "h": 287.2
  },
  "luminance": 0.03247
}

Semantic roles & 50–950 ramp

primary
#371E7E
secondary
#95B147
accent
#E543BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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