#372174#372174

#372174 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.0% C 0.134 H 289.1°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#372174
RGBrgb(55, 33, 116)
HSLhsl(256, 56%, 29%)
HSVhsv(256, 72%, 45%)
CMYKcmyk(52.6%, 71.6%, 0%, 54.5%)
CIE-LABlab(20.68, 32.58, -44.15)
CIE-LCHlch(20.68, 54.87, 306.43°)
OKLaboklab(33.04% 0.0438 -0.1267)
OKLCHoklch(33.04% 0.134 289.1)
XYZxyz(5.2709, 3.1607, 16.8520)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372174 #5E7421
analogous
#213474 #372174 #612174
triadic
#372174 #743721 #217437
tetradic
#372174 #742134 #5E7421 #217461
square
#372174 #742134 #5E7421 #217461
split-complementary
#372174 #746121 #347421
monochromatic
#0B0718 #201344 #372174 #4E2FA4 #6845CA

Accessibility & contrast

On white

12.87
#372174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#372174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372174
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372174#FFFFFF#000000##FFFFFF
##3721741.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003072
Tritanopia (blue-blind)
#213647
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #372174;
/* rgb */ color: rgb(55, 33, 116);
/* oklch */ color: oklch(33.0% 0.134 289.1);
Tailwind
colors: {
  custom: {
    50: '#745e9d',
    500: '#372174',
    950: '#000000',
  },
}
SCSS
$custom: #372174;
$custom-light: #745e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#372174",
  "rgb": {
    "r": 55,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 255.904,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33037,
    "c": 0.13403,
    "h": 289.1
  },
  "luminance": 0.03161
}

Semantic roles & 50–950 ramp

primary
#372174
secondary
#8EA749
accent
#DF49B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #372174

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

Preview Lab → · Contrast checker → · Palette generator →

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