#371884#371884

#371884 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.164 H 286.7°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#371884
RGBrgb(55, 24, 132)
HSLhsl(257, 69%, 31%)
HSVhsv(257, 82%, 52%)
CMYKcmyk(58.3%, 81.8%, 0%, 48.2%)
CIE-LABlab(20.56, 42.22, -54.52)
CIE-LCHlch(20.56, 68.95, 307.75°)
OKLaboklab(33.43% 0.0472 -0.157)
OKLCHoklch(33.43% 0.164 286.7)
XYZxyz(6.0658, 3.1311, 22.1101)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371884 #658418
analogous
#182F84 #371884 #6D1884
triadic
#371884 #843718 #188437
tetradic
#371884 #84182F #658418 #18846D
square
#371884 #84182F #658418 #18846D
split-complementary
#371884 #846D18 #2F8418
monochromatic
#0C051C #210F50 #371884 #4D21B8 #693BDB

Accessibility & contrast

On white

12.91
#371884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#371884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371884
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371884#FFFFFF#000000##FFFFFF
##3718841.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#12384E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #371884;
/* rgb */ color: rgb(55, 24, 132);
/* oklch */ color: oklch(33.4% 0.164 286.7);
Tailwind
colors: {
  custom: {
    50: '#785aa9',
    500: '#371884',
    950: '#000000',
  },
}
SCSS
$custom: #371884;
$custom-light: #785aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#371884",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 257.222,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33435,
    "c": 0.16393,
    "h": 286.7
  },
  "luminance": 0.03131
}

Semantic roles & 50–950 ramp

primary
#371884
secondary
#95B840
accent
#EC3CB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #371884

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

Preview Lab → · Contrast checker → · Palette generator →

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