#372872#372872

#372872 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.0% C 0.122 H 287.4°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#372872
RGBrgb(55, 40, 114)
HSLhsl(252, 48%, 30%)
HSVhsv(252, 65%, 45%)
CMYKcmyk(51.8%, 64.9%, 0%, 55.3%)
CIE-LABlab(22.10, 27.62, -40.54)
CIE-LCHlch(22.10, 49.05, 304.27°)
OKLaboklab(34.02% 0.0364 -0.1161)
OKLCHoklch(34.02% 0.122 287.4)
XYZxyz(5.3707, 3.5445, 16.3175)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372872 #637228
analogous
#283E72 #372872 #5C2872
triadic
#372872 #723728 #287237
tetradic
#372872 #72283E #637228 #28725C
square
#372872 #72283E #637228 #28725C
split-complementary
#372872 #725C28 #3E7228
monochromatic
#0B0817 #211845 #372872 #4D389F #6952C2

Accessibility & contrast

On white

12.29
#372872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#372872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372872
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372872#FFFFFF#000000##FFFFFF
##3728721.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#223949
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #372872;
/* rgb */ color: rgb(55, 40, 114);
/* oklch */ color: oklch(34.0% 0.122 287.4);
Tailwind
colors: {
  custom: {
    50: '#73639b',
    500: '#372872',
    950: '#000000',
  },
}
SCSS
$custom: #372872;
$custom-light: #73639b;
$custom-dark: #000000;
JSON
{
  "hex": "#372872",
  "rgb": {
    "r": 55,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 252.162,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34016,
    "c": 0.12163,
    "h": 287.4
  },
  "luminance": 0.03545
}

Semantic roles & 50–950 ramp

primary
#372872
secondary
#93A452
accent
#D850BC
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #372872

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

Preview Lab → · Contrast checker → · Palette generator →

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