#3A2838#3A2838

#3A2838 is a dark, muted purple. Relative luminance 0.027; OKLCH L 30.5% C 0.038 H 330.3°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#3A2838
RGBrgb(58, 40, 56)
HSLhsl(307, 18%, 19%)
HSVhsv(307, 31%, 23%)
CMYKcmyk(0%, 31%, 3.4%, 77.3%)
CIE-LABlab(18.81, 11.69, -6.98)
CIE-LCHlch(18.81, 13.62, 329.18°)
OKLaboklab(30.47% 0.0328 -0.0187)
OKLCHoklch(30.47% 0.038 330.3)
XYZxyz(3.2175, 2.7028, 4.0928)
Luminance0.0270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2838 #283A2A
analogous
#33283A #3A2838 #3A282F
triadic
#3A2838 #383A28 #28383A
tetradic
#3A2838 #3A3328 #283A2A #282F3A
square
#3A2838 #3A3328 #283A2A #282F3A
split-complementary
#3A2838 #2F3A28 #283A33
monochromatic
#120C11 #160F15 #3A2838 #5E415B #825A7E

Accessibility & contrast

On white

13.63
#3A2838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3A2838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2838
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2838#FFFFFF#000000##FFFFFF
##3A28381.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272C39
Deuteranopia (green-blind)
#2C2F37
Tritanopia (blue-blind)
#3B292E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3a2838;
/* rgb */ color: rgb(58, 40, 56);
/* oklch */ color: oklch(30.5% 0.038 330.3);
Tailwind
colors: {
  custom: {
    50: '#70626e',
    500: '#3a2838',
    950: '#000000',
  },
}
SCSS
$custom: #3a2838;
$custom-light: #70626e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2838",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 56
  },
  "hsl": {
    "h": 306.667,
    "s": 18.367,
    "l": 19.216
  },
  "oklch": {
    "l": 0.30468,
    "c": 0.0378,
    "h": 330.3
  },
  "luminance": 0.02703
}

Semantic roles & 50–950 ramp

primary
#3A2838
secondary
#536B55
accent
#BB756D
background
#F6F5F6
surface
#ECEAEB
border
#C7C6C6
text
#070507
muted
#7A797A

Preview Lab

Preview with #3A2838

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

Preview Lab → · Contrast checker → · Palette generator →

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