Black Friday 2026: design deals we check every day. See the deals →

#04040C Hex Color

Online color picker to view shades, tints, color codes, and complementary colors

 
#04040c
Hex color #04040c graphic
This near-black hue functions as an ultra-dark, inky base with subtle cool undertones. Because #04040c is so close to black, it provides excellent contrast for white typography, comfortably exceeding WCAG accessibility standards. Use it as a dominant background to create high-end, moody interfaces, but pair it with soft metallics or muted pastels to prevent the design from feeling too bleak or impenetrable. The hex code is #04040c.

Color Conversions

Hex color #04040c converted to various formats including hex, rgb, hsl, and more.

  • Hex#04040c
  • RGBrgb(4, 4, 12)
  • RGB Percentagesrgb(2%, 2%, 5%)
  • CMYK67%, 67%, 0%, 95%
  • HSLhsl(240, 50%, 3%)
  • HSVhsv(240, 67%, 5%)
  • OKLCHoklch(11.3% 0.022 282.3)
  • LCH1, 3, 290
  • LAB1, 1, -3
  • LUV1, -0, -2
  • XYZ0, 0, 0
  • Closest Tailwind Colorgray-950

Color Variations

Variations of this color including shaded, tints, and complementary colors.

Brighten

Tints of the color as they brighten toward white.

#04040c
#15151f
#2a2a34
#41414a
#595962
#72737a
#8d8d93
#a8a8ad
#c4c5c8
#e1e1e3

Darken

Shades of the color as they darken toward black.

#04040c
#030309
#020206
#010104
#010103
#010102
#000001
#000000
#000000
#000000

Desaturate

Desaturated versions of this color.

#04040c
#0c0d16
#171720
#22232b
#2f2f36
#3b3c42
#48494e
#56565a
#636466
#727273

Hue

Various hues of this color.

#0c0407
#0c040a
#0b040c
#07040c
#04040c
#04070c
#040b0c
#040c0a
#040c07

Analogous

Analogous color palette of this color, meaning colors that are next to each other on the color wheel.

#04040c
#04070c
#04060c

Monochromatic

Monochromatic colors for this color, monochromatic colors are all of the same hue.

#04040c
#121236
#202061
#2f2f8b
#3d3db6
#4b4be0

Complementary

Complementary colors for this color, complementary colors are opposites on the color wheel.

#04040c
#0c0c04

Split Complement

Split-complementary colors which use adjacent colors of this color’s complementary color.

#04040c
#0c040a
#070c04

Triad

Triad colors which pull themselves in a triangle across the color wheel.

#04040c
#0c0404
#040c04

Tetrad

Tetrad colors which pull themselves in a square shape across the color wheel.

#04040c
#0c0408
#0c0c04
#040c08

Contrast Checker

Contrast test results for the color #04040c on black and white backgrounds.
Open in contrast checker →

White Background

Passes AAA
Example Headline (24px)

The font-size of this text is 18.5px. Click anywhere to edit this text. Lorem Ipsum is simply dummy text of the printing and typesetting industry.

Black Background

Fails WCAG
Example Headline (24px)

The font-size of this text is 18.5px. Click anywhere to edit this text. Lorem Ipsum is simply dummy text of the printing and typesetting industry.

Color Blindness Simulation

See how #04040c appears to people with color vision deficiency (CVD).

Normal Vision
#04040c
Protanopia
#04040c
Red-blind (~1% of males)
Deuteranopia
#04040c
Green-blind (~1% of males)
Tritanopia
#030505
Blue-blind (very rare)
Achromatopsia
#050505
Total color blindness

Questions about #04040c

What is #04040c in RGB, HSL and CMYK?
In RGB, #04040c is rgb(4, 4, 12), in HSL hsl(240, 50%, 3%) and in CMYK 67%, 67%, 0%, 95%. Browse more shades of black with names and hex codes.
How does #04040c perform in UI design compared to pure black?
Using #04040c is often better than pure black because it feels more natural and less harsh on the eyes. It maintains strong contrast against white text while preventing the stark, artificial visual tension often created by fully saturated #000000 black.
What color palettes pair well with #04040c?
This color works best when paired with soft metallics or muted, desaturated pastels to soften its intensity. Consider using silver or sage accents to complement its cool undertones, keeping the overall design sophisticated rather than feeling too bleak or impenetrable.
Is #04040c readable on white or black?
#04040c has a 20.43:1 contrast ratio on white and 1.02:1 on black. WCAG asks for 4.5:1 for body text and 3:1 for large text, so on white it works for body text and on black it is too faint for text. Try other pairs in the contrast checker.