#372182#372182

#372182 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.152 H 285.6°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#372182
RGBrgb(55, 33, 130)
HSLhsl(254, 60%, 32%)
HSVhsv(254, 75%, 51%)
CMYKcmyk(57.7%, 74.6%, 0%, 49%)
CIE-LABlab(21.99, 36.98, -50.91)
CIE-LCHlch(21.99, 62.92, 305.99°)
OKLaboklab(34.37% 0.0409 -0.1465)
OKLCHoklch(34.37% 0.152 285.6)
XYZxyz(6.1475, 3.5113, 21.4686)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372182 #6C8221
analogous
#213C82 #372182 #682182
triadic
#372182 #823721 #218237
tetradic
#372182 #82213C #6C8221 #218268
square
#372182 #82213C #6C8221 #218268
split-complementary
#372182 #826821 #3C8221
monochromatic
#0E0820 #221551 #372182 #4C2DB3 #6A4CD2

Accessibility & contrast

On white

12.34
#372182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#372182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372182
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372182#FFFFFF#000000##FFFFFF
##3721821.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#143B4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #372182;
/* rgb */ color: rgb(55, 33, 130);
/* oklch */ color: oklch(34.4% 0.152 285.6);
Tailwind
colors: {
  custom: {
    50: '#775fa7',
    500: '#372182',
    950: '#000000',
  },
}
SCSS
$custom: #372182;
$custom-light: #775fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#372182",
  "rgb": {
    "r": 55,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 253.608,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34372,
    "c": 0.15212,
    "h": 285.6
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#372182
secondary
#9CB44A
accent
#E345BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #372182

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

Preview Lab → · Contrast checker → · Palette generator →

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