#1F1F27 Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

This muted, near-black indigo functions as a sophisticated alternative to standard dark grey backgrounds. It carries a subtle, moody violet undertone that keeps interfaces feeling less sterile. Because it offers strong contrast against white text, #1f1f27 works well for full-page dark mode layouts. Pair this hex code with soft teals or muted oranges to ground your design palette without losing its sense of depth.
Questions about #1f1f27
What is #1f1f27 in RGB, HSL and CMYK?
In RGB, #1f1f27 is rgb(31, 31, 39), in HSL hsl(240, 11%, 14%) and in CMYK 21%, 21%, 0%, 85%. Browse more shades of black with names and hex codes.
Why use #1f1f27 instead of a standard black or grey?
Choosing #1f1f27 over a neutral grey prevents interfaces from looking sterile or flat. Its subtle violet undertone provides a sense of depth and warmth, making it an ideal anchor for full-page dark mode designs that require high readability and a modern aesthetic.
What colors pair best with #1f1f27?
This deep indigo works best with muted oranges or soft teals to create a balanced, professional contrast. You can also pair it with cream or pale beige text to soften the overall appearance without losing visual hierarchy or clarity.
Is #1f1f27 readable on white or black?
#1f1f27 has a 16.36:1 contrast ratio on white and 1.28: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.