#371A87#371A87

#371A87 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.166 H 285.7°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#371A87
RGBrgb(55, 26, 135)
HSLhsl(256, 68%, 32%)
HSVhsv(256, 81%, 53%)
CMYKcmyk(59.3%, 80.7%, 0%, 47.1%)
CIE-LABlab(21.21, 42.16, -55.34)
CIE-LCHlch(21.21, 69.57, 307.30°)
OKLaboklab(33.98% 0.0449 -0.1594)
OKLCHoklch(33.98% 0.166 285.7)
XYZxyz(6.3168, 3.2999, 23.2211)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A87 #6A871A
analogous
#1A3487 #371A87 #6E1A87
triadic
#371A87 #87371A #1A8737
tetradic
#371A87 #871A34 #6A871A #1A876E
square
#371A87 #871A34 #6A871A #1A876E
split-complementary
#371A87 #876E1A #34871A
monochromatic
#0D0620 #221054 #371A87 #4C24BA #6A41DA

Accessibility & contrast

On white

12.65
#371A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#371A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A87
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A87#FFFFFF#000000##FFFFFF
##371A871.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#0D3A50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371a87;
/* rgb */ color: rgb(55, 26, 135);
/* oklch */ color: oklch(34.0% 0.166 285.7);
Tailwind
colors: {
  custom: {
    50: '#785bab',
    500: '#371a87',
    950: '#000000',
  },
}
SCSS
$custom: #371a87;
$custom-light: #785bab;
$custom-dark: #000000;
JSON
{
  "hex": "#371a87",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 255.963,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33979,
    "c": 0.1656,
    "h": 285.7
  },
  "luminance": 0.033
}

Semantic roles & 50–950 ramp

primary
#371A87
secondary
#9ABA42
accent
#EB3DBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371A87

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

Preview Lab → · Contrast checker → · Palette generator →

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