#371E7B#371E7B

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

Color values

HEX#371E7B
RGBrgb(55, 30, 123)
HSLhsl(256, 61%, 30%)
HSVhsv(256, 76%, 48%)
CMYKcmyk(55.3%, 75.6%, 0%, 51.8%)
CIE-LABlab(20.71, 36.47, -48.56)
CIE-LCHlch(20.71, 60.73, 306.91°)
OKLaboklab(33.27% 0.0452 -0.1396)
OKLCHoklch(33.27% 0.147 287.9)
XYZxyz(5.6139, 3.1706, 19.0512)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E7B #627B1E
analogous
#1E347B #371E7B #651E7B
triadic
#371E7B #7B371E #1E7B37
tetradic
#371E7B #7B1E34 #627B1E #1E7B65
square
#371E7B #7B1E34 #627B1E #1E7B65
split-complementary
#371E7B #7B651E #347B1E
monochromatic
#0B0619 #21124A #371E7B #4D2AAC #6942D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##371E7B#FFFFFF#000000##FFFFFF
##371E7B1.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)
#00347E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#1C374A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371e7b;
/* rgb */ color: rgb(55, 30, 123);
/* oklch */ color: oklch(33.3% 0.147 287.9);
Tailwind
colors: {
  custom: {
    50: '#765ca2',
    500: '#371e7b',
    950: '#000000',
  },
}
SCSS
$custom: #371e7b;
$custom-light: #765ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#371e7b",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 256.129,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.33266,
    "c": 0.14674,
    "h": 287.9
  },
  "luminance": 0.03171
}

Semantic roles & 50–950 ramp

primary
#371E7B
secondary
#92AE46
accent
#E444B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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