#372298#372298

#372298 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.178 H 281.2°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#372298
RGBrgb(55, 34, 152)
HSLhsl(251, 63%, 36%)
HSVhsv(251, 78%, 60%)
CMYKcmyk(63.8%, 77.6%, 0%, 40.4%)
CIE-LABlab(24.39, 43.29, -60.65)
CIE-LCHlch(24.39, 74.51, 305.52°)
OKLaboklab(36.74% 0.0346 -0.175)
OKLCHoklch(36.74% 0.178 281.2)
XYZxyz(7.8133, 4.2227, 30.1030)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372298 #839822
analogous
#224898 #372298 #722298
triadic
#372298 #983722 #229837
tetradic
#372298 #982248 #839822 #229872
square
#372298 #982248 #839822 #229872
split-complementary
#372298 #987222 #489822
monochromatic
#130C34 #251766 #372298 #492DCA #715ADA

Accessibility & contrast

On white

11.38
#372298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#372298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372298
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372298#FFFFFF#000000##FFFFFF
##3722981.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #372298;
/* rgb */ color: rgb(55, 34, 152);
/* oklch */ color: oklch(36.7% 0.178 281.2);
Tailwind
colors: {
  custom: {
    50: '#7b60b7',
    500: '#372298',
    950: '#000000',
  },
}
SCSS
$custom: #372298;
$custom-light: #7b60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#372298",
  "rgb": {
    "r": 55,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 250.678,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36741,
    "c": 0.17837,
    "h": 281.2
  },
  "luminance": 0.04223
}

Semantic roles & 50–950 ramp

primary
#372298
secondary
#ACBE57
accent
#E641C9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #372298

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

Preview Lab → · Contrast checker → · Palette generator →

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