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

#2874ef is a saturated, high-intensity blue with a strong, electric character. Because it sits high on the saturation scale, this hue commands attention and pairs well with crisp white or dark gray for high-contrast UI elements. The hex code #2874ef serves best as an accent color for calls to action, as its brightness can feel overwhelming when used as a full-screen background.
Questions about #2874ef
What is #2874ef in RGB, HSL and CMYK?
In RGB, #2874ef is rgb(40, 116, 239), in HSL hsl(217, 86%, 55%) and in CMYK 83%, 51%, 0%, 6%.
Where should I use #2874ef in my UI design?
#2874ef is a high-intensity blue best reserved for interactive elements like buttons, toggle switches, or notification badges. Because of its extreme saturation, using it for large backgrounds often causes visual fatigue, whereas it shines when highlighting critical user actions against neutral layouts.
Is #2874ef readable on white or black?
#2874ef has a 4.34:1 contrast ratio on white and 4.83:1 on black. WCAG asks for 4.5:1 for body text and 3:1 for large text, so on white it works only for large text (24px, or 18.5px bold) and on black it works for body text. Try other pairs in the contrast checker.