#371887#371887

#371887 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.167 H 286.0°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#371887
RGBrgb(55, 24, 135)
HSLhsl(257, 70%, 31%)
HSVhsv(257, 82%, 53%)
CMYKcmyk(59.3%, 82.2%, 0%, 47.1%)
CIE-LABlab(20.88, 43.09, -55.88)
CIE-LCHlch(20.88, 70.56, 307.64°)
OKLaboklab(33.75% 0.0462 -0.1609)
OKLCHoklch(33.75% 0.167 286)
XYZxyz(6.2740, 3.2144, 23.2068)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371887 #688718
analogous
#183087 #371887 #6E1887
triadic
#371887 #873718 #188737
tetradic
#371887 #871830 #688718 #18876E
square
#371887 #871830 #688718 #18876E
split-complementary
#371887 #876E18 #308718
monochromatic
#0D061F #220F53 #371887 #4C21BB #693DDC

Accessibility & contrast

On white

12.78
#371887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#371887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371887
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371887#FFFFFF#000000##FFFFFF
##3718871.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371887;
/* rgb */ color: rgb(55, 24, 135);
/* oklch */ color: oklch(33.8% 0.167 286.0);
Tailwind
colors: {
  custom: {
    50: '#795aab',
    500: '#371887',
    950: '#000000',
  },
}
SCSS
$custom: #371887;
$custom-light: #795aab;
$custom-dark: #000000;
JSON
{
  "hex": "#371887",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 256.757,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33754,
    "c": 0.16745,
    "h": 286
  },
  "luminance": 0.03215
}

Semantic roles & 50–950 ramp

primary
#371887
secondary
#98BB40
accent
#ED3BBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371887

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

Preview Lab → · Contrast checker → · Palette generator →

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