#371C7C#371C7C

#371C7C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.150 H 288.1°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#371C7C
RGBrgb(55, 28, 124)
HSLhsl(257, 63%, 30%)
HSVhsv(257, 77%, 49%)
CMYKcmyk(55.6%, 77.4%, 0%, 51.4%)
CIE-LABlab(20.43, 37.85, -49.66)
CIE-LCHlch(20.43, 62.44, 307.31°)
OKLaboklab(33.1% 0.0466 -0.1428)
OKLCHoklch(33.1% 0.15 288.1)
XYZxyz(5.6278, 3.0977, 19.3662)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C7C #617C1C
analogous
#1C317C #371C7C #671C7C
triadic
#371C7C #7C371C #1C7C37
tetradic
#371C7C #7C1C31 #617C1C #1C7C67
square
#371C7C #7C1C31 #617C1C #1C7C67
split-complementary
#371C7C #7C671C #317C1C
monochromatic
#0B0619 #21114A #371C7C #4D27AE #693FD4

Accessibility & contrast

On white

12.97
#371C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#371C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C7C
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C7C#FFFFFF#000000##FFFFFF
##371C7C1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#1B374B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371c7c;
/* rgb */ color: rgb(55, 28, 124);
/* oklch */ color: oklch(33.1% 0.150 288.1);
Tailwind
colors: {
  custom: {
    50: '#765ba3',
    500: '#371c7c',
    950: '#000000',
  },
}
SCSS
$custom: #371c7c;
$custom-light: #765ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#371c7c",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 256.875,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33096,
    "c": 0.15025,
    "h": 288.1
  },
  "luminance": 0.03098
}

Semantic roles & 50–950 ramp

primary
#371C7C
secondary
#91B044
accent
#E642B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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