#372A71#372A71

#372A71 is a dark, moderate violet. Relative luminance 0.037; OKLCH L 34.3% C 0.117 H 286.9°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#372A71
RGBrgb(55, 42, 113)
HSLhsl(251, 46%, 30%)
HSVhsv(251, 63%, 44%)
CMYKcmyk(51.3%, 62.8%, 0%, 55.7%)
CIE-LABlab(22.51, 26.01, -39.23)
CIE-LCHlch(22.51, 47.07, 303.54°)
OKLaboklab(34.29% 0.0341 -0.1122)
OKLCHoklch(34.29% 0.117 286.9)
XYZxyz(5.3833, 3.6602, 16.0424)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372A71 #64712A
analogous
#2A4071 #372A71 #5A2A71
triadic
#372A71 #71372A #2A7137
tetradic
#372A71 #712A40 #64712A #2A715A
square
#372A71 #712A40 #64712A #2A715A
split-complementary
#372A71 #715A2A #40712A
monochromatic
#0C0918 #211944 #372A71 #4D3B9E #6955C0

Accessibility & contrast

On white

12.12
#372A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#372A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372A71
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372A71#FFFFFF#000000##FFFFFF
##372A711.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#233A49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #372a71;
/* rgb */ color: rgb(55, 42, 113);
/* oklch */ color: oklch(34.3% 0.117 286.9);
Tailwind
colors: {
  custom: {
    50: '#73649a',
    500: '#372a71',
    950: '#000000',
  },
}
SCSS
$custom: #372a71;
$custom-light: #73649a;
$custom-dark: #000000;
JSON
{
  "hex": "#372a71",
  "rgb": {
    "r": 55,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 250.986,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3429,
    "c": 0.11728,
    "h": 286.9
  },
  "luminance": 0.0366
}

Semantic roles & 50–950 ramp

primary
#372A71
secondary
#94A354
accent
#D552BD
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #372A71

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

Preview Lab → · Contrast checker → · Palette generator →

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