#371879#371879

#371879 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.151 H 289.7°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#371879
RGBrgb(55, 24, 121)
HSLhsl(259, 67%, 28%)
HSVhsv(259, 80%, 47%)
CMYKcmyk(54.5%, 80.2%, 0%, 52.5%)
CIE-LABlab(19.41, 39.00, -49.42)
CIE-LCHlch(19.41, 62.95, 308.28°)
OKLaboklab(32.29% 0.0508 -0.1421)
OKLCHoklch(32.29% 0.151 289.7)
XYZxyz(5.3524, 2.8457, 18.3527)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371879 #5A7918
analogous
#182979 #371879 #671879
triadic
#371879 #793718 #187937
tetradic
#371879 #791829 #5A7918 #187967
square
#371879 #791829 #5A7918 #187967
split-complementary
#371879 #796718 #297918
monochromatic
#0C051A #200E46 #371879 #4E22AC #6835D7

Accessibility & contrast

On white

13.38
#371879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#371879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371879
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371879#FFFFFF#000000##FFFFFF
##3718791.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#1E3448
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #371879;
/* rgb */ color: rgb(55, 24, 121);
/* oklch */ color: oklch(32.3% 0.151 289.7);
Tailwind
colors: {
  custom: {
    50: '#7659a1',
    500: '#371879',
    950: '#000000',
  },
}
SCSS
$custom: #371879;
$custom-light: #7659a1;
$custom-dark: #000000;
JSON
{
  "hex": "#371879",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 259.175,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32292,
    "c": 0.15087,
    "h": 289.7
  },
  "luminance": 0.02846
}

Semantic roles & 50–950 ramp

primary
#371879
secondary
#8AAE3F
accent
#EA3EB3
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371879

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

Preview Lab → · Contrast checker → · Palette generator →

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