#2A1828#2A1828

#2A1828 is a very dark, muted purple. Relative luminance 0.013; OKLCH L 24.0% C 0.040 H 330.7°. Best body text is #FFFFFF at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#2A1828
RGBrgb(42, 24, 40)
HSLhsl(307, 27%, 13%)
HSVhsv(307, 43%, 16%)
CMYKcmyk(0%, 42.9%, 4.8%, 83.5%)
CIE-LABlab(11.27, 12.31, -7.21)
CIE-LCHlch(11.27, 14.27, 329.64°)
OKLaboklab(24% 0.0347 -0.0195)
OKLCHoklch(24% 0.04 330.7)
XYZxyz(1.6645, 1.2988, 2.1701)
Luminance0.0130 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1828 #182A1A
analogous
#23182A #2A1828 #2A181F
triadic
#2A1828 #282A18 #18282A
tetradic
#2A1828 #2A2318 #182A1A #181F2A
square
#2A1828 #2A2318 #182A1A #181F2A
split-complementary
#2A1828 #1F2A18 #182A23
monochromatic
#130B13 #130B13 #2A1828 #512E4D #784572

Accessibility & contrast

On white

16.67
#2A1828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2A1828 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1828
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1828#FFFFFF#000000##FFFFFF
##2A18281.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171C29
Deuteranopia (green-blind)
#1C1F27
Tritanopia (blue-blind)
#2B191E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a1828;
/* rgb */ color: rgb(42, 24, 40);
/* oklch */ color: oklch(24.0% 0.040 330.7);
Tailwind
colors: {
  custom: {
    50: '#645561',
    500: '#2a1828',
    950: '#000000',
  },
}
SCSS
$custom: #2a1828;
$custom-light: #645561;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1828",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 40
  },
  "hsl": {
    "h": 306.667,
    "s": 27.273,
    "l": 12.941
  },
  "oklch": {
    "l": 0.23996,
    "c": 0.03981,
    "h": 330.7
  },
  "luminance": 0.01299
}

Semantic roles & 50–950 ramp

primary
#2A1828
secondary
#405E43
accent
#C46F64
background
#F6F4F5
surface
#EBE8E9
border
#C6C4C5
text
#050305
muted
#7A7879

Preview Lab

Preview with #2A1828

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

Preview Lab → · Contrast checker → · Palette generator →

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