#371C83#371C83

#371C83 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.159 H 286.3°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#371C83
RGBrgb(55, 28, 131)
HSLhsl(256, 65%, 31%)
HSVhsv(256, 79%, 51%)
CMYKcmyk(58%, 78.6%, 0%, 48.6%)
CIE-LABlab(21.14, 39.97, -52.94)
CIE-LCHlch(21.14, 66.33, 307.05°)
OKLaboklab(33.8% 0.0447 -0.1524)
OKLCHoklch(33.8% 0.159 286.3)
XYZxyz(6.0863, 3.2811, 21.7809)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C83 #68831C
analogous
#1C3483 #371C83 #6A1C83
triadic
#371C83 #83371C #1C8337
tetradic
#371C83 #831C34 #68831C #1C836A
square
#371C83 #831C34 #68831C #1C836A
split-complementary
#371C83 #836A1C #34831C
monochromatic
#0D061E #221151 #371C83 #4C27B5 #6943D7

Accessibility & contrast

On white

12.68
#371C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371C83
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C83#FFFFFF#000000##FFFFFF
##371C831.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#13394F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371c83;
/* rgb */ color: rgb(55, 28, 131);
/* oklch */ color: oklch(33.8% 0.159 286.3);
Tailwind
colors: {
  custom: {
    50: '#775ca8',
    500: '#371c83',
    950: '#000000',
  },
}
SCSS
$custom: #371c83;
$custom-light: #775ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#371c83",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 131
  },
  "hsl": {
    "h": 255.728,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33804,
    "c": 0.15883,
    "h": 286.3
  },
  "luminance": 0.03281
}

Semantic roles & 50–950 ramp

primary
#371C83
secondary
#98B645
accent
#E840BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371C83

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

Preview Lab → · Contrast checker → · Palette generator →

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