#371E7A#371E7A

#371E7A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.145 H 288.2°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#371E7A
RGBrgb(55, 30, 122)
HSLhsl(256, 61%, 30%)
HSVhsv(256, 75%, 48%)
CMYKcmyk(54.9%, 75.4%, 0%, 52.2%)
CIE-LABlab(20.62, 36.16, -48.08)
CIE-LCHlch(20.62, 60.16, 306.95°)
OKLaboklab(33.17% 0.0454 -0.1382)
OKLCHoklch(33.17% 0.145 288.2)
XYZxyz(5.5516, 3.1456, 18.7232)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371E7A #617A1E
analogous
#1E337A #371E7A #651E7A
triadic
#371E7A #7A371E #1E7A37
tetradic
#371E7A #7A1E33 #617A1E #1E7A65
square
#371E7A #7A1E33 #617A1E #1E7A65
split-complementary
#371E7A #7A651E #337A1E
monochromatic
#0B0619 #211249 #371E7A #4D2AAB #6942D0

Accessibility & contrast

On white

12.89
#371E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371E7A
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371E7A#FFFFFF#000000##FFFFFF
##371E7A1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#1D374A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371e7a;
/* rgb */ color: rgb(55, 30, 122);
/* oklch */ color: oklch(33.2% 0.145 288.2);
Tailwind
colors: {
  custom: {
    50: '#765ca1',
    500: '#371e7a',
    950: '#000000',
  },
}
SCSS
$custom: #371e7a;
$custom-light: #765ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#371e7a",
  "rgb": {
    "r": 55,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 256.304,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33168,
    "c": 0.14549,
    "h": 288.2
  },
  "luminance": 0.03146
}

Semantic roles & 50–950 ramp

primary
#371E7A
secondary
#91AE46
accent
#E444B8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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