#0040FF Hex Color

A high-intensity blue that commands attention

Hex color #0040ff graphic
This high-intensity blue demands immediate attention. Due to its extreme saturation, use #0040ff as a targeted accent for buttons or UI elements rather than a full background. It provides excellent readability against white text, boasting a 6.6:1 contrast ratio. Designers rely on this hex code for tech branding when they need a reliable, bold color that cuts through visual noise.

Questions about #0040ff

What is #0040ff in RGB, HSL and CMYK?
In RGB, #0040ff is rgb(0, 64, 255), in HSL hsl(225, 100%, 50%) and in CMYK 100%, 75%, 0%, 0%.
Where should I use #0040ff in a UI design?
Use #0040ff as a targeted accent color for primary buttons, call-to-action links, or interactive UI elements. Because of its extreme saturation, it functions best as a spotlight color rather than a large background fill, ensuring your interface remains visually balanced and professional.
Is #0040ff readable on white or black?
#0040ff has a 6.60:1 contrast ratio on white and 3.17: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 works only for large text (24px, or 18.5px bold). Try other pairs in the contrast checker.