#371A52#371A52

#371A52 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.0% C 0.099 H 304.8°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#371A52
RGBrgb(55, 26, 82)
HSLhsl(271, 52%, 21%)
HSVhsv(271, 68%, 32%)
CMYKcmyk(32.9%, 68.3%, 0%, 67.8%)
CIE-LABlab(16.31, 26.58, -28.81)
CIE-LCHlch(16.31, 39.20, 312.69°)
OKLaboklab(29% 0.0567 -0.0816)
OKLCHoklch(29% 0.099 304.8)
XYZxyz(3.4676, 2.1602, 8.2153)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371A52 #35521A
analogous
#1B1A52 #371A52 #521A51
triadic
#371A52 #52371A #1A5237
tetradic
#371A52 #521B1A #35521A #1A5152
square
#371A52 #521B1A #35521A #1A5152
split-complementary
#371A52 #51521A #1A521B
monochromatic
#100717 #180B24 #371A52 #562980 #7537AF

Accessibility & contrast

On white

14.66
#371A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#371A52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371A52
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371A52#FFFFFF#000000##FFFFFF
##371A521.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#0C2851
Tritanopia (blue-blind)
#322633
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #371a52;
/* rgb */ color: rgb(55, 26, 82);
/* oklch */ color: oklch(29.0% 0.099 304.8);
Tailwind
colors: {
  custom: {
    50: '#705883',
    500: '#371a52',
    950: '#000000',
  },
}
SCSS
$custom: #371a52;
$custom-light: #705883;
$custom-dark: #000000;
JSON
{
  "hex": "#371a52",
  "rgb": {
    "r": 55,
    "g": 26,
    "b": 82
  },
  "hsl": {
    "h": 271.071,
    "s": 51.852,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28998,
    "c": 0.09934,
    "h": 304.8
  },
  "luminance": 0.0216
}

Semantic roles & 50–950 ramp

primary
#371A52
secondary
#638840
accent
#DB4C91
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#08030A
muted
#7B787C

Preview Lab

Preview with #371A52

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

Preview Lab → · Contrast checker → · Palette generator →

#371A52 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva