#2A242A#2A242A

#2A242A is a dark, near-neutral grey. Relative luminance 0.019; OKLCH L 26.9% C 0.014 H 326.0°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#2A242A
RGBrgb(42, 36, 42)
HSLhsl(300, 8%, 15%)
HSVhsv(300, 14%, 16%)
CMYKcmyk(0%, 14.3%, 0%, 83.5%)
CIE-LABlab(15.07, 4.21, -2.94)
CIE-LCHlch(15.07, 5.13, 325.07°)
OKLaboklab(26.94% 0.0116 -0.0078)
OKLCHoklch(26.94% 0.014 326)
XYZxyz(2.0036, 1.9212, 2.4553)
Luminance0.0192 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A242A #242A24
analogous
#27242A #2A242A #2A2427
triadic
#2A242A #2A2A24 #242A2A
tetradic
#2A242A #2A2724 #242A24 #24272A
square
#2A242A #2A2724 #242A24 #24272A
split-complementary
#2A242A #272A24 #242A27
monochromatic
#100E10 #100E10 #2A242A #4B404B #6C5C6C

Accessibility & contrast

On white

15.17
#2A242A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2A242A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A242A
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A242A#FFFFFF#000000##FFFFFF
##2A242A1.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24252A
Deuteranopia (green-blind)
#25262A
Tritanopia (blue-blind)
#2A2426
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a242a;
/* rgb */ color: rgb(42, 36, 42);
/* oklch */ color: oklch(26.9% 0.014 326.0);
Tailwind
colors: {
  custom: {
    50: '#635e63',
    500: '#2a242a',
    950: '#000000',
  },
}
SCSS
$custom: #2a242a;
$custom-light: #635e63;
$custom-dark: #000000;
JSON
{
  "hex": "#2a242a",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 42
  },
  "hsl": {
    "h": 300,
    "s": 7.692,
    "l": 15.294
  },
  "oklch": {
    "l": 0.26943,
    "c": 0.01397,
    "h": 326
  },
  "luminance": 0.01921
}

Semantic roles & 50–950 ramp

primary
#2A242A
secondary
#505950
accent
#B17777
background
#F5F5F5
surface
#EAE9EA
border
#C6C5C6
text
#050405
muted
#797979

Preview Lab

Preview with #2A242A

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

Preview Lab → · Contrast checker → · Palette generator →

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