#371C85#371C85

#371C85 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.161 H 285.9°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#371C85
RGBrgb(55, 28, 133)
HSLhsl(255, 65%, 32%)
HSVhsv(255, 79%, 52%)
CMYKcmyk(58.6%, 78.9%, 0%, 47.8%)
CIE-LABlab(21.34, 40.57, -53.86)
CIE-LCHlch(21.34, 67.43, 306.99°)
OKLaboklab(34.01% 0.0441 -0.1551)
OKLCHoklch(34.01% 0.161 285.9)
XYZxyz(6.2232, 3.3358, 22.5017)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C85 #6A851C
analogous
#1C3685 #371C85 #6C1C85
triadic
#371C85 #85371C #1C8537
tetradic
#371C85 #851C36 #6A851C #1C856C
square
#371C85 #851C36 #6A851C #1C856C
split-complementary
#371C85 #856C1C #36851C
monochromatic
#0D0720 #221152 #371C85 #4C27B8 #6A44D8

Accessibility & contrast

On white

12.60
#371C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#371C85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C85
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C85#FFFFFF#000000##FFFFFF
##371C851.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#103A50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371c85;
/* rgb */ color: rgb(55, 28, 133);
/* oklch */ color: oklch(34.0% 0.161 285.9);
Tailwind
colors: {
  custom: {
    50: '#785caa',
    500: '#371c85',
    950: '#000000',
  },
}
SCSS
$custom: #371c85;
$custom-light: #785caa;
$custom-dark: #000000;
JSON
{
  "hex": "#371c85",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 133
  },
  "hsl": {
    "h": 255.429,
    "s": 65.217,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3401,
    "c": 0.16125,
    "h": 285.9
  },
  "luminance": 0.03336
}

Semantic roles & 50–950 ramp

primary
#371C85
secondary
#9AB845
accent
#E840BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371C85

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

Preview Lab → · Contrast checker → · Palette generator →

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