#304151 Hex Color

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

Hex color #304151 graphic
This dusty, muted blue carries a serious weight that makes it a natural choice for professional interfaces and security-focused branding. Because #304151 is so dark and unsaturated, it serves best as a moody background color rather than a primary accent. It offers excellent legibility for white text, so use it to ground high-contrast design systems where black feels too harsh or artificial.

Questions about #304151

What is #304151 in RGB, HSL and CMYK?
In RGB, #304151 is rgb(48, 65, 81), in HSL hsl(209, 26%, 25%) and in CMYK 41%, 20%, 0%, 68%. Browse more shades of gray with names and hex codes.
When should I use #304151 in a design project?
#304151 functions best as a sophisticated background choice for professional interfaces where black feels too harsh. It provides a stable, serious foundation for white typography, making it highly effective for security, financial, or data-heavy applications that require a sense of trust.
How does #304151 behave with other colors?
This shade anchors a palette effectively when paired with lighter neutrals like pearl or soft grey. Because of its muted, dusty undertones, it also creates a balanced contrast when used alongside muted accent colors, rather than vibrant or neon hues.
Is #304151 readable on white or black?
#304151 has a 10.49:1 contrast ratio on white and 2.00: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.