#371971#371971

#371971 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.140 H 291.9°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#371971
RGBrgb(55, 25, 113)
HSLhsl(260, 64%, 27%)
HSVhsv(260, 78%, 44%)
CMYKcmyk(51.3%, 77.9%, 0%, 55.7%)
CIE-LABlab(18.80, 36.14, -45.28)
CIE-LCHlch(18.80, 57.93, 308.59°)
OKLaboklab(31.62% 0.0523 -0.13)
OKLCHoklch(31.62% 0.14 291.9)
XYZxyz(4.9030, 2.6996, 15.8823)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371971 #537119
analogous
#192771 #371971 #631971
triadic
#371971 #713719 #197137
tetradic
#371971 #711927 #537119 #197163
square
#371971 #711927 #537119 #197163
split-complementary
#371971 #716319 #277119
monochromatic
#0C0619 #1F0E3F #371971 #4F24A3 #6933D2

Accessibility & contrast

On white

13.64
#371971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#371971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371971
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371971#FFFFFF#000000##FFFFFF
##3719711.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.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: #371971;
/* rgb */ color: rgb(55, 25, 113);
/* oklch */ color: oklch(31.6% 0.140 291.9);
Tailwind
colors: {
  custom: {
    50: '#75599b',
    500: '#371971',
    950: '#000000',
  },
}
SCSS
$custom: #371971;
$custom-light: #75599b;
$custom-dark: #000000;
JSON
{
  "hex": "#371971",
  "rgb": {
    "r": 55,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 260.455,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31617,
    "c": 0.14009,
    "h": 291.9
  },
  "luminance": 0.027
}

Semantic roles & 50–950 ramp

primary
#371971
secondary
#83A640
accent
#E741AE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #371971

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

Preview Lab → · Contrast checker → · Palette generator →

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