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

The #042abf hex code defines a deep, highly saturated blue with a cool, slightly violet cast. Its strong darkness suggests authority, security, and control without losing visual energy. Use it as a dominant UI or brand base, then add white text for clear contrast. It suits finance, technology, government, and formal designs, though large areas can feel heavy.
Questions about #042abf
What is #042abf in RGB, HSL and CMYK?
In RGB, #042abf is rgb(4, 42, 191), in HSL hsl(228, 96%, 38%) and in CMYK 98%, 78%, 0%, 25%. Browse more shades of blue with names and hex codes.
What colors pair well with #042abf?
#042abf pairs well with burgundy as a restrained warm accent, while off-white or pale gray keeps the palette readable. Use burgundy sparingly because two dark, saturated colors can compete when they occupy equal space.
Is #042abf readable on white or black?
#042abf has a 10.05:1 contrast ratio on white and 2.08: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.