#1F51FF Hex Color

Online color picker to view shades, tints, color codes, and complementary colors

Hex color #1f51ff graphic
This electric, highly saturated blue demands immediate attention. Due to its intense chroma, #1f51ff functions best as a focused accent rather than a dominant background. White text sits comfortably against it with a 5.7:1 contrast ratio, ensuring clear readability for UI elements. Use the hex code #1f51ff sparingly to guide user focus toward buttons or critical calls to action.

Questions about #1f51ff

What is #1f51ff in RGB, HSL and CMYK?
In RGB, #1f51ff is rgb(31, 81, 255), in HSL hsl(227, 100%, 56%) and in CMYK 88%, 68%, 0%, 0%. Browse more shades of blue with names and hex codes.
How should I use #1f51ff in UI design?
Apply #1f51ff sparingly as a focused accent color for call-to-action buttons or critical alerts. Because it is highly saturated, it draws the eye immediately, so using it for secondary elements or backgrounds can quickly overwhelm the user interface and cause visual fatigue.
Is #1f51ff readable on white or black?
#1f51ff has a 5.70:1 contrast ratio on white and 3.67: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.