#372873#372873

#372873 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.1% C 0.123 H 287.2°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#372873
RGBrgb(55, 40, 115)
HSLhsl(252, 48%, 30%)
HSVhsv(252, 65%, 45%)
CMYKcmyk(52.2%, 65.2%, 0%, 54.9%)
CIE-LABlab(22.19, 27.95, -41.04)
CIE-LCHlch(22.19, 49.66, 304.25°)
OKLaboklab(34.1% 0.0363 -0.1176)
OKLCHoklch(34.1% 0.123 287.2)
XYZxyz(5.4279, 3.5674, 16.6189)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372873 #647328
analogous
#283E73 #372873 #5C2873
triadic
#372873 #733728 #287337
tetradic
#372873 #73283E #647328 #28735C
square
#372873 #73283E #647328 #28735C
split-complementary
#372873 #735C28 #3E7328
monochromatic
#0C0818 #211846 #372873 #4D38A0 #6952C3

Accessibility & contrast

On white

12.25
#372873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #372873
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372873#FFFFFF#000000##FFFFFF
##3728731.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003775
Deuteranopia (green-blind)
#003371
Tritanopia (blue-blind)
#223A49
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #372873;
/* rgb */ color: rgb(55, 40, 115);
/* oklch */ color: oklch(34.1% 0.123 287.2);
Tailwind
colors: {
  custom: {
    50: '#74639c',
    500: '#372873',
    950: '#000000',
  },
}
SCSS
$custom: #372873;
$custom-light: #74639c;
$custom-dark: #000000;
JSON
{
  "hex": "#372873",
  "rgb": {
    "r": 55,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 252,
    "s": 48.387,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34101,
    "c": 0.12304,
    "h": 287.2
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#372873
secondary
#94A552
accent
#D850BD
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #372873

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

Preview Lab → · Contrast checker → · Palette generator →

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