#371B80#371B80

#371B80 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.156 H 287.2°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#371B80
RGBrgb(55, 27, 128)
HSLhsl(257, 65%, 30%)
HSVhsv(257, 79%, 50%)
CMYKcmyk(57%, 78.9%, 0%, 49.8%)
CIE-LABlab(20.65, 39.57, -51.84)
CIE-LCHlch(20.65, 65.22, 307.36°)
OKLaboklab(33.37% 0.0463 -0.1492)
OKLCHoklch(33.37% 0.156 287.2)
XYZxyz(5.8626, 3.1543, 20.7178)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B80 #64801B
analogous
#1B3180 #371B80 #691B80
triadic
#371B80 #80371B #1B8037
tetradic
#371B80 #801B31 #64801B #1B8069
square
#371B80 #801B31 #64801B #1B8069
split-complementary
#371B80 #80691B #31801B
monochromatic
#0C061B #21104D #371B80 #4D26B3 #693FD6

Accessibility & contrast

On white

12.88
#371B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#371B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371B80
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B80#FFFFFF#000000##FFFFFF
##371B801.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.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: #371b80;
/* rgb */ color: rgb(55, 27, 128);
/* oklch */ color: oklch(33.4% 0.156 287.2);
Tailwind
colors: {
  custom: {
    50: '#775ba6',
    500: '#371b80',
    950: '#000000',
  },
}
SCSS
$custom: #371b80;
$custom-light: #775ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#371b80",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 256.634,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33372,
    "c": 0.15621,
    "h": 287.2
  },
  "luminance": 0.03155
}

Semantic roles & 50–950 ramp

primary
#371B80
secondary
#94B443
accent
#E840B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #371B80

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

Preview Lab → · Contrast checker → · Palette generator →

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