#371C77#371C77

#371C77 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.144 H 289.5°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#371C77
RGBrgb(55, 28, 119)
HSLhsl(258, 62%, 29%)
HSVhsv(258, 76%, 47%)
CMYKcmyk(53.8%, 76.5%, 0%, 53.3%)
CIE-LABlab(19.94, 36.34, -47.27)
CIE-LCHlch(19.94, 59.63, 307.55°)
OKLaboklab(32.6% 0.048 -0.1358)
OKLCHoklch(32.6% 0.144 289.5)
XYZxyz(5.3196, 2.9744, 17.7430)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C77 #5C771C
analogous
#1C2F77 #371C77 #651C77
triadic
#371C77 #77371C #1C7737
tetradic
#371C77 #771C2F #5C771C #1C7765
square
#371C77 #771C2F #5C771C #1C7765
split-complementary
#371C77 #77651C #2F771C
monochromatic
#0B0619 #201045 #371C77 #4E28A9 #683CD1

Accessibility & contrast

On white

13.17
#371C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#371C77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C77
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C77#FFFFFF#000000##FFFFFF
##371C771.0013.171.6013.17
#FFFFFF13.171.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#203548
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371c77;
/* rgb */ color: rgb(55, 28, 119);
/* oklch */ color: oklch(32.6% 0.144 289.5);
Tailwind
colors: {
  custom: {
    50: '#755b9f',
    500: '#371c77',
    950: '#000000',
  },
}
SCSS
$custom: #371c77;
$custom-light: #755b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#371c77",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 119
  },
  "hsl": {
    "h": 257.802,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32601,
    "c": 0.14404,
    "h": 289.5
  },
  "luminance": 0.02975
}

Semantic roles & 50–950 ramp

primary
#371C77
secondary
#8CAB44
accent
#E543B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #371C77

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

Preview Lab → · Contrast checker → · Palette generator →

#371C77 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva