#371977#371977

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

Color values

HEX#371977
RGBrgb(55, 25, 119)
HSLhsl(259, 65%, 28%)
HSVhsv(259, 79%, 47%)
CMYKcmyk(53.8%, 79%, 0%, 53.3%)
CIE-LABlab(19.39, 37.91, -48.18)
CIE-LCHlch(19.39, 61.31, 308.20°)
OKLaboklab(32.21% 0.0506 -0.1385)
OKLCHoklch(32.21% 0.147 290.1)
XYZxyz(5.2520, 2.8392, 17.7205)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371977 #597719
analogous
#192A77 #371977 #661977
triadic
#371977 #773719 #197737
tetradic
#371977 #77192A #597719 #197766
square
#371977 #77192A #597719 #197766
split-complementary
#371977 #776619 #2A7719
monochromatic
#0C0519 #200E44 #371977 #4E24AA #6836D5

Accessibility & contrast

On white

13.39
#371977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371977
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371977#FFFFFF#000000##FFFFFF
##3719771.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371977;
/* rgb */ color: rgb(55, 25, 119);
/* oklch */ color: oklch(32.2% 0.147 290.1);
Tailwind
colors: {
  custom: {
    50: '#76599f',
    500: '#371977',
    950: '#000000',
  },
}
SCSS
$custom: #371977;
$custom-light: #76599f;
$custom-dark: #000000;
JSON
{
  "hex": "#371977",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 259.149,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32212,
    "c": 0.14741,
    "h": 290.1
  },
  "luminance": 0.02839
}

Semantic roles & 50–950 ramp

primary
#371977
secondary
#89AC40
accent
#E840B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #371977

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

Preview Lab → · Contrast checker → · Palette generator →

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