#371871#371871

#371871 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.141 H 292.1°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#371871
RGBrgb(55, 24, 113)
HSLhsl(261, 65%, 27%)
HSVhsv(261, 79%, 44%)
CMYKcmyk(51.3%, 78.8%, 0%, 55.7%)
CIE-LABlab(18.62, 36.65, -45.58)
CIE-LCHlch(18.62, 58.49, 308.80°)
OKLaboklab(31.49% 0.0532 -0.1308)
OKLCHoklch(31.49% 0.141 292.1)
XYZxyz(4.8820, 2.6576, 15.8753)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371871 #527118
analogous
#182571 #371871 #641871
triadic
#371871 #713718 #187137
tetradic
#371871 #711825 #527118 #187164
square
#371871 #711825 #527118 #187164
split-complementary
#371871 #716418 #257118
monochromatic
#0C0519 #1E0D3F #371871 #5023A3 #6930D3

Accessibility & contrast

On white

13.71
#371871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#371871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371871
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371871#FFFFFF#000000##FFFFFF
##3718711.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #371871;
/* rgb */ color: rgb(55, 24, 113);
/* oklch */ color: oklch(31.5% 0.141 292.1);
Tailwind
colors: {
  custom: {
    50: '#75599b',
    500: '#371871',
    950: '#000000',
  },
}
SCSS
$custom: #371871;
$custom-light: #75599b;
$custom-dark: #000000;
JSON
{
  "hex": "#371871",
  "rgb": {
    "r": 55,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 260.899,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3149,
    "c": 0.14122,
    "h": 292.1
  },
  "luminance": 0.02658
}

Semantic roles & 50–950 ramp

primary
#371871
secondary
#82A63E
accent
#E840AD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #371871

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

Preview Lab → · Contrast checker → · Palette generator →

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