#372172#372172

#372172 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.131 H 289.6°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#372172
RGBrgb(55, 33, 114)
HSLhsl(256, 55%, 29%)
HSVhsv(256, 71%, 45%)
CMYKcmyk(51.8%, 71.1%, 0%, 55.3%)
CIE-LABlab(20.50, 31.96, -43.15)
CIE-LCHlch(20.50, 53.70, 306.52°)
OKLaboklab(32.85% 0.0442 -0.1237)
OKLCHoklch(32.85% 0.131 289.6)
XYZxyz(5.1558, 3.1146, 16.2458)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372172 #5C7221
analogous
#213472 #372172 #602172
triadic
#372172 #723721 #217237
tetradic
#372172 #722134 #5C7221 #217260
square
#372172 #722134 #5C7221 #217260
split-complementary
#372172 #726021 #347221
monochromatic
#0B0718 #201343 #372172 #4E2FA1 #6844C9

Accessibility & contrast

On white

12.94
#372172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#372172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372172
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372172#FFFFFF#000000##FFFFFF
##3721721.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#233546
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #372172;
/* rgb */ color: rgb(55, 33, 114);
/* oklch */ color: oklch(32.9% 0.131 289.6);
Tailwind
colors: {
  custom: {
    50: '#745e9b',
    500: '#372172',
    950: '#000000',
  },
}
SCSS
$custom: #372172;
$custom-light: #745e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#372172",
  "rgb": {
    "r": 55,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 256.296,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32853,
    "c": 0.13139,
    "h": 289.6
  },
  "luminance": 0.03115
}

Semantic roles & 50–950 ramp

primary
#372172
secondary
#8CA549
accent
#DE49B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #372172

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

Preview Lab → · Contrast checker → · Palette generator →

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