#371A86#371A86

#371A86 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.164 H 286.0°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#371A86
RGBrgb(55, 26, 134)
HSLhsl(256, 68%, 31%)
HSVhsv(256, 81%, 53%)
CMYKcmyk(59%, 80.6%, 0%, 47.5%)
CIE-LABlab(21.10, 41.86, -54.89)
CIE-LCHlch(21.10, 69.03, 307.33°)
OKLaboklab(33.87% 0.0452 -0.1581)
OKLCHoklch(33.87% 0.164 286)
XYZxyz(6.2467, 3.2719, 22.8520)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A86 #69861A
analogous
#1A3386 #371A86 #6D1A86
triadic
#371A86 #86371A #1A8637
tetradic
#371A86 #861A33 #69861A #1A866D
square
#371A86 #861A33 #69861A #1A866D
split-complementary
#371A86 #866D1A #33861A
monochromatic
#0D061F #221053 #371A86 #4C24B9 #6A40DA

Accessibility & contrast

On white

12.69
#371A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371A86
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A86#FFFFFF#000000##FFFFFF
##371A861.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#0E3A50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371a86;
/* rgb */ color: rgb(55, 26, 134);
/* oklch */ color: oklch(33.9% 0.164 286.0);
Tailwind
colors: {
  custom: {
    50: '#785baa',
    500: '#371a86',
    950: '#000000',
  },
}
SCSS
$custom: #371a86;
$custom-light: #785baa;
$custom-dark: #000000;
JSON
{
  "hex": "#371a86",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 256.111,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33874,
    "c": 0.16441,
    "h": 286
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#371A86
secondary
#99B942
accent
#EA3DBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371A86

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

Preview Lab → · Contrast checker → · Palette generator →

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