#371A77#371A77

#371A77 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.146 H 289.9°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#371A77
RGBrgb(55, 26, 119)
HSLhsl(259, 64%, 28%)
HSVhsv(259, 78%, 47%)
CMYKcmyk(53.8%, 78.2%, 0%, 53.3%)
CIE-LABlab(19.57, 37.40, -47.89)
CIE-LCHlch(19.57, 60.76, 307.99°)
OKLaboklab(32.34% 0.0497 -0.1376)
OKLCHoklch(32.34% 0.146 289.9)
XYZxyz(5.2738, 2.8827, 17.7277)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A77 #5A771A
analogous
#1A2B77 #371A77 #651A77
triadic
#371A77 #77371A #1A7737
tetradic
#371A77 #771A2B #5A771A #1A7765
square
#371A77 #771A2B #5A771A #1A7765
split-complementary
#371A77 #77651A #2B771A
monochromatic
#0C0519 #200F45 #371A77 #4E25A9 #6838D3

Accessibility & contrast

On white

13.32
#371A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#371A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A77
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A77#FFFFFF#000000##FFFFFF
##371A771.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371a77;
/* rgb */ color: rgb(55, 26, 119);
/* oklch */ color: oklch(32.3% 0.146 289.9);
Tailwind
colors: {
  custom: {
    50: '#755a9f',
    500: '#371a77',
    950: '#000000',
  },
}
SCSS
$custom: #371a77;
$custom-light: #755a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#371a77",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 258.71,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32338,
    "c": 0.14631,
    "h": 289.9
  },
  "luminance": 0.02883
}

Semantic roles & 50–950 ramp

primary
#371A77
secondary
#8AAC41
accent
#E741B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #371A77

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

Preview Lab → · Contrast checker → · Palette generator →

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