#372171#372171

#372171 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.8% C 0.130 H 289.9°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#372171
RGBrgb(55, 33, 113)
HSLhsl(257, 55%, 29%)
HSVhsv(257, 71%, 44%)
CMYKcmyk(51.3%, 70.8%, 0%, 55.7%)
CIE-LABlab(20.41, 31.64, -42.65)
CIE-LCHlch(20.41, 53.11, 306.57°)
OKLaboklab(32.76% 0.0443 -0.1223)
OKLCHoklch(32.76% 0.13 289.9)
XYZxyz(5.0992, 3.0920, 15.9477)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372171 #5B7121
analogous
#213371 #372171 #5F2171
triadic
#372171 #713721 #217137
tetradic
#372171 #712133 #5B7121 #21715F
square
#372171 #712133 #5B7121 #21715F
split-complementary
#372171 #715F21 #337121
monochromatic
#0C0718 #201342 #372171 #4E2FA0 #6844C8

Accessibility & contrast

On white

12.98
#372171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #372171
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372171#FFFFFF#000000##FFFFFF
##3721711.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#243546
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #372171;
/* rgb */ color: rgb(55, 33, 113);
/* oklch */ color: oklch(32.8% 0.130 289.9);
Tailwind
colors: {
  custom: {
    50: '#745e9b',
    500: '#372171',
    950: '#000000',
  },
}
SCSS
$custom: #372171;
$custom-light: #745e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#372171",
  "rgb": {
    "r": 55,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 256.5,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32762,
    "c": 0.13007,
    "h": 289.9
  },
  "luminance": 0.03092
}

Semantic roles & 50–950 ramp

primary
#372171
secondary
#8BA549
accent
#DE4AB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #372171

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

Preview Lab → · Contrast checker → · Palette generator →

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