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

Almost black at first glance, #040b38 is a very dark, unsaturated navy with a cool undertone. That depth suits dark mode backgrounds and finance, legal, or government branding. White text reads clearly on it at roughly 18.9:1 contrast, and warm accents like amber or burgundy keep large areas from feeling flat.
Questions about #040b38
What is #040b38 in RGB, HSL and CMYK?
In RGB, #040b38 is rgb(4, 11, 56), in HSL hsl(232, 87%, 12%) and in CMYK 93%, 80%, 0%, 78%.
What colors pair well with #040b38?
Warm accents like amber, burgundy, or muted gold balance the cool depth of #040b38 and keep large areas from reading flat. For text, white delivers about 18.9:1 contrast.
Is #040b38 readable on white or black?
#040b38 has a 18.91:1 contrast ratio on white and 1.11: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.