#371C7D#371C7D

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

Color values

HEX#371C7D
RGBrgb(55, 28, 125)
HSLhsl(257, 63%, 30%)
HSVhsv(257, 78%, 49%)
CMYKcmyk(56%, 77.6%, 0%, 51%)
CIE-LABlab(20.53, 38.15, -50.14)
CIE-LCHlch(20.53, 63.00, 307.27°)
OKLaboklab(33.2% 0.0464 -0.1442)
OKLCHoklch(33.2% 0.151 287.8)
XYZxyz(5.6914, 3.1231, 19.7010)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C7D #627D1C
analogous
#1C317D #371C7D #681C7D
triadic
#371C7D #7D371C #1C7D37
tetradic
#371C7D #7D1C31 #627D1C #1C7D68
square
#371C7D #7D1C31 #627D1C #1C7D68
split-complementary
#371C7D #7D681C #317D1C
monochromatic
#0B0619 #21114B #371C7D #4D27AF #693FD4

Accessibility & contrast

On white

12.93
#371C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371C7D
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C7D#FFFFFF#000000##FFFFFF
##371C7D1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#1A374B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371c7d;
/* rgb */ color: rgb(55, 28, 125);
/* oklch */ color: oklch(33.2% 0.151 287.8);
Tailwind
colors: {
  custom: {
    50: '#765ba4',
    500: '#371c7d',
    950: '#000000',
  },
}
SCSS
$custom: #371c7d;
$custom-light: #765ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#371c7d",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 256.701,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.33196,
    "c": 0.15148,
    "h": 287.8
  },
  "luminance": 0.03123
}

Semantic roles & 50–950 ramp

primary
#371C7D
secondary
#92B144
accent
#E641B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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