#371C80#371C80

#371C80 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.155 H 287.1°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#371C80
RGBrgb(55, 28, 128)
HSLhsl(256, 64%, 31%)
HSVhsv(256, 78%, 50%)
CMYKcmyk(57%, 78.1%, 0%, 49.8%)
CIE-LABlab(20.83, 39.06, -51.55)
CIE-LCHlch(20.83, 64.67, 307.15°)
OKLaboklab(33.5% 0.0455 -0.1483)
OKLCHoklch(33.5% 0.155 287.1)
XYZxyz(5.8859, 3.2009, 20.7256)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C80 #65801C
analogous
#1C3380 #371C80 #691C80
triadic
#371C80 #80371C #1C8037
tetradic
#371C80 #801C33 #65801C #1C8069
square
#371C80 #801C33 #65801C #1C8069
split-complementary
#371C80 #80691C #33801C
monochromatic
#0C061C #21114E #371C80 #4D27B2 #6941D5

Accessibility & contrast

On white

12.80
#371C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#371C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C80
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C80#FFFFFF#000000##FFFFFF
##371C801.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#17384D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371c80;
/* rgb */ color: rgb(55, 28, 128);
/* oklch */ color: oklch(33.5% 0.155 287.1);
Tailwind
colors: {
  custom: {
    50: '#775ca6',
    500: '#371c80',
    950: '#000000',
  },
}
SCSS
$custom: #371c80;
$custom-light: #775ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#371c80",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 128
  },
  "hsl": {
    "h": 256.2,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33498,
    "c": 0.15517,
    "h": 287.1
  },
  "luminance": 0.03201
}

Semantic roles & 50–950 ramp

primary
#371C80
secondary
#95B344
accent
#E741BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371C80

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

Preview Lab → · Contrast checker → · Palette generator →

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