#371C7A#371C7A

#371C7A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.148 H 288.6°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#371C7A
RGBrgb(55, 28, 122)
HSLhsl(257, 63%, 29%)
HSVhsv(257, 77%, 48%)
CMYKcmyk(54.9%, 77%, 0%, 52.2%)
CIE-LABlab(20.23, 37.25, -48.71)
CIE-LCHlch(20.23, 61.32, 307.40°)
OKLaboklab(32.9% 0.0472 -0.14)
OKLCHoklch(32.9% 0.148 288.6)
XYZxyz(5.5026, 3.0476, 18.7069)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C7A #5F7A1C
analogous
#1C307A #371C7A #661C7A
triadic
#371C7A #7A371C #1C7A37
tetradic
#371C7A #7A1C30 #5F7A1C #1C7A66
square
#371C7A #7A1C30 #5F7A1C #1C7A66
split-complementary
#371C7A #7A661C #307A1C
monochromatic
#0B0619 #211148 #371C7A #4D27AC #693ED3

Accessibility & contrast

On white

13.05
#371C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#371C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C7A
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C7A#FFFFFF#000000##FFFFFF
##371C7A1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#1D3649
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371c7a;
/* rgb */ color: rgb(55, 28, 122);
/* oklch */ color: oklch(32.9% 0.148 288.6);
Tailwind
colors: {
  custom: {
    50: '#765ba1',
    500: '#371c7a',
    950: '#000000',
  },
}
SCSS
$custom: #371c7a;
$custom-light: #765ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#371c7a",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 257.234,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32896,
    "c": 0.14777,
    "h": 288.6
  },
  "luminance": 0.03048
}

Semantic roles & 50–950 ramp

primary
#371C7A
secondary
#8FAE44
accent
#E642B7
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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