#371A71#371A71

#371A71 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.139 H 291.7°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#371A71
RGBrgb(55, 26, 113)
HSLhsl(260, 63%, 27%)
HSVhsv(260, 77%, 44%)
CMYKcmyk(51.3%, 77%, 0%, 55.7%)
CIE-LABlab(18.98, 35.61, -44.98)
CIE-LCHlch(18.98, 57.37, 308.37°)
OKLaboklab(31.75% 0.0514 -0.1291)
OKLCHoklch(31.75% 0.139 291.7)
XYZxyz(4.9247, 2.7431, 15.8896)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A71 #54711A
analogous
#1A2971 #371A71 #631A71
triadic
#371A71 #71371A #1A7137
tetradic
#371A71 #711A29 #54711A #1A7163
square
#371A71 #711A29 #54711A #1A7163
split-complementary
#371A71 #71631A #29711A
monochromatic
#0C0619 #1F0F3F #371A71 #4F25A3 #6935D0

Accessibility & contrast

On white

13.56
#371A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#371A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A71
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A71#FFFFFF#000000##FFFFFF
##371A711.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#243144
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #371a71;
/* rgb */ color: rgb(55, 26, 113);
/* oklch */ color: oklch(31.7% 0.139 291.7);
Tailwind
colors: {
  custom: {
    50: '#745a9b',
    500: '#371a71',
    950: '#000000',
  },
}
SCSS
$custom: #371a71;
$custom-light: #745a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#371a71",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 260,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31748,
    "c": 0.13892,
    "h": 291.7
  },
  "luminance": 0.02743
}

Semantic roles & 50–950 ramp

primary
#371A71
secondary
#84A641
accent
#E642AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371A71

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

Preview Lab → · Contrast checker → · Palette generator →

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