#371F77#371F77

#371F77 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.140 H 288.8°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#371F77
RGBrgb(55, 31, 119)
HSLhsl(256, 59%, 29%)
HSVhsv(256, 74%, 47%)
CMYKcmyk(53.8%, 73.9%, 0%, 53.3%)
CIE-LABlab(20.53, 34.68, -46.30)
CIE-LCHlch(20.53, 57.85, 306.83°)
OKLaboklab(33.02% 0.0452 -0.133)
OKLCHoklch(33.02% 0.14 288.8)
XYZxyz(5.3943, 3.1239, 17.7679)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F77 #5F771F
analogous
#1F3377 #371F77 #631F77
triadic
#371F77 #77371F #1F7737
tetradic
#371F77 #771F33 #5F771F #1F7763
square
#371F77 #771F33 #5F771F #1F7763
split-complementary
#371F77 #77631F #33771F
monochromatic
#0B0618 #211246 #371F77 #4D2CA8 #6943CE

Accessibility & contrast

On white

12.92
#371F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#371F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371F77
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F77#FFFFFF#000000##FFFFFF
##371F771.0012.921.6212.92
#FFFFFF12.921.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#002F75
Tritanopia (blue-blind)
#1F3649
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #371f77;
/* rgb */ color: rgb(55, 31, 119);
/* oklch */ color: oklch(33.0% 0.140 288.8);
Tailwind
colors: {
  custom: {
    50: '#755d9f',
    500: '#371f77',
    950: '#000000',
  },
}
SCSS
$custom: #371f77;
$custom-light: #755d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#371f77",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 256.364,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3302,
    "c": 0.14047,
    "h": 288.8
  },
  "luminance": 0.03124
}

Semantic roles & 50–950 ramp

primary
#371F77
secondary
#8FAB47
accent
#E246B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #371F77

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

Preview Lab → · Contrast checker → · Palette generator →

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