#371987#371987

#371987 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.167 H 285.9°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#371987
RGBrgb(55, 25, 135)
HSLhsl(256, 69%, 31%)
HSVhsv(256, 81%, 53%)
CMYKcmyk(59.3%, 81.5%, 0%, 47.1%)
CIE-LABlab(21.04, 42.63, -55.61)
CIE-LCHlch(21.04, 70.07, 307.47°)
OKLaboklab(33.87% 0.0455 -0.1602)
OKLCHoklch(33.87% 0.167 285.9)
XYZxyz(6.2950, 3.2564, 23.2138)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371987 #698719
analogous
#193287 #371987 #6E1987
triadic
#371987 #873719 #198737
tetradic
#371987 #871932 #698719 #19876E
square
#371987 #871932 #698719 #19876E
split-complementary
#371987 #876E19 #328719
monochromatic
#0D0620 #220F53 #371987 #4C23BB #6A3FDB

Accessibility & contrast

On white

12.72
#371987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#371987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371987
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371987#FFFFFF#000000##FFFFFF
##3719871.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#0D3A50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #371987;
/* rgb */ color: rgb(55, 25, 135);
/* oklch */ color: oklch(33.9% 0.167 285.9);
Tailwind
colors: {
  custom: {
    50: '#785aab',
    500: '#371987',
    950: '#000000',
  },
}
SCSS
$custom: #371987;
$custom-light: #785aab;
$custom-dark: #000000;
JSON
{
  "hex": "#371987",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 256.364,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33865,
    "c": 0.16654,
    "h": 285.9
  },
  "luminance": 0.03257
}

Semantic roles & 50–950 ramp

primary
#371987
secondary
#99BA41
accent
#EC3CBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371987

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

Preview Lab → · Contrast checker → · Palette generator →

#371987 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva