#262A2A#262A2A

#262A2A is a dark, near-neutral grey. Relative luminance 0.022; OKLCH L 28.1% C 0.006 H 196.9°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#262A2A
RGBrgb(38, 42, 42)
HSLhsl(180, 5%, 16%)
HSVhsv(180, 10%, 16%)
CMYKcmyk(9.5%, 0%, 0%, 83.5%)
CIE-LABlab(16.68, -1.77, -0.61)
CIE-LCHlch(16.68, 1.88, 199.00°)
OKLaboklab(28.1% -0.0055 -0.0017)
OKLCHoklch(28.1% 0.006 196.9)
XYZxyz(2.0451, 2.2351, 2.5137)
Luminance0.0223 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262A2A #2A2626
analogous
#262A28 #262A2A #26282A
triadic
#262A2A #2A262A #2A2A26
tetradic
#262A2A #28262A #2A2626 #282A26
square
#262A2A #28262A #2A2626 #282A26
split-complementary
#262A2A #2A2628 #2A2826
monochromatic
#0F1010 #0F1010 #262A2A #434A4A #606A6A

Accessibility & contrast

On white

14.51
#262A2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#262A2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262A2A
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262A2A#FFFFFF#000000##FFFFFF
##262A2A1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#292A2A
Deuteranopia (green-blind)
#29292A
Tritanopia (blue-blind)
#252A2A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #262a2a;
/* rgb */ color: rgb(38, 42, 42);
/* oklch */ color: oklch(28.1% 0.006 196.9);
Tailwind
colors: {
  custom: {
    50: '#606363',
    500: '#262a2a',
    950: '#000000',
  },
}
SCSS
$custom: #262a2a;
$custom-light: #606363;
$custom-dark: #000000;
JSON
{
  "hex": "#262a2a",
  "rgb": {
    "r": 38,
    "g": 42,
    "b": 42
  },
  "hsl": {
    "h": 180,
    "s": 5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.28102,
    "c": 0.00572,
    "h": 196.9
  },
  "luminance": 0.02235
}

Semantic roles & 50–950 ramp

primary
#262A2A
secondary
#595353
accent
#7A7AAE
background
#F5F5F5
surface
#E9EAEA
border
#C5C6C6
text
#040505
muted
#797979

Preview Lab

Preview with #262A2A

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

Preview Lab → · Contrast checker → · Palette generator →

#262A2A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva