#371C52#371C52

#371C52 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.3% C 0.096 H 304.1°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#371C52
RGBrgb(55, 28, 82)
HSLhsl(270, 49%, 22%)
HSVhsv(270, 66%, 32%)
CMYKcmyk(32.9%, 65.9%, 0%, 67.8%)
CIE-LABlab(16.76, 25.36, -28.09)
CIE-LCHlch(16.76, 37.84, 312.09°)
OKLaboklab(29.33% 0.0539 -0.0795)
OKLCHoklch(29.33% 0.096 304.1)
XYZxyz(3.5135, 2.2519, 8.2306)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371C52 #37521C
analogous
#1C1C52 #371C52 #521C52
triadic
#371C52 #52371C #1C5237
tetradic
#371C52 #521C1C #37521C #1C5252
square
#371C52 #521C1C #37521C #1C5252
split-complementary
#371C52 #52521C #1C521C
monochromatic
#0F0817 #180C24 #371C52 #562C80 #743BAD

Accessibility & contrast

On white

14.48
#371C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#371C52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371C52
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371C52#FFFFFF#000000##FFFFFF
##371C521.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022954
Deuteranopia (green-blind)
#0F2951
Tritanopia (blue-blind)
#322734
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #371c52;
/* rgb */ color: rgb(55, 28, 82);
/* oklch */ color: oklch(29.3% 0.096 304.1);
Tailwind
colors: {
  custom: {
    50: '#705a83',
    500: '#371c52',
    950: '#000000',
  },
}
SCSS
$custom: #371c52;
$custom-light: #705a83;
$custom-dark: #000000;
JSON
{
  "hex": "#371c52",
  "rgb": {
    "r": 55,
    "g": 28,
    "b": 82
  },
  "hsl": {
    "h": 270,
    "s": 49.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29325,
    "c": 0.09599,
    "h": 304.1
  },
  "luminance": 0.02252
}

Semantic roles & 50–950 ramp

primary
#371C52
secondary
#658842
accent
#D94F94
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#08040A
muted
#7B797C

Preview Lab

Preview with #371C52

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

Preview Lab → · Contrast checker → · Palette generator →

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