#372A72#372A72

#372A72 is a dark, moderate violet. Relative luminance 0.037; OKLCH L 34.4% C 0.119 H 286.7°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#372A72
RGBrgb(55, 42, 114)
HSLhsl(251, 46%, 31%)
HSVhsv(251, 63%, 45%)
CMYKcmyk(51.8%, 63.2%, 0%, 55.3%)
CIE-LABlab(22.59, 26.34, -39.74)
CIE-LCHlch(22.59, 47.68, 303.53°)
OKLaboklab(34.37% 0.034 -0.1137)
OKLCHoklch(34.37% 0.119 286.7)
XYZxyz(5.4399, 3.6828, 16.3405)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372A72 #65722A
analogous
#2A4172 #372A72 #5B2A72
triadic
#372A72 #72372A #2A7237
tetradic
#372A72 #722A41 #65722A #2A725B
square
#372A72 #722A41 #65722A #2A725B
split-complementary
#372A72 #725B2A #41722A
monochromatic
#0C0919 #211A45 #372A72 #4D3A9F #6956C1

Accessibility & contrast

On white

12.09
#372A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#372A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372A72
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372A72#FFFFFF#000000##FFFFFF
##372A721.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#223B49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #372a72;
/* rgb */ color: rgb(55, 42, 114);
/* oklch */ color: oklch(34.4% 0.119 286.7);
Tailwind
colors: {
  custom: {
    50: '#73649b',
    500: '#372a72',
    950: '#000000',
  },
}
SCSS
$custom: #372a72;
$custom-light: #73649b;
$custom-dark: #000000;
JSON
{
  "hex": "#372a72",
  "rgb": {
    "r": 55,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 250.833,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34374,
    "c": 0.11871,
    "h": 286.7
  },
  "luminance": 0.03683
}

Semantic roles & 50–950 ramp

primary
#372A72
secondary
#95A454
accent
#D652BE
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #372A72

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

Preview Lab → · Contrast checker → · Palette generator →

#372A72 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva