#0C0028 Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

#0c0028 is an extremely desaturated, near-black violet that creates a somber, authoritative mood. Because it sits so close to black, this hex code works effectively as a dark-mode background. White text stands out sharply against this surface, providing high readability with a 20.1:1 contrast ratio. Use it in editorial designs when you need visual depth without the intense starkness of pure black.
Questions about #0c0028
What is #0c0028 in RGB, HSL and CMYK?
In RGB, #0c0028 is rgb(12, 0, 40), in HSL hsl(258, 100%, 8%) and in CMYK 70%, 100%, 0%, 84%.
Is #0c0028 a good replacement for pure black in web design?
#0c0028 serves as an excellent, softer alternative to pure black because it retains high readability while reducing eye strain. It provides the same authoritative foundation as black but adds a subtle violet undertone that feels more intentional and premium in UI design.
Is #0c0028 readable on white or black?
#0c0028 has a 20.07: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.