On this page
The palette maker above gives you copyable HEX, RGB and HSL codes plus matching palettes. Below you will find the CMYK and OKLCH values, exact contrast ratios, CSS you can paste, shades and tints, and notes on printing and real-world use.
What #1A1A1A looks like and what it is called
On most screens reads as black with a soft edge. Put it beside and you can see a faint lift, like charcoal next to a void. Because red, green and blue are all equal, it has no hue and no saturation. It is a pure neutral, so it will not push your design warm or cool.
There is no single official name for it. Some color sites call it Eerie Black, others call it Dark Charcoal, and color-hex lists it as Gray10. The commonly listed Eerie Black swatch is actually , one step lighter, so treat all of these as friendly labels, not standards. In a design file, the hex code is the only name that never causes confusion.
#1A1A1A in HEX, RGB, HSL, CMYK and OKLCH
The hex code breaks into three identical pairs. 1A in base 16 is (1 × 16) + 10, which is 26, so every channel sits at 26 out of 255. That is 10.2% on each channel, and it is why the HSL lightness rounds to 10%.
| Format | Value |
|---|---|
| HEX | |
| RGB | rgb(26, 26, 26) |
| RGB percent | 10.2%, 10.2%, 10.2% |
| HSL | hsl(0, 0%, 10%) |
| HSV | 0°, 0%, 10% |
| CMYK (simple) | 0%, 0%, 0%, 90% |
| OKLCH | oklch(22% 0 0) |
| Decimal | 1710618 |
The CMYK value is 0%, 0%, 0%, 90%, although the unrounded black channel is 89.8%. That is a straight mathematical conversion, and printers will not necessarily reproduce it that way (more on that below).
There is no exact three-digit shorthand. The closest short hex is #222, which is visibly lighter. The nearest web-safe color is , which is lighter still. Web-safe palettes are a relic, but the gap shows how fine the steps are in the darkest part of the scale.
How #1A1A1A compares with black and other near blacks
Near blacks are easy to confuse, and small differences matter on large backgrounds. Here is how the usual neighbours differ:
- : pure black, no lift. Our black hex code page covers when it is the right call.
- : a touch deeper, a common base for dark themes.
- : one step lighter, visually the same.
- : same depth but with a warm brown undertone.
- : a true mid-dark grey, far lighter in practice (see the #4A4A4A page).
The key point is that perceived darkness in the 0 to 40 range changes quickly. Moving from to is a smaller number change than it sounds, but it is enough to lift a card off its background. Moving from to is enough to let drop shadows and borders appear at all, because a shadow cannot be darker than a pure black background.
Is #1A1A1A accessible? WCAG contrast ratios
The relative luminance of is about 0.0103, which is very low. That gives excellent contrast against light colors. Its contrast ratio is 17.40:1 on white and 1.21:1 on black. I computed these from the WCAG formula and they match. Here are the pairings you are most likely to use:
- text on : about 17.4:1
- text on : about 15.8:1
- text on : about 14.9:1
- text on : about 4.5:1, the practical floor for body text
- text on : about 2:1, which fails
WCAG AA asks for 4.5:1 for normal text and 3:1 for large text and interface components. The mid-grey trap is real: on a background, just misses at about 4.4:1, and is where it clears. I once fixed a client dashboard where every caption was a dark grey on a near black card. Nothing looked broken to the designers, but the contrast was close to 2:1. Lifting the caption color to solved it without changing the mood.
Try this: Open your current dark UI and pick the dimmest text on it, such as a caption or placeholder. Check its hex against . If it falls below 4.5:1, lighten it in small steps until it passes.
You set a #4A4A4A caption on a #1A1A1A card. What is the verdict?
The two greys are too close in lightness, giving roughly 2:1 when text needs at least 4.5:1.
Using #1A1A1A in CSS, dark mode and UI
Because it is neutral and dark, is one of the most useful values in a UI palette. It works as text on light pages, as a base surface in dark mode, and as a border or divider color on very light backgrounds. A good starting point is to store it as a variable once and reuse it.

:root {
--ink: #1a1a1a;
--paper: #f4f4f4;
}
body { color: var(--ink); background: var(--paper); }
.dark { background: rgb(26 26 26); color: #ededed; }
.modern { color: oklch(22% 0 0); }
Text on light backgrounds
Many designers swap pure black body text for . It keeps strong readability (17.4:1 on white) while softening the harsh edge of black on white, especially at small sizes on bright screens. Headings and body copy can share it. Soft backgrounds such as #F4F4F4 pair with it well and still give roughly 15.8:1.
Dark mode surfaces
For dark themes, is a comfortable base. Material Design’s dark theme guidance popularized , which is slightly deeper, so choose based on how much elevation you need to show. With , you can step cards up to or and still see the layers. Avoid pure white text on it for long reading. An off-white like cuts glare and reduces the vibrating edge that bright text can have on dark backgrounds.
Shades and tints of #1A1A1A
Mixing with black gives shades, and mixing with white gives tints. In 20% steps toward black you get roughly , , and . Toward white, the steps are , , and . These are straight RGB mixes, so every one stays a true neutral.
Those tints form a handy grey scale for UI states. works for dividers on dark surfaces, for disabled labels, for secondary text on a dark background, and for borders on light ones. Because the base is neutral, every step feels related, so the scale holds together without effort.
Try this: Build a five-step grey scale from , , , and . Set one sample card in each tone and read the text on each. You will quickly see where text stops being comfortable.
Color palettes that pair well with near black
is a supporting actor that makes other colors look more expensive. Warm, saturated accents glow on it. A single orange such as #FF5733 turns a plain dark layout into something energetic, and the dark base stops the orange from feeling loud. Soft neutrals like cream or light grey give the calm, editorial look.
Editorial sites, portfolios and documentation with calm, high-contrast reading.

Product launches, buttons and posters that need one hot, confident accent.
Finance dashboards and corporate decks with a cool, trustworthy feel.
Beauty packaging, event invitations and cozy evening interiors.
For cooler schemes, muted blues are the better partner. A dusty indigo like sits comfortably on near black, and our navy and black color combination guide shows how far that pairing can go. Below are four ready-made palettes built around the code, each with a light anchor, a mid tone and a clear accent.
#1A1A1A in branding, interiors, fashion and art
In branding, near black is the quiet choice for logotypes, packaging and websites that want authority without the starkness of pure black. It reproduces better on screens, since it never looks like a hole, and it gives you room to use black for rare emphasis. A logo in over a white background still has about 17.4:1 contrast, which is more than enough for signage and small print.
Use for big surfaces and body text, and keep pure black for deliberate moments such as a tiny logo mark or a print rich-black plate.
In interiors, deep charcoal on walls or cabinetry adds depth without the flat look of true black. Encycolorpedia estimates the light reflectance value at about 1.0%, from the digital swatch and not from a paint maker’s measurement, so it shows how much light such a wall absorbs. Treat it as a guide, and test a real paint sample in your own lighting. For finish ideas, see our matte black color page.
Fashion uses the same logic: black denim, wool and leather often photograph as soft charcoal, not pure black, because fabric catches light. In art, a mixed near black is often richer than black from a tube, and it sits better beside other colors in a painting or illustration.
Why #1A1A1A prints differently from how it looks on screen
A screen produces by emitting a little light. Paper cannot do that. It reflects light, so a plain 90% black ink screen on paper often looks flatter and lighter than the same code does on a monitor. Uncoated stock makes this stronger because it soaks up the ink and loses density.
What is the simple CMYK conversion of #1A1A1A?
The color is neutral, so only the black channel is used, at about 90 percent.
I saw this on a packaging proof for a client. The brand grey had been approved on screen at , and the printed swatch with only the black plate looked weak against the nearby photographs. Printers usually convert pure K black to a richer value, and many Adobe profiles turn 100% K into #231F20. Make sure your file, your profile and your printer agree, and always ask for a physical proof before running a large job.
Common mistakes with near black, and how to fix them
The first mistake is pairing with a grey that is too close. Text in looks gentle in a mockup but disappears on real screens. Fix it by moving secondary text to or lighter and keeping the darker greys for surfaces. The second mistake is using pure white for body text, which can feel glaring. Reach for or .
The third is banding in gradients. Dark gradients have only a few steps between them, so smooth fades can show visible stripes. Keep the range wider than you think you need, or add a subtle noise texture on top.
background: linear-gradient(#1a1a1a, #2e2e2e);
Finally, check your work on more than one display. Cheap panels and low brightness settings can crush near blacks into one flat tone, so if the difference between and a card in matters, test it on a phone at low brightness before shipping.
Colors close to this code
#1A1A1A Color: questions people ask
What color is 1A1A1A?
1A1A1A is a very dark neutral grey, so close to black that most people read it as black. It is made of equal red, green and blue values of 26, which means it has no tint at all.
Is #1A1A1A the same as black?
No. Pure black is #000000, with every channel at zero. #1A1A1A has each channel at 26, so it is about 10% lightness, which lets shadows, borders and subtle layers show against it.
What are the RGB and CMYK values of #1A1A1A?
RGB is 26, 26, 26. The simple CMYK conversion is 0%, 0%, 0%, 90%. Real print results depend on the paper and the color profile, so always check a proof.
Is #1A1A1A good for a dark mode background?
Yes. It is dark enough to feel like a true dark theme but light enough to show elevation, shadows and card edges. Pair it with an off-white such as #EDEDED rather than pure white to reduce glare.
What text color works best on #1A1A1A?
Off-white greys work best. White gives about 17.4:1 contrast and #EDEDED gives about 14.9:1, both far above the WCAG AA minimum of 4.5:1. Mid greys need to be around #828282 or lighter to pass.
Keep exploring
- #00338D Color: Hex Code, RGB and Matching Palettes
- #36393F Color: Hex Code, RGB and Matching Palettes
- #36393E Hex Color: RGB Values and Palettes
- #EDEDED Color: Hex Code, RGB and Palettes
- #2F3136 Color: Hex Code, RGB and Palettes
- #333333 Color: Hex Code, RGB and Palettes
- Honey Blonde Color: Hex Code, RGB and Palettes
- Light Green Color: Hex Code, RGB and Palettes