#3A2238#3A2238

#3A2238 is a dark, muted purple. Relative luminance 0.023; OKLCH L 29.2% C 0.051 H 329.8°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#3A2238
RGBrgb(58, 34, 56)
HSLhsl(305, 26%, 18%)
HSVhsv(305, 41%, 23%)
CMYKcmyk(0%, 41.4%, 3.4%, 77.3%)
CIE-LABlab(17.13, 15.76, -9.54)
CIE-LCHlch(17.13, 18.42, 328.82°)
OKLaboklab(29.19% 0.0443 -0.0258)
OKLCHoklch(29.19% 0.051 329.8)
XYZxyz(3.0307, 2.3293, 4.0306)
Luminance0.0233 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2238 #223A24
analogous
#30223A #3A2238 #3A222C
triadic
#3A2238 #383A22 #22383A
tetradic
#3A2238 #3A3022 #223A24 #222C3A
square
#3A2238 #3A3022 #223A24 #222C3A
split-complementary
#3A2238 #2C3A22 #223A30
monochromatic
#130B13 #130B13 #3A2238 #61395D #874F83

Accessibility & contrast

On white

14.33
#3A2238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3A2238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2238
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2238#FFFFFF#000000##FFFFFF
##3A22381.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212839
Deuteranopia (green-blind)
#272B37
Tritanopia (blue-blind)
#3C242A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a2238;
/* rgb */ color: rgb(58, 34, 56);
/* oklch */ color: oklch(29.2% 0.051 329.8);
Tailwind
colors: {
  custom: {
    50: '#715d6e',
    500: '#3a2238',
    950: '#000000',
  },
}
SCSS
$custom: #3a2238;
$custom-light: #715d6e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2238",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 56
  },
  "hsl": {
    "h": 305,
    "s": 26.087,
    "l": 18.039
  },
  "oklch": {
    "l": 0.29188,
    "c": 0.05124,
    "h": 329.8
  },
  "luminance": 0.02329
}

Semantic roles & 50–950 ramp

primary
#3A2238
secondary
#4B6D4E
accent
#C26D65
background
#F6F5F6
surface
#ECE9EC
border
#C7C5C7
text
#070407
muted
#7A797A

Preview Lab

Preview with #3A2238

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

Preview Lab → · Contrast checker → · Palette generator →

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