#372187#372187

#372187 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.158 H 284.5°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#372187
RGBrgb(55, 33, 135)
HSLhsl(253, 61%, 33%)
HSVhsv(253, 76%, 53%)
CMYKcmyk(59.3%, 75.6%, 0%, 47.1%)
CIE-LABlab(22.47, 38.54, -53.26)
CIE-LCHlch(22.47, 65.74, 305.89°)
OKLaboklab(34.87% 0.0397 -0.1534)
OKLCHoklch(34.87% 0.158 284.5)
XYZxyz(6.4912, 3.6488, 23.2792)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372187 #718721
analogous
#213E87 #372187 #6A2187
triadic
#372187 #873721 #218737
tetradic
#372187 #87213E #718721 #21876A
square
#372187 #87213E #718721 #21876A
split-complementary
#372187 #876A21 #3E8721
monochromatic
#0F0925 #231556 #372187 #4B2DB8 #6B4FD4

Accessibility & contrast

On white

12.14
#372187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#372187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372187
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372187#FFFFFF#000000##FFFFFF
##3721871.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#0B3D52
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #372187;
/* rgb */ color: rgb(55, 33, 135);
/* oklch */ color: oklch(34.9% 0.158 284.5);
Tailwind
colors: {
  custom: {
    50: '#785fab',
    500: '#372187',
    950: '#000000',
  },
}
SCSS
$custom: #372187;
$custom-light: #785fab;
$custom-dark: #000000;
JSON
{
  "hex": "#372187",
  "rgb": {
    "r": 55,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 252.941,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34868,
    "c": 0.15844,
    "h": 284.5
  },
  "luminance": 0.03649
}

Semantic roles & 50–950 ramp

primary
#372187
secondary
#A0B74D
accent
#E444C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #372187

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

Preview Lab → · Contrast checker → · Palette generator →

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