#371779#371779

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

Color values

HEX#371779
RGBrgb(55, 23, 121)
HSLhsl(260, 68%, 28%)
HSVhsv(260, 81%, 47%)
CMYKcmyk(54.5%, 81%, 0%, 52.5%)
CIE-LABlab(19.25, 39.48, -49.69)
CIE-LCHlch(19.25, 63.47, 308.47°)
OKLaboklab(32.17% 0.0516 -0.1429)
OKLCHoklch(32.17% 0.152 289.8)
XYZxyz(5.3321, 2.8053, 18.3460)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371779 #597917
analogous
#172879 #371779 #681779
triadic
#371779 #793717 #177937
tetradic
#371779 #791728 #597917 #177968
square
#371779 #791728 #597917 #177968
split-complementary
#371779 #796817 #287917
monochromatic
#0C051A #200D46 #371779 #4E21AC #6832D8

Accessibility & contrast

On white

13.45
#371779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371779
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371779#FFFFFF#000000##FFFFFF
##3717791.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#1E3348
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #371779;
/* rgb */ color: rgb(55, 23, 121);
/* oklch */ color: oklch(32.2% 0.152 289.8);
Tailwind
colors: {
  custom: {
    50: '#7658a1',
    500: '#371779',
    950: '#000000',
  },
}
SCSS
$custom: #371779;
$custom-light: #7658a1;
$custom-dark: #000000;
JSON
{
  "hex": "#371779",
  "rgb": {
    "r": 55,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 259.592,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32174,
    "c": 0.15189,
    "h": 289.8
  },
  "luminance": 0.02805
}

Semantic roles & 50–950 ramp

primary
#371779
secondary
#89AE3E
accent
#EB3DB2
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #371779

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

Preview Lab → · Contrast checker → · Palette generator →

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