#371C8C#371C8C

#371C8C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.170 H 284.3°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#371C8C
RGBrgb(55, 28, 140)
HSLhsl(254, 67%, 33%)
HSVhsv(254, 80%, 55%)
CMYKcmyk(60.7%, 80%, 0%, 45.1%)
CIE-LABlab(22.07, 42.67, -57.04)
CIE-LCHlch(22.07, 71.24, 306.80°)
OKLaboklab(34.74% 0.042 -0.1644)
OKLCHoklch(34.74% 0.17 284.3)
XYZxyz(6.7230, 3.5357, 25.1341)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C8C #718C1C
analogous
#1C398C #371C8C #6F1C8C
triadic
#371C8C #8C371C #1C8C37
tetradic
#371C8C #8C1C39 #718C1C #1C8C6F
square
#371C8C #8C1C39 #718C1C #1C8C6F
split-complementary
#371C8C #8C6F1C #398C1C
monochromatic
#0F0826 #231259 #371C8C #4B26BF #6B48DA

Accessibility & contrast

On white

12.30
#371C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#371C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C8C
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C8C#FFFFFF#000000##FFFFFF
##371C8C1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#013D54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #371c8c;
/* rgb */ color: rgb(55, 28, 140);
/* oklch */ color: oklch(34.7% 0.170 284.3);
Tailwind
colors: {
  custom: {
    50: '#795caf',
    500: '#371c8c',
    950: '#000000',
  },
}
SCSS
$custom: #371c8c;
$custom-light: #795caf;
$custom-dark: #000000;
JSON
{
  "hex": "#371c8c",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 254.464,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34741,
    "c": 0.16967,
    "h": 284.3
  },
  "luminance": 0.03536
}

Semantic roles & 50–950 ramp

primary
#371C8C
secondary
#A0BC48
accent
#EA3EC0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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