#2A262C#2A262C

#2A262C is a dark, near-neutral grey. Relative luminance 0.021; OKLCH L 27.5% C 0.012 H 314.6°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#2A262C
RGBrgb(42, 38, 44)
HSLhsl(280, 7%, 16%)
HSVhsv(280, 14%, 17%)
CMYKcmyk(4.5%, 13.6%, 0%, 82.7%)
CIE-LABlab(15.80, 3.29, -3.27)
CIE-LCHlch(15.80, 4.64, 315.13°)
OKLaboklab(27.54% 0.0086 -0.0088)
OKLCHoklch(27.54% 0.012 314.6)
XYZxyz(2.1025, 2.0603, 2.6693)
Luminance0.0206 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A262C #282C26
analogous
#27262C #2A262C #2C262B
triadic
#2A262C #2C2A26 #262C2A
tetradic
#2A262C #2C2726 #282C26 #262B2C
square
#2A262C #2C2726 #282C26 #262B2C
split-complementary
#2A262C #2B2C26 #262C27
monochromatic
#100E10 #100E10 #2A262C #49424D #695F6E

Accessibility & contrast

On white

14.87
#2A262C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2A262C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A262C
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A262C#FFFFFF#000000##FFFFFF
##2A262C1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25272C
Deuteranopia (green-blind)
#26272C
Tritanopia (blue-blind)
#2A2728
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a262c;
/* rgb */ color: rgb(42, 38, 44);
/* oklch */ color: oklch(27.5% 0.012 314.6);
Tailwind
colors: {
  custom: {
    50: '#636065',
    500: '#2a262c',
    950: '#000000',
  },
}
SCSS
$custom: #2a262c;
$custom-light: #636065;
$custom-dark: #000000;
JSON
{
  "hex": "#2a262c",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 44
  },
  "hsl": {
    "h": 280,
    "s": 7.317,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27539,
    "c": 0.01229,
    "h": 314.6
  },
  "luminance": 0.0206
}

Semantic roles & 50–950 ramp

primary
#2A262C
secondary
#555B52
accent
#B0778A
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050405
muted
#79797A

Preview Lab

Preview with #2A262C

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

Preview Lab → · Contrast checker → · Palette generator →

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