#372971#372971

#372971 is a dark, moderate violet. Relative luminance 0.036; OKLCH L 34.1% C 0.119 H 287.3°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#372971
RGBrgb(55, 41, 113)
HSLhsl(252, 47%, 30%)
HSVhsv(252, 64%, 44%)
CMYKcmyk(51.3%, 63.7%, 0%, 55.7%)
CIE-LABlab(22.27, 26.66, -39.63)
CIE-LCHlch(22.27, 47.76, 303.93°)
OKLaboklab(34.11% 0.0353 -0.1134)
OKLCHoklch(34.11% 0.119 287.3)
XYZxyz(5.3483, 3.5901, 16.0307)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372971 #637129
analogous
#293F71 #372971 #5B2971
triadic
#372971 #713729 #297137
tetradic
#372971 #71293F #637129 #29715B
square
#372971 #71293F #637129 #29715B
split-complementary
#372971 #715B29 #3F7129
monochromatic
#0B0817 #211944 #372971 #4D399E #6954C1

Accessibility & contrast

On white

12.22
#372971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#372971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372971
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372971#FFFFFF#000000##FFFFFF
##3729711.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#233A48
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #372971;
/* rgb */ color: rgb(55, 41, 113);
/* oklch */ color: oklch(34.1% 0.119 287.3);
Tailwind
colors: {
  custom: {
    50: '#73639a',
    500: '#372971',
    950: '#000000',
  },
}
SCSS
$custom: #372971;
$custom-light: #73639a;
$custom-dark: #000000;
JSON
{
  "hex": "#372971",
  "rgb": {
    "r": 55,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 251.667,
    "s": 46.753,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34109,
    "c": 0.11876,
    "h": 287.3
  },
  "luminance": 0.0359
}

Semantic roles & 50–950 ramp

primary
#372971
secondary
#93A353
accent
#D651BD
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #372971

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

Preview Lab → · Contrast checker → · Palette generator →

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