#371878#371878

#371878 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.150 H 290.0°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#371878
RGBrgb(55, 24, 120)
HSLhsl(259, 67%, 28%)
HSVhsv(259, 80%, 47%)
CMYKcmyk(54.2%, 80%, 0%, 52.9%)
CIE-LABlab(19.31, 38.70, -48.94)
CIE-LCHlch(19.31, 62.40, 308.34°)
OKLaboklab(32.19% 0.0511 -0.1407)
OKLCHoklch(32.19% 0.15 290)
XYZxyz(5.2914, 2.8213, 18.0314)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371878 #597818
analogous
#182978 #371878 #671878
triadic
#371878 #783718 #187837
tetradic
#371878 #781829 #597818 #187867
square
#371878 #781829 #597818 #187867
split-complementary
#371878 #786718 #297818
monochromatic
#0C051A #200E45 #371878 #4E22AB #6834D6

Accessibility & contrast

On white

13.42
#371878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#371878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371878
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371878#FFFFFF#000000##FFFFFF
##3718781.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#1F3347
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #371878;
/* rgb */ color: rgb(55, 24, 120);
/* oklch */ color: oklch(32.2% 0.150 290.0);
Tailwind
colors: {
  custom: {
    50: '#7659a0',
    500: '#371878',
    950: '#000000',
  },
}
SCSS
$custom: #371878;
$custom-light: #7659a0;
$custom-dark: #000000;
JSON
{
  "hex": "#371878",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 259.375,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3219,
    "c": 0.14968,
    "h": 290
  },
  "luminance": 0.02822
}

Semantic roles & 50–950 ramp

primary
#371878
secondary
#89AD3F
accent
#EA3EB2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #371878

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

Preview Lab → · Contrast checker → · Palette generator →

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