#371877#371877

#371877 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.148 H 290.3°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#371877
RGBrgb(55, 24, 119)
HSLhsl(260, 66%, 28%)
HSVhsv(260, 80%, 47%)
CMYKcmyk(53.8%, 79.8%, 0%, 53.3%)
CIE-LABlab(19.21, 38.41, -48.47)
CIE-LCHlch(19.21, 61.84, 308.40°)
OKLaboklab(32.09% 0.0514 -0.1393)
OKLCHoklch(32.09% 0.148 290.3)
XYZxyz(5.2310, 2.7972, 17.7135)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371877 #587718
analogous
#182877 #371877 #661877
triadic
#371877 #773718 #187737
tetradic
#371877 #771828 #587718 #187766
square
#371877 #771828 #587718 #187766
split-complementary
#371877 #776618 #287718
monochromatic
#0C0519 #1F0E44 #371877 #4F22AA #6833D6

Accessibility & contrast

On white

13.47
#371877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371877
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371877#FFFFFF#000000##FFFFFF
##3718771.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#203347
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #371877;
/* rgb */ color: rgb(55, 24, 119);
/* oklch */ color: oklch(32.1% 0.148 290.3);
Tailwind
colors: {
  custom: {
    50: '#76599f',
    500: '#371877',
    950: '#000000',
  },
}
SCSS
$custom: #371877;
$custom-light: #76599f;
$custom-dark: #000000;
JSON
{
  "hex": "#371877",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 259.579,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32089,
    "c": 0.14847,
    "h": 290.3
  },
  "luminance": 0.02797
}

Semantic roles & 50–950 ramp

primary
#371877
secondary
#88AC3F
accent
#E93EB2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #371877

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

Preview Lab → · Contrast checker → · Palette generator →

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