Closest web-safe match: #000000

Color Details and Palettes for #040104

Details about the color Black#040104

Conversions, palettes, contrast & design ideas for this color.

Magenta family Cool WCAG ink: white
HEX #040104 RGB rgb(4, 1, 4) HSL hsl(300, 60%, 1%) CMYK cmyk(0%, 75%, 0%, 98%)

Color profile

About Color Hex #040104

#040104 is a cool color from the Magenta family, closest in name to “Black”. In RGB it is rgb(4, 1, 4); in HSL, hsl(300, 60%, 1%).

The color Black, with hexadecimal code #040104, lands in the purple family, historically reserved for royalty due to the extreme cost of Tyrian dye. Purple activates imagination and spiritual contemplation, blending red's passion with blue's serenity. Additionally, it evokes emotions such as Power, Elegance, Formality, Mystery and Authority. Purple is often linked to creativity, luxury, and spirituality. In Western cultures, it is also associated with ambition and wealth. Indigo and violet have long signified royalty and nobility. At 60% saturation, this color is clearly chromatic yet balanced—colorful enough to be distinctive without overwhelming adjacent content. At only 1% lightness, this extremely dark shade approaches black, delivering maximum drama and contrast when paired with lighter elements. This color is ideal for designs that aim to express Power, Elegance, Formality, Mystery, or Authority. It can be effectively used in web design, branding, and marketing materials to attract attention and convey specific messages.

Key facts

RGB 4, 1, 4 red · green · blue HSL 300° 60% 1% hue · sat · light HSV 300° 75% 2% design-app pickers CMYK 0 75 0 98 print inks, % Luminance 0.001 0 dark → 1 light On black 1.01:1 ✕ AA contrast ratio On white 20.77:1 ✓ AA contrast ratio Web-safe #000000 closest web-safe Best text white ideal foreground Character Vivid cool · magenta family

The story of this color

History, Usage, Psychology & Design Ideas for #040104

Black (#040104) belongs to the Magenta color family.

This deep, saturated shade conveys authority and richness. Deep tones are favored in luxury packaging, evening-event branding, and dark-mode interfaces where they provide dramatic contrast against lighter elements.

Historical Background

Magenta was named after the Battle of Magenta (1859) in Italy, coinciding with the discovery of the first aniline dye of that hue. This synthetic breakthrough launched the modern chemical-dye industry, making vibrant colors accessible to the masses. In the CMYK model, magenta is a primary ink—without it, printers cannot reproduce the warm half of the color spectrum.

Design & Usage Tips

Magenta commands attention and conveys boldness, making it ideal for fashion, entertainment, and disruptive tech brands (T-Mobile's signature magenta is a prime example). Pair it with charcoal or dark teal for grounding, or with lime for an electric, festival-style palette. Magenta headlines on white backgrounds create instant visual impact.

Sitting on the cool side of the spectrum (hue 300°), it promotes a feeling of calm distance and intellectual clarity, which is why cool hues dominate corporate identities, healthcare design, and productivity tools. With 60% saturation, it occupies a comfortable middle ground: colorful enough to be distinctive, yet restrained enough for extended reading or large surface areas.

Psychological Impact

Magenta blends red's energy with purple's creativity, producing a color that feels both passionate and unconventional. It signals confidence, non-conformity, and emotional expressiveness. In UX, magenta accent colors can highlight premium features or creative tools.

At just 1% lightness, this is an extremely dark shade that approaches black. It is best reserved for text, thin borders, or dramatic full-bleed backgrounds paired with light typography.

Creative Design Ideas

Use magenta as a gradient endpoint (blue-to-magenta) for modern SaaS branding. Create neon-magenta-on-black compositions for nightlife and music event promotion. In e-commerce, magenta 'New' or 'Hot' badges draw the eye to featured products.

Every format

#040104 Color Conversions

Every way to write Black — one-tap copy on every format; tap on any card to learn what it is and when to use it.

12 formats
HEX Web
#040104

Hexadecimal is the web’s universal color notation — two digits each for red, green and blue. Drop it straight into HTML, CSS or any design tool.

RGB Screen
rgb(4, 1, 4)

RGB is the additive Red-Green-Blue model every screen uses to emit light. The default choice for websites, apps and on-screen UI.

HSL Web
hsl(300, 60%, 1%)

HSL breaks a color into Hue, Saturation and Lightness — the most intuitive way to lighten, darken or mute a color in CSS.

HSV HSB Design
hsv(300, 75%, 2%)

HSV (also called HSB) maps Hue, Saturation and Value/Brightness. It is the model behind the color pickers in Photoshop, Figma and most design apps.

HWB CSS 4
hwb(300 0% 98%)

HWB blends a pure hue with Whiteness and Blackness — a painter-friendly model added in CSS Color 4 for quick tints and shades.

CMYK Print
cmyk(0%, 75%, 0%, 98%)

CMYK is the subtractive Cyan-Magenta-Yellow-Black ink model. Use these values when preparing artwork for a printer or commercial press.

OKLCH Modern
oklch(8.52% 0.021 327.25)

OKLCH is a modern, perceptually-uniform space (Lightness, Chroma, Hue). It powers smooth gradients and accessible palettes in today’s CSS.

OKLab Modern
oklab(8.52% 0.018 -0.012)

OKLab is the Cartesian form of OKLCH — ideal for blending and interpolating colors without the muddy midpoints older spaces produce.

CIELAB L*a*b* Perceptual
L: 0.51, a: 1.20, b: -0.86

CIELAB is a device-independent, perceptually-uniform space. It is the standard for measuring color difference (ΔE) and matching across devices.

LCH Perceptual
L: 0.51, C: 1.48, H: 324.44

LCH is CIELAB in cylindrical form — Lightness, Chroma and Hue — letting you adjust vividness and hue while staying perceptually even.

XYZ CIE Science
X: 0.08, Y: 0.06, Z: 0.12

CIE XYZ is the 1931 master space that underpins every other model here — the scientific bridge used to convert between color systems.

Decimal int Code
262404

The 24-bit integer value of the color — handy for databases, APIs, game engines and low-level graphics code.

Channel breakdown

RGB Color Percentages for #040104

How much red, green and blue light mixes into Black.

Red 4/255 44.4% Green 1/255 11.1% Blue 4/255 44.4%

Percentages show each channel's share of the total light (R + G + B) in Black.

Ink coverage

CMYK Ink Levels & Print Guide for #040104

Ink needed to reproduce Black in four-color print. Heaviest ink: Key (Black).

0% CYAN 75% MAGENTA 0% YELLOW 98% KEY

Print tip: treat these values as a starting point — final output depends on printer profile, paper stock and calibration.

Accessibility · WCAG

Luminance & Contrast for #040104

How bright Black is, and how far black and white text clear each WCAG bar.

Relative luminance 0.001
0 · dark1 · light

Contrast ratio · 1:1 → 21:1 (log scale)

Aa Black text 1.01:1 ✕ AA ✕ AAA ✕ Large
Aa White text 20.77:1 ✓ AA ✓ AAA ✓ Large

Developer shortcuts

Quick CSS Snippets for #040104

Copy-and-paste CSS for Black — per-line copy, or grab the whole block.

black.css
background-color: #040104;
color: #040104;
border: 2px solid #040104;
background-color: rgb(4, 1, 4);
background-color: hsl(300, 60%, 1%);
--color: #040104;

Shades · light to dark

#040104 Monochrome Palette

Lighter and darker steps of Black — the color's full brightness range in one strip.

#E6E6E6
#C0C0C0
#9B999B
#757375
#4F4D4F
#2A272A
#040104
#030103
#030103
#020102
#020002
#010001
#000000

The dot marks the original color. Hover any shade to copy its hex or open its color page.

Harmony · 180° apart

#040104 Complementary Palette

Two colors opposite on the wheel — maximum contrast for attention-grabbing accents.

#040104
#010401

The dot marks the original color. Hover any shade to copy its hex or open its color page.

Harmony · adjacent hues

#040104 Analogic Palette

Neighboring hues on the wheel — harmonious, calm combinations that feel unified.

#040104
#040103
#030104
#040101
#010104
#040301
#010304

The dot marks the original color. Hover any shade to copy its hex or open its color page.

Harmony · 120° apart

#040104 Triadic Palette

Three colors evenly spaced on the wheel — vibrant and energetic, yet balanced.

#040104
#040401
#010404

The dot marks the original color. Hover any shade to copy its hex or open its color page.

Harmony · 90° apart

#040104 Quad Palette

Four colors evenly spaced on the wheel (tetradic) — rich schemes with multiple accents.

#040104
#040301
#010401
#010304

The dot marks the original color. Hover any shade to copy its hex or open its color page.

Accessibility

Color Blindness Simulation for #040104

How Black reads across five kinds of color vision — a ✓ Friendly verdict means the color difference stays distinguishable for that vision type.

#040104
#030303
#030303
#040303
#020202
Normal vision full color Deuteranopia green weakness ✓ Friendly Protanopia red weakness ✓ Friendly Tritanopia blue-yellow weakness ✓ Friendly Achromatopsia total color blindness ✓ Friendly

The dot marks the original color. Hover any shade to copy its hex.

Harmony overview

Color Harmonies for #040104

The lead color from each harmony scheme, side by side — a shortcut to the full palettes above.

#010401
#040103
#040401
#040301
Complementary opposite hue Analogous adjacent hue Triadic 120° apart Tetradic (Quad) 90° apart

Perceptually nearby

#040104 Nearby Colors

A step away in brightness, richness or shade — each still feels like the same color.

Dreamless Sleep#111111
Black#000000
Lead#222222
Glossy Black#110011
Obsidian Shard#000011

From the color-name library

Colors Similar to #040104

The closest named colors to #040104 — same mood, each with its own character.

Raven’s Coat#030205
Black#000000
Black Hole#010203
Eight Ball#03050A
Black Metal#060606
Black Sheep#0F0D0D
Raven#0B0B0B
Knight Rider#0F0707
Liquorice#0A0502
Black Wash#0C0C0C
Ruined Smores#0F1012
Dreamless Sleep#111111

Looking for more Purple shades? Browse Purple colors →

Inspiration

Explore Vibrant Images Featuring Black (#040104)

Curated Unsplash photos that carry the mood of Black — hover any tile to download it or view the original.

Good to know

Frequently Asked Questions about #040104

#040104 is a cool color from the Magenta family. Its closest matched name is “Black”, matched perceptually with the CIEDE2000 color-difference formula. In RGB it is rgb(4, 1, 4); in HSL, hsl(300, 60%, 1%).
In RGB, #040104 is rgb(4, 1, 4); in HSL it is hsl(300, 60%, 1%); and in CMYK — the model used for print — it is cmyk(0%, 75%, 0%, 98%).
#040104 has a contrast ratio of 1.01:1 against black and 20.77:1 against white. For readability, white body text meets the WCAG AA threshold of 4.5:1 on it, while black does not.
The direct complement of #040104 is #010401 (opposite on the color wheel). For ready-made combinations, this page includes monochrome, analogous, triadic and tetradic palettes built from #040104 in the palette sections above.