#371B84#371B84

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

Color values

HEX#371B84
RGBrgb(55, 27, 132)
HSLhsl(256, 66%, 31%)
HSVhsv(256, 80%, 52%)
CMYKcmyk(58.3%, 79.5%, 0%, 48.2%)
CIE-LABlab(21.06, 40.77, -53.69)
CIE-LCHlch(21.06, 67.42, 307.21°)
OKLaboklab(33.78% 0.0451 -0.1546)
OKLCHoklch(33.78% 0.161 286.3)
XYZxyz(6.1311, 3.2617, 22.1318)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371B84 #68841B
analogous
#1B3384 #371B84 #6B1B84
triadic
#371B84 #84371B #1B8437
tetradic
#371B84 #841B33 #68841B #1B846B
square
#371B84 #841B33 #68841B #1B846B
split-complementary
#371B84 #846B1B #33841B
monochromatic
#0D061E #221151 #371B84 #4C25B7 #6941D8

Accessibility & contrast

On white

12.71
#371B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371B84
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371B84#FFFFFF#000000##FFFFFF
##371B841.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#12394F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371b84;
/* rgb */ color: rgb(55, 27, 132);
/* oklch */ color: oklch(33.8% 0.161 286.3);
Tailwind
colors: {
  custom: {
    50: '#785ba9',
    500: '#371b84',
    950: '#000000',
  },
}
SCSS
$custom: #371b84;
$custom-light: #785ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#371b84",
  "rgb": {
    "r": 55,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 256,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33784,
    "c": 0.16105,
    "h": 286.3
  },
  "luminance": 0.03262
}

Semantic roles & 50–950 ramp

primary
#371B84
secondary
#98B743
accent
#E93FBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371B84

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

Preview Lab → · Contrast checker → · Palette generator →

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