#371A84#371A84

#371A84 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.162 H 286.4°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#371A84
RGBrgb(55, 26, 132)
HSLhsl(256, 67%, 31%)
HSVhsv(256, 80%, 52%)
CMYKcmyk(58.3%, 80.3%, 0%, 48.2%)
CIE-LABlab(20.89, 41.26, -53.97)
CIE-LCHlch(20.89, 67.94, 307.40°)
OKLaboklab(33.67% 0.0458 -0.1554)
OKLCHoklch(33.67% 0.162 286.4)
XYZxyz(6.1085, 3.2166, 22.1243)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A84 #67841A
analogous
#1A3284 #371A84 #6C1A84
triadic
#371A84 #84371A #1A8437
tetradic
#371A84 #841A32 #67841A #1A846C
square
#371A84 #841A32 #67841A #1A846C
split-complementary
#371A84 #846C1A #32841A
monochromatic
#0C061E #221051 #371A84 #4C24B7 #693FD9

Accessibility & contrast

On white

12.78
#371A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371A84
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A84#FFFFFF#000000##FFFFFF
##371A841.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#12394F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371a84;
/* rgb */ color: rgb(55, 26, 132);
/* oklch */ color: oklch(33.7% 0.162 286.4);
Tailwind
colors: {
  custom: {
    50: '#785ba9',
    500: '#371a84',
    950: '#000000',
  },
}
SCSS
$custom: #371a84;
$custom-light: #785ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#371a84",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 256.415,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33665,
    "c": 0.16204,
    "h": 286.4
  },
  "luminance": 0.03217
}

Semantic roles & 50–950 ramp

primary
#371A84
secondary
#97B842
accent
#EA3EBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371A84

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

Preview Lab → · Contrast checker → · Palette generator →

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