#371C84#371C84

#371C84 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.160 H 286.1°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#371C84
RGBrgb(55, 28, 132)
HSLhsl(256, 65%, 31%)
HSVhsv(256, 79%, 52%)
CMYKcmyk(58.3%, 78.8%, 0%, 48.2%)
CIE-LABlab(21.24, 40.27, -53.40)
CIE-LCHlch(21.24, 66.88, 307.02°)
OKLaboklab(33.91% 0.0444 -0.1538)
OKLCHoklch(33.91% 0.16 286.1)
XYZxyz(6.1544, 3.3083, 22.1396)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C84 #69841C
analogous
#1C3584 #371C84 #6B1C84
triadic
#371C84 #84371C #1C8437
tetradic
#371C84 #841C35 #69841C #1C846B
square
#371C84 #841C35 #69841C #1C846B
split-complementary
#371C84 #846B1C #35841C
monochromatic
#0D071F #221152 #371C84 #4C27B6 #6A43D7

Accessibility & contrast

On white

12.64
#371C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#371C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C84
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C84#FFFFFF#000000##FFFFFF
##371C841.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#113A4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371c84;
/* rgb */ color: rgb(55, 28, 132);
/* oklch */ color: oklch(33.9% 0.160 286.1);
Tailwind
colors: {
  custom: {
    50: '#785ca9',
    500: '#371c84',
    950: '#000000',
  },
}
SCSS
$custom: #371c84;
$custom-light: #785ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#371c84",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 255.577,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33907,
    "c": 0.16004,
    "h": 286.1
  },
  "luminance": 0.03309
}

Semantic roles & 50–950 ramp

primary
#371C84
secondary
#99B745
accent
#E840BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371C84

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

Preview Lab → · Contrast checker → · Palette generator →

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