#05040C
Color Details
HEX
#05040C
RGB
rgb(5, 4, 12)
HSL
hsl(248, 50%, 3%)
CMYK
cmyk(58%, 67%, 0%, 95%)
Best text on this color
#FFFFFF (CR 20.41:1)
Determined by WCAG contrast ratio
Readability Previews
Monochrome
Analogous
Complementary Mix
About #05040C
#05040C converts to RGB(5, 4, 12) and HSL(248, 50%, 3%). This page provides quick readability checks, related hues (complementary and analogous), and ready-made palettes so you can drop the color into UI components, images, or CSS immediately.
Tip: Use the “Best text” chip above as a safe default foreground on this color (chosen by contrast ratio).
#05040C FAQs
What is the RGB value of #05040C?
RGB: 5, 4, 12. Copy as CSS:
rgb(5, 4, 12)
Is #05040C a web-safe color?
No — not in the 216-color “web-safe” palette.
What is the complementary color of #05040C?
Complement: #0a0b04.
Does #05040C have good contrast on white or black?
On white: 20.41:1 (AAA (normal text)).
On black: 1.03:1 (Fails AA).