#2A242C#2A242C

#2A242C is a dark, near-neutral purple. Relative luminance 0.019; OKLCH L 27.0% C 0.017 H 317.7°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#2A242C
RGBrgb(42, 36, 44)
HSLhsl(285, 10%, 16%)
HSVhsv(285, 18%, 17%)
CMYKcmyk(4.5%, 18.2%, 0%, 82.7%)
CIE-LABlab(15.15, 4.70, -4.25)
CIE-LCHlch(15.15, 6.34, 317.92°)
OKLaboklab(27.03% 0.0125 -0.0114)
OKLCHoklch(27.03% 0.017 317.7)
XYZxyz(2.0403, 1.9359, 2.6486)
Luminance0.0194 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A242C #262C24
analogous
#26242C #2A242C #2C242A
triadic
#2A242C #2C2A24 #242C2A
tetradic
#2A242C #2C2624 #262C24 #242A2C
square
#2A242C #2C2624 #262C24 #242A2C
split-complementary
#2A242C #2A2C24 #242C26
monochromatic
#100E11 #100E11 #2A242C #4A404E #6A5B6F

Accessibility & contrast

On white

15.14
#2A242C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2A242C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A242C
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A242C#FFFFFF#000000##FFFFFF
##2A242C1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23262C
Deuteranopia (green-blind)
#24262C
Tritanopia (blue-blind)
#2A2527
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a242c;
/* rgb */ color: rgb(42, 36, 44);
/* oklch */ color: oklch(27.0% 0.017 317.7);
Tailwind
colors: {
  custom: {
    50: '#635e65',
    500: '#2a242c',
    950: '#000000',
  },
}
SCSS
$custom: #2a242c;
$custom-light: #635e65;
$custom-dark: #000000;
JSON
{
  "hex": "#2a242c",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 44
  },
  "hsl": {
    "h": 285,
    "s": 10,
    "l": 15.686
  },
  "oklch": {
    "l": 0.2703,
    "c": 0.01691,
    "h": 317.7
  },
  "luminance": 0.01936
}

Semantic roles & 50–950 ramp

primary
#2A242C
secondary
#535C50
accent
#B37584
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050405
muted
#79797A

Preview Lab

Preview with #2A242C

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

Preview Lab → · Contrast checker → · Palette generator →

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