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

#0D040F Hex Color

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

 
#0d040f
Hex color #0d040f graphic
#0d040f is an almost-black shade with a faint purple undertone and very low lightness, giving it a sooty, somber feel. This hex code brings mystery, authority, and restrained elegance to editorial layouts, luxury branding, and dark interfaces. Use it as a dominant background with white text, which reaches about 20.2:1 contrast, while brighter accents prevent the surface from feeling muddy.

Color Conversions

Hex color #0d040f converted to various formats including hex, rgb, hsl, and more.

  • Hex#0d040f
  • RGBrgb(13, 4, 15)
  • RGB Percentagesrgb(5%, 2%, 6%)
  • CMYK13%, 73%, 0%, 94%
  • HSLhsl(289, 58%, 4%)
  • HSVhsv(289, 73%, 6%)
  • OKLCHoklch(13.1% 0.032 321.1)
  • LCH2, 5, 318
  • LAB2, 4, -4
  • LUV2, 1, -2
  • XYZ0, 0, 0
  • Closest Tailwind Colormauve-950

Color Variations

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

Brighten

Tints of the color as they brighten toward white.

#0d040f
#201622
#352b37
#4b424d
#625a64
#7b737c
#948d95
#ada9ae
#c8c5c9
#e3e2e3

Darken

Shades of the color as they darken toward black.

#0d040f
#0a030b
#070208
#050105
#030103
#020102
#010001
#000000
#000000
#000000

Desaturate

Desaturated versions of this color.

#0d040f
#170d19
#211823
#2c232e
#372f38
#433c44
#4e494f
#5a565b
#676467
#737273

Hue

Various hues of this color.

#0f0904
#0f0504
#0f0408
#0f040c
#0d040f
#08040f
#04040f
#04090f
#040d0f

Analogous

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

#0d040f
#09040f
#0b040f

Monochromatic

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

#0d040f
#320f39
#571b64
#7b268e
#a031b9
#c53de3

Complementary

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

#0d040f
#060f04

Split Complement

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

#0d040f
#0f0404
#040f09

Triad

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

#0d040f
#0f0d04
#040f0d

Tetrad

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

#0d040f
#0f0704
#060f04
#040b0f

Contrast Checker

Contrast test results for the color #0d040f 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 #0d040f appears to people with color vision deficiency (CVD).

Normal Vision
#0d040f
Protanopia
#06060f
Red-blind (~1% of males)
Deuteranopia
#07070f
Green-blind (~1% of males)
Tritanopia
#0c0505
Blue-blind (very rare)
Achromatopsia
#070707
Total color blindness

Questions about #0d040f

What is #0d040f in RGB, HSL and CMYK?
In RGB, #0d040f is rgb(13, 4, 15), in HSL hsl(289, 58%, 4%) and in CMYK 13%, 73%, 0%, 94%. Browse more shades of black with names and hex codes.
What colors pair well with #0d040f?
#0d040f pairs well with burgundy, muted gold, warm ivory, and dusty mauve because these accents add contrast without breaking its serious, luxurious mood. Use one brighter accent sparingly so the nearly black base remains the visual anchor.
Is #0d040f readable on white or black?
#0d040f has a 20.16:1 contrast ratio on white and 1.04: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.