#371F86#371F86

#371F86 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.159 H 285.1°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#371F86
RGBrgb(55, 31, 134)
HSLhsl(254, 62%, 32%)
HSVhsv(254, 77%, 53%)
CMYKcmyk(59%, 76.9%, 0%, 47.5%)
CIE-LABlab(21.99, 39.31, -53.42)
CIE-LCHlch(21.99, 66.33, 306.35°)
OKLaboklab(34.5% 0.0415 -0.1538)
OKLCHoklch(34.5% 0.159 285.1)
XYZxyz(6.3673, 3.5130, 22.8922)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F86 #6E861F
analogous
#1F3A86 #371F86 #6B1F86
triadic
#371F86 #86371F #1F8637
tetradic
#371F86 #861F3A #6E861F #1F866B
square
#371F86 #861F3A #6E861F #1F866B
split-complementary
#371F86 #866B1F #3A861F
monochromatic
#0E0823 #231454 #371F86 #4B2AB8 #6B4AD5

Accessibility & contrast

On white

12.33
#371F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#371F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F86
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F86#FFFFFF#000000##FFFFFF
##371F861.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#0E3C51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #371f86;
/* rgb */ color: rgb(55, 31, 134);
/* oklch */ color: oklch(34.5% 0.159 285.1);
Tailwind
colors: {
  custom: {
    50: '#785eaa',
    500: '#371f86',
    950: '#000000',
  },
}
SCSS
$custom: #371f86;
$custom-light: #785eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#371f86",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 253.981,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34497,
    "c": 0.15936,
    "h": 285.1
  },
  "luminance": 0.03513
}

Semantic roles & 50–950 ramp

primary
#371F86
secondary
#9EB849
accent
#E542BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371F86

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

Preview Lab → · Contrast checker → · Palette generator →

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