#372181#372181

#372181 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.151 H 285.8°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#372181
RGBrgb(55, 33, 129)
HSLhsl(254, 59%, 32%)
HSVhsv(254, 74%, 51%)
CMYKcmyk(57.4%, 74.4%, 0%, 49.4%)
CIE-LABlab(21.89, 36.66, -50.44)
CIE-LCHlch(21.89, 62.36, 306.01°)
OKLaboklab(34.27% 0.0411 -0.1451)
OKLCHoklch(34.27% 0.151 285.8)
XYZxyz(6.0807, 3.4846, 21.1168)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372181 #6B8121
analogous
#213B81 #372181 #672181
triadic
#372181 #813721 #218137
tetradic
#372181 #81213B #6B8121 #218167
square
#372181 #81213B #6B8121 #218167
split-complementary
#372181 #816721 #3B8121
monochromatic
#0D0820 #221550 #372181 #4C2DB2 #6A4BD1

Accessibility & contrast

On white

12.37
#372181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #372181
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372181#FFFFFF#000000##FFFFFF
##3721811.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00327F
Tritanopia (blue-blind)
#153B4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #372181;
/* rgb */ color: rgb(55, 33, 129);
/* oklch */ color: oklch(34.3% 0.151 285.8);
Tailwind
colors: {
  custom: {
    50: '#775fa6',
    500: '#372181',
    950: '#000000',
  },
}
SCSS
$custom: #372181;
$custom-light: #775fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#372181",
  "rgb": {
    "r": 55,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 253.75,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34274,
    "c": 0.15086,
    "h": 285.8
  },
  "luminance": 0.03485
}

Semantic roles & 50–950 ramp

primary
#372181
secondary
#9BB44A
accent
#E245BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #372181

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

Preview Lab → · Contrast checker → · Palette generator →

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