#0D1117 Hex Color

A sophisticated near-black with cool undertones

Hex color #0d1117 graphic
This near-black shade is a dim, ashy blue that functions best as a sophisticated alternative to pure black. Because it offers a 18.9:1 contrast ratio against white, use #0d1117 for dark mode interfaces or high-end branding where readability matters. Pair it with soft cream or muted gold accents to prevent the tone from feeling too flat or overly clinical in your designs.

Questions about #0d1117

What is #0d1117 in RGB, HSL and CMYK?
In RGB, #0d1117 is rgb(13, 17, 23), in HSL hsl(216, 28%, 7%) and in CMYK 43%, 26%, 0%, 91%. Browse more shades of black with names and hex codes.
Is #0d1117 better than pure black for website backgrounds?
#0d1117 is often preferred over pure black because it reduces eye strain and harsh contrast while maintaining a professional, premium aesthetic. Its subtle blue undertones make long-form text easier to read and less fatiguing for users in dark mode environments.
Which accent colors pair well with #0d1117?
Pair #0d1117 with soft creams, muted golds, or crisp whites to create a refined visual balance that prevents the design from appearing flat. These lighter tones introduce necessary warmth and depth, ensuring the overall composition feels high-end rather than sterile or overly clinical.
Is #0d1117 readable on white or black?
#0d1117 has a 18.92:1 contrast ratio on white and 1.10: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.