#371F84#371F84

#371F84 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.157 H 285.6°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#371F84
RGBrgb(55, 31, 132)
HSLhsl(254, 62%, 32%)
HSVhsv(254, 77%, 52%)
CMYKcmyk(58.3%, 76.5%, 0%, 48.2%)
CIE-LABlab(21.79, 38.70, -52.49)
CIE-LCHlch(21.79, 65.21, 306.40°)
OKLaboklab(34.29% 0.0421 -0.1511)
OKLCHoklch(34.29% 0.157 285.6)
XYZxyz(6.2291, 3.4578, 22.1645)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F84 #6C841F
analogous
#1F3A84 #371F84 #691F84
triadic
#371F84 #84371F #1F8437
tetradic
#371F84 #841F3A #6C841F #1F8469
square
#371F84 #841F3A #6C841F #1F8469
split-complementary
#371F84 #84691F #3A841F
monochromatic
#0E0821 #221352 #371F84 #4C2BB6 #6A49D4

Accessibility & contrast

On white

12.41
#371F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#371F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F84
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F84#FFFFFF#000000##FFFFFF
##371F841.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003182
Tritanopia (blue-blind)
#113B50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #371f84;
/* rgb */ color: rgb(55, 31, 132);
/* oklch */ color: oklch(34.3% 0.157 285.6);
Tailwind
colors: {
  custom: {
    50: '#775ea9',
    500: '#371f84',
    950: '#000000',
  },
}
SCSS
$custom: #371f84;
$custom-light: #775ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#371f84",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 254.257,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34295,
    "c": 0.15687,
    "h": 285.6
  },
  "luminance": 0.03458
}

Semantic roles & 50–950 ramp

primary
#371F84
secondary
#9CB748
accent
#E543BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371F84

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

Preview Lab → · Contrast checker → · Palette generator →

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