#371D80#371D80

#371D80 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.154 H 286.9°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#371D80
RGBrgb(55, 29, 128)
HSLhsl(256, 63%, 31%)
HSVhsv(256, 77%, 50%)
CMYKcmyk(57%, 77.3%, 0%, 49.8%)
CIE-LABlab(21.02, 38.54, -51.24)
CIE-LCHlch(21.02, 64.12, 306.94°)
OKLaboklab(33.63% 0.0447 -0.1475)
OKLCHoklch(33.63% 0.154 286.9)
XYZxyz(5.9100, 3.2491, 20.7336)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D80 #66801D
analogous
#1D3480 #371D80 #681D80
triadic
#371D80 #80371D #1D8037
tetradic
#371D80 #801D34 #66801D #1D8068
square
#371D80 #801D34 #66801D #1D8068
split-complementary
#371D80 #80681D #34801D
monochromatic
#0C061C #22124E #371D80 #4C28B2 #6943D4

Accessibility & contrast

On white

12.73
#371D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#371D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D80
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D80#FFFFFF#000000##FFFFFF
##371D801.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#17394D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371d80;
/* rgb */ color: rgb(55, 29, 128);
/* oklch */ color: oklch(33.6% 0.154 286.9);
Tailwind
colors: {
  custom: {
    50: '#775ca6',
    500: '#371d80',
    950: '#000000',
  },
}
SCSS
$custom: #371d80;
$custom-light: #775ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#371d80",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 128
  },
  "hsl": {
    "h": 255.758,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33628,
    "c": 0.15409,
    "h": 286.9
  },
  "luminance": 0.03249
}

Semantic roles & 50–950 ramp

primary
#371D80
secondary
#96B345
accent
#E642BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371D80

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

Preview Lab → · Contrast checker → · Palette generator →

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