#2A2228#2A2228

#2A2228 is a dark, near-neutral pink. Relative luminance 0.018; OKLCH L 26.4% C 0.016 H 334.9°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#2A2228
RGBrgb(42, 34, 40)
HSLhsl(315, 11%, 15%)
HSVhsv(315, 19%, 16%)
CMYKcmyk(0%, 19%, 4.8%, 83.5%)
CIE-LABlab(14.34, 5.15, -2.59)
CIE-LCHlch(14.34, 5.76, 333.34°)
OKLaboklab(26.35% 0.0146 -0.0068)
OKLCHoklch(26.35% 0.016 334.9)
XYZxyz(1.9098, 1.7895, 2.2519)
Luminance0.0179 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2228 #222A24
analogous
#28222A #2A2228 #2A2224
triadic
#2A2228 #282A22 #22282A
tetradic
#2A2228 #2A2822 #222A24 #22242A
square
#2A2228 #2A2822 #222A24 #22242A
split-complementary
#2A2228 #242A22 #222A28
monochromatic
#110E10 #110E10 #2A2228 #4C3D48 #6E5968

Accessibility & contrast

On white

15.47
#2A2228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2A2228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2228
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2228#FFFFFF#000000##FFFFFF
##2A22281.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222428
Deuteranopia (green-blind)
#242528
Tritanopia (blue-blind)
#2B2224
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a2228;
/* rgb */ color: rgb(42, 34, 40);
/* oklch */ color: oklch(26.4% 0.016 334.9);
Tailwind
colors: {
  custom: {
    50: '#635d61',
    500: '#2a2228',
    950: '#000000',
  },
}
SCSS
$custom: #2a2228;
$custom-light: #635d61;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2228",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 40
  },
  "hsl": {
    "h": 315,
    "s": 10.526,
    "l": 14.902
  },
  "oklch": {
    "l": 0.26354,
    "c": 0.01613,
    "h": 334.9
  },
  "luminance": 0.01789
}

Semantic roles & 50–950 ramp

primary
#2A2228
secondary
#4E5A51
accent
#B38474
background
#F5F5F5
surface
#EAE9E9
border
#C6C5C5
text
#050405
muted
#797979

Preview Lab

Preview with #2A2228

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

Preview Lab → · Contrast checker → · Palette generator →

#2A2228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva