#371D84#371D84

#371D84 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.159 H 285.9°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#371D84
RGBrgb(55, 29, 132)
HSLhsl(255, 64%, 32%)
HSVhsv(255, 78%, 52%)
CMYKcmyk(58.3%, 78%, 0%, 48.2%)
CIE-LABlab(21.42, 39.75, -53.11)
CIE-LCHlch(21.42, 66.34, 306.82°)
OKLaboklab(34.03% 0.0436 -0.1529)
OKLCHoklch(34.03% 0.159 285.9)
XYZxyz(6.1785, 3.3565, 22.1476)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371D84 #6A841D
analogous
#1D3784 #371D84 #6B1D84
triadic
#371D84 #84371D #1D8437
tetradic
#371D84 #841D37 #6A841D #1D846B
square
#371D84 #841D37 #6A841D #1D846B
split-complementary
#371D84 #846B1D #37841D
monochromatic
#0D0720 #221252 #371D84 #4C28B6 #6A45D6

Accessibility & contrast

On white

12.56
#371D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#371D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371D84
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371D84#FFFFFF#000000##FFFFFF
##371D841.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#113A4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371d84;
/* rgb */ color: rgb(55, 29, 132);
/* oklch */ color: oklch(34.0% 0.159 285.9);
Tailwind
colors: {
  custom: {
    50: '#785ca9',
    500: '#371d84',
    950: '#000000',
  },
}
SCSS
$custom: #371d84;
$custom-light: #785ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#371d84",
  "rgb": {
    "r": 55,
    "g": 29,
    "b": 132
  },
  "hsl": {
    "h": 255.146,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34033,
    "c": 0.15901,
    "h": 285.9
  },
  "luminance": 0.03357
}

Semantic roles & 50–950 ramp

primary
#371D84
secondary
#9AB746
accent
#E741BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371D84

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

Preview Lab → · Contrast checker → · Palette generator →

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