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

Almost black with a faint violet undertone, #040310 reads somber and heavy. Designers reach for this hex code in dark mode UI and luxury branding, where its depth beats plain black. Pair it with muted brass or dusty rose, and lean on white text, which hits about 20.5:1 contrast.
Questions about #040310
What is #040310 in RGB, HSL and CMYK?
In RGB, #040310 is rgb(4, 3, 16), in HSL hsl(245, 68%, 4%) and in CMYK 75%, 81%, 0%, 94%.
What colors pair well with #040310?
Muted brass, warm taupe, and dusty rose all lift #040310 without clashing with its violet undertone. Skip saturated brights, which can make it look muddy.
Is #040310 readable on white or black?
#040310 has a 20.47:1 contrast ratio on white and 1.02: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.