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

#0C040F Hex Color

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

 
#0c040f
Hex color #0c040f graphic
With a sooty, almost-black base and faint purple undertones, #0c040f creates a serious, secretive mood. The hex code #0c040f works well as a dominant background in dark interfaces, luxury branding, editorial layouts, and formal fashion designs. Its extreme darkness can swallow fine detail, so pair it with clear typography. White text has about 20.2:1 contrast.

Color Conversions

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

  • Hex#0c040f
  • RGBrgb(12, 4, 15)
  • RGB Percentagesrgb(5%, 2%, 6%)
  • CMYK20%, 73%, 0%, 94%
  • HSLhsl(284, 58%, 4%)
  • HSVhsv(284, 73%, 6%)
  • OKLCHoklch(13.0% 0.031 317.8)
  • LCH2, 5, 315
  • 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.

#0c040f
#1f1622
#342b37
#4a424d
#615a64
#7a737c
#938d95
#ada9ae
#c8c5c9
#e3e1e3

Darken

Shades of the color as they darken toward black.

#0c040f
#09030b
#060208
#040105
#030103
#020102
#010001
#000000
#000000
#000000

Desaturate

Desaturated versions of this color.

#0c040f
#160d19
#201823
#2b232e
#362f39
#423c44
#4e494f
#5a565b
#666467
#737273

Hue

Various hues of this color.

#0f0804
#0f0404
#0f0409
#0f040d
#0c040f
#07040f
#04050f
#040a0f
#040e0f

Analogous

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

#0c040f
#08040f
#0a040f

Monochromatic

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

#0c040f
#2e0f39
#501b64
#72268e
#9431b9
#b63de3

Complementary

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

#0c040f
#070f04

Split Complement

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

#0c040f
#0f0405
#040f08

Triad

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

#0c040f
#0f0c04
#040f0c

Tetrad

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

#0c040f
#0f0604
#070f04
#040c0f

Contrast Checker

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

Normal Vision
#0c040f
Protanopia
#05050f
Red-blind (~1% of males)
Deuteranopia
#07070f
Green-blind (~1% of males)
Tritanopia
#0b0505
Blue-blind (very rare)
Achromatopsia
#060606
Total color blindness

Questions about #0c040f

What is #0c040f in RGB, HSL and CMYK?
In RGB, #0c040f is rgb(12, 4, 15), in HSL hsl(284, 58%, 4%) and in CMYK 20%, 73%, 0%, 94%. Browse more shades of black with names and hex codes.
What colors pair well with #0c040f?
#0c040f pairs well with white and pale cool neutrals for crisp contrast, while muted mauve or lavender accents bring out its faint purple undertone without making the palette feel overly bright.
Does #0c040f read warm or cool?
#0c040f reads as a cool, nearly black shade because its subtle purple undertone shifts the sooty base away from neutral gray, giving dark interfaces and formal layouts a serious, secretive character.
Is #0c040f readable on white or black?
#0c040f has a 20.19:1 contrast ratio on white and 1.03: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.