#3A2242#3A2242

#3A2242 is a dark, moderate purple. Relative luminance 0.024; OKLCH L 29.7% C 0.064 H 317.3°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#3A2242
RGBrgb(58, 34, 66)
HSLhsl(285, 32%, 20%)
HSVhsv(285, 48%, 26%)
CMYKcmyk(12.1%, 48.5%, 0%, 74.1%)
CIE-LABlab(17.63, 18.16, -15.72)
CIE-LCHlch(17.63, 24.02, 319.11°)
OKLaboklab(29.73% 0.0471 -0.0434)
OKLCHoklch(29.73% 0.064 317.3)
XYZxyz(3.3002, 2.4370, 5.4498)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2242 #2A4222
analogous
#2A2242 #3A2242 #42223A
triadic
#3A2242 #423A22 #22423A
tetradic
#3A2242 #422A22 #2A4222 #223A42
square
#3A2242 #422A22 #2A4222 #223A42
split-complementary
#3A2242 #3A4222 #22422A
monochromatic
#120A14 #170D1A #3A2242 #5D376A #814C93

Accessibility & contrast

On white

14.12
#3A2242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3A2242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2242
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2242#FFFFFF#000000##FFFFFF
##3A22421.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2A43
Deuteranopia (green-blind)
#232C41
Tritanopia (blue-blind)
#3A262E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3a2242;
/* rgb */ color: rgb(58, 34, 66);
/* oklch */ color: oklch(29.7% 0.064 317.3);
Tailwind
colors: {
  custom: {
    50: '#715d76',
    500: '#3a2242',
    950: '#000000',
  },
}
SCSS
$custom: #3a2242;
$custom-light: #715d76;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2242",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 66
  },
  "hsl": {
    "h": 285,
    "s": 32,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29732,
    "c": 0.064,
    "h": 317.3
  },
  "luminance": 0.02437
}

Semantic roles & 50–950 ramp

primary
#3A2242
secondary
#55754A
accent
#C8607A
background
#F6F5F7
surface
#ECE9ED
border
#C7C5C8
text
#070408
muted
#7A797B

Preview Lab

Preview with #3A2242

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

Preview Lab → · Contrast checker → · Palette generator →

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