#372188#372188

#372188 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.160 H 284.3°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#372188
RGBrgb(55, 33, 136)
HSLhsl(253, 61%, 33%)
HSVhsv(253, 76%, 53%)
CMYKcmyk(59.6%, 75.7%, 0%, 46.7%)
CIE-LABlab(22.57, 38.85, -53.72)
CIE-LCHlch(22.57, 66.30, 305.88°)
OKLaboklab(34.97% 0.0395 -0.1547)
OKLCHoklch(34.97% 0.16 284.3)
XYZxyz(6.5620, 3.6771, 23.6518)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372188 #728821
analogous
#213E88 #372188 #6B2188
triadic
#372188 #883721 #218837
tetradic
#372188 #88213E #728821 #21886B
square
#372188 #88213E #728821 #21886B
split-complementary
#372188 #886B21 #3E8821
monochromatic
#0F0925 #231557 #372188 #4B2DB9 #6C4FD4

Accessibility & contrast

On white

12.10
#372188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#372188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372188
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372188#FFFFFF#000000##FFFFFF
##3721881.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003386
Tritanopia (blue-blind)
#093E53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #372188;
/* rgb */ color: rgb(55, 33, 136);
/* oklch */ color: oklch(35.0% 0.160 284.3);
Tailwind
colors: {
  custom: {
    50: '#785fac',
    500: '#372188',
    950: '#000000',
  },
}
SCSS
$custom: #372188;
$custom-light: #785fac;
$custom-dark: #000000;
JSON
{
  "hex": "#372188",
  "rgb": {
    "r": 55,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 252.816,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34968,
    "c": 0.15968,
    "h": 284.3
  },
  "luminance": 0.03678
}

Semantic roles & 50–950 ramp

primary
#372188
secondary
#A1B84D
accent
#E444C2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #372188

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

Preview Lab → · Contrast checker → · Palette generator →

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