Home /Colors /#282828
#282828#282828

#282828 color code is #282828. Use this page to get all code formats, explore shades and tints, and find colors that work with #282828.

ShadesTints
Preview
Text on White
White on Color
ShareSave to PinterestTweet

Explore #282828

#282828 Accessibility & WCAG Contrast

Relative luminance of #282828 is 0.0212. Its WCAG contrast ratio is 14.74:1 against white and 1.42:1 against black. Use the card with the higher ratio for body text.

The quick brown fox
#282828 on white14.74:1AAA
The quick brown fox
#282828 on black1.42:1Fail
The quick brown fox
White on #28282814.74:1AAA
The quick brown fox
Black on #2828281.42:1Fail

#282828 — Frequently Asked Questions

What is the hex code for #282828?+
The hex code for #282828 is #282828. In RGB it's rgb(40, 40, 40), and in HSL it's hsl(0, 0%, 16%).
What is the RGB value of #282828?+
#282828 in RGB is (40, 40, 40). Written in CSS: rgb(40, 40, 40).
What is the CMYK value of #282828?+
#282828 converts to CMYK(0%, 0%, 0%, 84%) for print. Hex equivalent is #282828.
Is #282828 a warm or cool color?+
#282828 (#282828) is a neutral gray — its hue sits at 0° on the color wheel, placing it in the neutral part of the spectrum.
What color family does #282828 belong to?+
#282828 belongs to the gray family. Its HSL is 0°, 0%, 16% — a neutral tone within the broader gray group.
Is #282828 accessible for body text on a white background?+
#282828 on white reaches a WCAG contrast ratio of 14.74:1 — passes WCAG AAA for body text on white.
What is the closest Pantone match for #282828?+
The nearest Pantone match for #282828 (#282828) is 426 C Pantone 426 C, calculated by Euclidean RGB distance over the Pantone Matching System.

How to use #282828 in design

Practical guidance for using #282828 (#282828) across four design contexts, derived from its hue, lightness, saturation, and WCAG contrast.

Web & UI design

Use #282828 (#282828) as primary text or icon color on white backgrounds — at 14.7:1 contrast it passes WCAG AAA for body copy. Avoid placing #282828 text on dark surfaces; the contrast drops below the AA threshold.

Branding & identity

As a brand color, #282828 (#282828) reads as considered and grown-up and premium and serious. It fits naturally into professional services, corporate identity, B2B SaaS. Pair it with a single bold accent so it doesn't read as too quiet. Test legibility on both your logo and small UI text before locking it in — saturation that works on a 200px logo can feel overpowering at favicon scale.

Fashion & apparel

#282828 is a wardrobe-staple neutral. It pairs with everything, transitions across seasons, and is a safe choice for tailored pieces (suits, coats, trousers, dresses) where longevity matters more than seasonal trend. Layer it with one bolder accent (a vivid scarf, statement bag) to keep the look from reading as flat.

Interior design

#282828 is a moody, atmospheric room color — perfect for libraries, dining rooms, bedrooms, and bars where you want the space to feel enclosed and cinematic. Pair with brass or unlacquered fixtures, warm overhead lighting (2700K bulbs), and natural-fiber rugs. Avoid using it in spaces with limited natural light unless that intimacy is the point.

Brands that use #282828

Major brands whose official palette contains a color within ~30 RGB units of #282828 (#282828). Click through for the full brand color guide.

YouTube#282828 · YouTube DarkDiscord#23272A · Discord DarkGitHub#24292F · GitHub DarkTesla#1E1E1E · Tesla DarkApple#1D1D1F · Apple BlackStarbucks#1E3932 · Starbucks Black