#372198#372198

#372198 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.179 H 281.3°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#372198
RGBrgb(55, 33, 152)
HSLhsl(251, 64%, 36%)
HSVhsv(251, 78%, 60%)
CMYKcmyk(63.8%, 78.3%, 0%, 40.4%)
CIE-LABlab(24.21, 43.81, -60.94)
CIE-LCHlch(24.21, 75.05, 305.71°)
OKLaboklab(36.61% 0.0352 -0.1758)
OKLCHoklch(36.61% 0.179 281.3)
XYZxyz(7.7851, 4.1664, 30.0936)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372198 #829821
analogous
#214798 #372198 #732198
triadic
#372198 #983721 #219837
tetradic
#372198 #982147 #829821 #219873
square
#372198 #982147 #829821 #219873
split-complementary
#372198 #987321 #479821
monochromatic
#130B33 #251666 #372198 #492CCA #7159DB

Accessibility & contrast

On white

11.45
#372198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#372198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372198
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372198#FFFFFF#000000##FFFFFF
##3721981.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #372198;
/* rgb */ color: rgb(55, 33, 152);
/* oklch */ color: oklch(36.6% 0.179 281.3);
Tailwind
colors: {
  custom: {
    50: '#7b60b7',
    500: '#372198',
    950: '#000000',
  },
}
SCSS
$custom: #372198;
$custom-light: #7b60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#372198",
  "rgb": {
    "r": 55,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 251.092,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36615,
    "c": 0.17932,
    "h": 281.3
  },
  "luminance": 0.04167
}

Semantic roles & 50–950 ramp

primary
#372198
secondary
#ABBF56
accent
#E740C8
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #372198

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

Preview Lab → · Contrast checker → · Palette generator →

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