#372168#372168

#372168 is a dark, moderate violet. Relative luminance 0.029; OKLCH L 32.0% C 0.118 H 292.7°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#372168
RGBrgb(55, 33, 104)
HSLhsl(259, 52%, 27%)
HSVhsv(259, 68%, 41%)
CMYKcmyk(47.1%, 68.3%, 0%, 59.2%)
CIE-LABlab(19.64, 28.84, -38.07)
CIE-LCHlch(19.64, 47.76, 307.15°)
OKLaboklab(31.96% 0.0456 -0.1088)
OKLCHoklch(31.96% 0.118 292.7)
XYZxyz(4.6174, 2.8993, 13.4104)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372168 #526821
analogous
#212E68 #372168 #5B2168
triadic
#372168 #683721 #216837
tetradic
#372168 #68212E #526821 #21685B
square
#372168 #68212E #526821 #21685B
split-complementary
#372168 #685B21 #2E6821
monochromatic
#0C0717 #1E123A #372168 #503096 #6941C3

Accessibility & contrast

On white

13.29
#372168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#372168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372168
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372168#FFFFFF#000000##FFFFFF
##3721681.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#002E67
Tritanopia (blue-blind)
#293241
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #372168;
/* rgb */ color: rgb(55, 33, 104);
/* oklch */ color: oklch(32.0% 0.118 292.7);
Tailwind
colors: {
  custom: {
    50: '#725e94',
    500: '#372168',
    950: '#000000',
  },
}
SCSS
$custom: #372168;
$custom-light: #725e94;
$custom-dark: #000000;
JSON
{
  "hex": "#372168",
  "rgb": {
    "r": 55,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 258.592,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31964,
    "c": 0.11798,
    "h": 292.7
  },
  "luminance": 0.02899
}

Semantic roles & 50–950 ramp

primary
#372168
secondary
#829C49
accent
#DB4DAF
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #372168

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

Preview Lab → · Contrast checker → · Palette generator →

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