#372178#372178

#372178 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.4% C 0.139 H 288.0°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#372178
RGBrgb(55, 33, 120)
HSLhsl(255, 57%, 30%)
HSVhsv(255, 73%, 47%)
CMYKcmyk(54.2%, 72.5%, 0%, 52.9%)
CIE-LABlab(21.04, 33.84, -46.11)
CIE-LCHlch(21.04, 57.20, 306.27°)
OKLaboklab(33.41% 0.0431 -0.1325)
OKLCHoklch(33.41% 0.139 288)
XYZxyz(5.5086, 3.2557, 18.1038)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372178 #627821
analogous
#213778 #372178 #622178
triadic
#372178 #783721 #217837
tetradic
#372178 #782137 #627821 #217862
square
#372178 #782137 #627821 #217862
split-complementary
#372178 #786221 #377821
monochromatic
#0B0718 #211448 #372178 #4D2EA8 #6947CC

Accessibility & contrast

On white

12.72
#372178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#372178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372178
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372178#FFFFFF#000000##FFFFFF
##3721781.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#1E384A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #372178;
/* rgb */ color: rgb(55, 33, 120);
/* oklch */ color: oklch(33.4% 0.139 288.0);
Tailwind
colors: {
  custom: {
    50: '#755ea0',
    500: '#372178',
    950: '#000000',
  },
}
SCSS
$custom: #372178;
$custom-light: #755ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#372178",
  "rgb": {
    "r": 55,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 255.172,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.3341,
    "c": 0.13927,
    "h": 288
  },
  "luminance": 0.03256
}

Semantic roles & 50–950 ramp

primary
#372178
secondary
#92AB4A
accent
#E048BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #372178

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

Preview Lab → · Contrast checker → · Palette generator →

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