#371171#371171

#371171 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.148 H 293.4°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#371171
RGBrgb(55, 17, 113)
HSLhsl(264, 74%, 25%)
HSVhsv(264, 85%, 44%)
CMYKcmyk(51.3%, 85%, 0%, 55.7%)
CIE-LABlab(17.48, 39.92, -47.44)
CIE-LCHlch(17.48, 62.00, 310.08°)
OKLaboklab(30.7% 0.0588 -0.1362)
OKLCHoklch(30.7% 0.148 293.4)
XYZxyz(4.7558, 2.4052, 15.8333)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371171 #4B7111
analogous
#111B71 #371171 #671171
triadic
#371171 #713711 #117137
tetradic
#371171 #71111B #4B7111 #117167
square
#371171 #71111B #4B7111 #117167
split-complementary
#371171 #716711 #1B7111
monochromatic
#0D041B #1D093C #371171 #5119A6 #6B21DB

Accessibility & contrast

On white

14.18
#371171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#371171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371171
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371171#FFFFFF#000000##FFFFFF
##3711711.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#242D42
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #371171;
/* rgb */ color: rgb(55, 17, 113);
/* oklch */ color: oklch(30.7% 0.148 293.4);
Tailwind
colors: {
  custom: {
    50: '#75559b',
    500: '#371171',
    950: '#000000',
  },
}
SCSS
$custom: #371171;
$custom-light: #75559b;
$custom-dark: #000000;
JSON
{
  "hex": "#371171",
  "rgb": {
    "r": 55,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 263.75,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30701,
    "c": 0.14837,
    "h": 293.4
  },
  "luminance": 0.02405
}

Semantic roles & 50–950 ramp

primary
#371171
secondary
#7BA836
accent
#F137A7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #371171

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

Preview Lab → · Contrast checker → · Palette generator →

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