#371671#371671

#371671 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.143 H 292.5°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#371671
RGBrgb(55, 22, 113)
HSLhsl(262, 67%, 26%)
HSVhsv(262, 81%, 44%)
CMYKcmyk(51.3%, 80.5%, 0%, 55.7%)
CIE-LABlab(18.27, 37.65, -46.15)
CIE-LCHlch(18.27, 59.56, 309.21°)
OKLaboklab(31.25% 0.0549 -0.1325)
OKLCHoklch(31.25% 0.143 292.5)
XYZxyz(4.8423, 2.5781, 15.8621)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371671 #507116
analogous
#162371 #371671 #651671
triadic
#371671 #713716 #167137
tetradic
#371671 #711623 #507116 #167165
square
#371671 #711623 #507116 #167165
split-complementary
#371671 #716516 #237116
monochromatic
#0C051A #1E0C3E #371671 #5020A4 #692CD6

Accessibility & contrast

On white

13.86
#371671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371671
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371671#FFFFFF#000000##FFFFFF
##3716711.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371671;
/* rgb */ color: rgb(55, 22, 113);
/* oklch */ color: oklch(31.2% 0.143 292.5);
Tailwind
colors: {
  custom: {
    50: '#75579b',
    500: '#371671',
    950: '#000000',
  },
}
SCSS
$custom: #371671;
$custom-light: #75579b;
$custom-dark: #000000;
JSON
{
  "hex": "#371671",
  "rgb": {
    "r": 55,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 261.758,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31246,
    "c": 0.14341,
    "h": 292.5
  },
  "luminance": 0.02578
}

Semantic roles & 50–950 ramp

primary
#371671
secondary
#80A73C
accent
#EA3EAC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #371671

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

Preview Lab → · Contrast checker → · Palette generator →

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