#3A2240#3A2240

#3A2240 is a dark, moderate purple. Relative luminance 0.024; OKLCH L 29.6% C 0.061 H 319.4°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#3A2240
RGBrgb(58, 34, 64)
HSLhsl(288, 31%, 19%)
HSVhsv(288, 47%, 25%)
CMYKcmyk(9.4%, 46.9%, 0%, 74.9%)
CIE-LABlab(17.52, 17.65, -14.50)
CIE-LCHlch(17.52, 22.85, 320.60°)
OKLaboklab(29.62% 0.0466 -0.0399)
OKLCHoklch(29.62% 0.061 319.4)
XYZxyz(3.2422, 2.4139, 5.1446)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2240 #284022
analogous
#2B2240 #3A2240 #402237
triadic
#3A2240 #403A22 #22403A
tetradic
#3A2240 #402B22 #284022 #223740
square
#3A2240 #402B22 #284022 #223740
split-complementary
#3A2240 #374022 #22402B
monochromatic
#120B14 #160D18 #3A2240 #5E3768 #824C90

Accessibility & contrast

On white

14.16
#3A2240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3A2240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2240
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2240#FFFFFF#000000##FFFFFF
##3A22401.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2941
Deuteranopia (green-blind)
#242C3F
Tritanopia (blue-blind)
#3A262E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3a2240;
/* rgb */ color: rgb(58, 34, 64);
/* oklch */ color: oklch(29.6% 0.061 319.4);
Tailwind
colors: {
  custom: {
    50: '#715d75',
    500: '#3a2240',
    950: '#000000',
  },
}
SCSS
$custom: #3a2240;
$custom-light: #715d75;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2240",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 288,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29617,
    "c": 0.06133,
    "h": 319.4
  },
  "luminance": 0.02414
}

Semantic roles & 50–950 ramp

primary
#3A2240
secondary
#53734B
accent
#C76175
background
#F6F5F7
surface
#ECE9ED
border
#C7C5C8
text
#070408
muted
#7A797B

Preview Lab

Preview with #3A2240

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

Preview Lab → · Contrast checker → · Palette generator →

#3A2240 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva