#372098#372098

#372098 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.180 H 281.5°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#372098
RGBrgb(55, 32, 152)
HSLhsl(252, 65%, 36%)
HSVhsv(252, 79%, 60%)
CMYKcmyk(63.8%, 78.9%, 0%, 40.4%)
CIE-LABlab(24.04, 44.31, -61.23)
CIE-LCHlch(24.04, 75.59, 305.89°)
OKLaboklab(36.49% 0.0358 -0.1767)
OKLCHoklch(36.49% 0.18 281.5)
XYZxyz(7.7578, 4.1117, 30.0845)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372098 #819820
analogous
#204598 #372098 #732098
triadic
#372098 #983720 #209837
tetradic
#372098 #982045 #819820 #209873
square
#372098 #982045 #819820 #209873
split-complementary
#372098 #987320 #459820
monochromatic
#120B33 #251565 #372098 #492BCB #7057DC

Accessibility & contrast

On white

11.52
#372098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#372098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372098
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372098#FFFFFF#000000##FFFFFF
##3720981.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #372098;
/* rgb */ color: rgb(55, 32, 152);
/* oklch */ color: oklch(36.5% 0.180 281.5);
Tailwind
colors: {
  custom: {
    50: '#7b5fb8',
    500: '#372098',
    950: '#000000',
  },
}
SCSS
$custom: #372098;
$custom-light: #7b5fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#372098",
  "rgb": {
    "r": 55,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 251.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36491,
    "c": 0.18027,
    "h": 281.5
  },
  "luminance": 0.04112
}

Semantic roles & 50–950 ramp

primary
#372098
secondary
#ABBF54
accent
#E840C8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #372098

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

Preview Lab → · Contrast checker → · Palette generator →

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