#371771#371771

#371771 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.142 H 292.3°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#371771
RGBrgb(55, 23, 113)
HSLhsl(261, 66%, 27%)
HSVhsv(261, 80%, 44%)
CMYKcmyk(51.3%, 79.6%, 0%, 55.7%)
CIE-LABlab(18.44, 37.15, -45.87)
CIE-LCHlch(18.44, 59.03, 309.01°)
OKLaboklab(31.37% 0.0541 -0.1317)
OKLCHoklch(31.37% 0.142 292.3)
XYZxyz(4.8617, 2.6171, 15.8686)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371771 #517117
analogous
#172471 #371771 #641771
triadic
#371771 #713717 #177137
tetradic
#371771 #711724 #517117 #177164
square
#371771 #711724 #517117 #177164
split-complementary
#371771 #716417 #247117
monochromatic
#0C0519 #1E0D3E #371771 #5021A4 #692ED4

Accessibility & contrast

On white

13.78
#371771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#371771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371771
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371771#FFFFFF#000000##FFFFFF
##3717711.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#243043
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #371771;
/* rgb */ color: rgb(55, 23, 113);
/* oklch */ color: oklch(31.4% 0.142 292.3);
Tailwind
colors: {
  custom: {
    50: '#75589b',
    500: '#371771',
    950: '#000000',
  },
}
SCSS
$custom: #371771;
$custom-light: #75589b;
$custom-dark: #000000;
JSON
{
  "hex": "#371771",
  "rgb": {
    "r": 55,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 261.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31366,
    "c": 0.14233,
    "h": 292.3
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#371771
secondary
#81A73D
accent
#E93FAD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #371771

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

Preview Lab → · Contrast checker → · Palette generator →

#371771 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva