#372387#372387

#372387 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.1% C 0.156 H 284.1°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#372387
RGBrgb(55, 35, 135)
HSLhsl(252, 59%, 33%)
HSVhsv(252, 74%, 53%)
CMYKcmyk(59.3%, 74.1%, 0%, 47.1%)
CIE-LABlab(22.87, 37.42, -52.60)
CIE-LCHlch(22.87, 64.56, 305.43°)
OKLaboklab(35.15% 0.0381 -0.1515)
OKLCHoklch(35.15% 0.156 284.1)
XYZxyz(6.5484, 3.7632, 23.2983)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372387 #738723
analogous
#234187 #372387 #692387
triadic
#372387 #873723 #238737
tetradic
#372387 #872341 #738723 #238769
square
#372387 #872341 #738723 #238769
split-complementary
#372387 #876923 #418723
monochromatic
#0F0A26 #231656 #372387 #4B30B8 #6C52D2

Accessibility & contrast

On white

11.98
#372387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#372387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372387
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372387#FFFFFF#000000##FFFFFF
##3723871.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#0B3E52
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #372387;
/* rgb */ color: rgb(55, 35, 135);
/* oklch */ color: oklch(35.1% 0.156 284.1);
Tailwind
colors: {
  custom: {
    50: '#7860ab',
    500: '#372387',
    950: '#000000',
  },
}
SCSS
$custom: #372387;
$custom-light: #7860ab;
$custom-dark: #000000;
JSON
{
  "hex": "#372387",
  "rgb": {
    "r": 55,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 252,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3515,
    "c": 0.1562,
    "h": 284.1
  },
  "luminance": 0.03764
}

Semantic roles & 50–950 ramp

primary
#372387
secondary
#A2B650
accent
#E246C3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #372387

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

Preview Lab → · Contrast checker → · Palette generator →

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