#371F71#371F71

#371F71 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.133 H 290.5°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#371F71
RGBrgb(55, 31, 113)
HSLhsl(258, 57%, 28%)
HSVhsv(258, 73%, 44%)
CMYKcmyk(51.3%, 72.6%, 0%, 55.7%)
CIE-LABlab(19.98, 32.82, -43.35)
CIE-LCHlch(19.98, 54.37, 307.13°)
OKLaboklab(32.46% 0.0464 -0.1243)
OKLCHoklch(32.46% 0.133 290.5)
XYZxyz(5.0453, 2.9843, 15.9298)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371F71 #59711F
analogous
#1F3071 #371F71 #601F71
triadic
#371F71 #71371F #1F7137
tetradic
#371F71 #711F30 #59711F #1F7160
square
#371F71 #711F30 #59711F #1F7160
split-complementary
#371F71 #71601F #30711F
monochromatic
#0C0718 #201241 #371F71 #4E2CA1 #6840CB

Accessibility & contrast

On white

13.15
#371F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371F71
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371F71#FFFFFF#000000##FFFFFF
##371F711.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#243445
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #371f71;
/* rgb */ color: rgb(55, 31, 113);
/* oklch */ color: oklch(32.5% 0.133 290.5);
Tailwind
colors: {
  custom: {
    50: '#745d9b',
    500: '#371f71',
    950: '#000000',
  },
}
SCSS
$custom: #371f71;
$custom-light: #745d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#371f71",
  "rgb": {
    "r": 55,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 257.561,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32456,
    "c": 0.13272,
    "h": 290.5
  },
  "luminance": 0.02984
}

Semantic roles & 50–950 ramp

primary
#371F71
secondary
#89A547
accent
#E048B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371F71

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

Preview Lab → · Contrast checker → · Palette generator →

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