#0C180F Hex Color

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

Hex color #0c180f graphic
This dark green sits on the edge of black. Its low value makes it an effective base for moody UI designs. The hex code #0c180f pairs well with stark white text, easily exceeding WCAG contrast standards for body copy. Use it to provide a grounded, organic feel to interfaces without the harshness of a true black background.

Questions about #0c180f

What is #0c180f in RGB, HSL and CMYK?
In RGB, #0c180f is rgb(12, 24, 15), in HSL hsl(135, 33%, 7%) and in CMYK 50%, 0%, 37%, 91%. Browse more shades of black with names and hex codes.
How does #0c180f function as a UI background compared to pure black?
Using #0c180f creates a deeper, more grounded interface experience without the harsh high-contrast visual fatigue caused by absolute black. It feels organic and sits comfortably on the eye, making it ideal for modern dark mode web applications.
What accent colors work best alongside the dark tones of #0c180f?
Because #0c180f is essentially a very dark forest green, it pairs beautifully with cream for soft contrast or a sharp mint to highlight specific interactive elements. Avoid overly warm colors, which may muddy the depth of the background.
Is #0c180f readable on white or black?
#0c180f has a 18.21:1 contrast ratio on white and 1.15: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.