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

Dark and muted, #1f1f26 is a near-gray indigo with a faint purple undertone. Its very low lightness creates a serious, mysterious mood, while its soft saturation keeps it restrained rather than vivid. Use the hex code #1f1f26 as a dark-mode background or pair it with white text, which provides about 16.4:1 contrast.
Questions about #1f1f26
What is #1f1f26 in RGB, HSL and CMYK?
In RGB, #1f1f26 is rgb(31, 31, 38), in HSL hsl(240, 10%, 14%) and in CMYK 18%, 18%, 0%, 85%.
What colors pair well with #1f1f26?
#1f1f26 pairs well with white and soft off-whites for crisp contrast, while muted lavender, cool blue, and mauve can soften its dark indigo base without losing its restrained visual weight.
Does #1f1f26 look warm or cool?
#1f1f26 reads cool because its blue-violet bias pulls the near-gray base away from neutral charcoal, though its low saturation keeps the effect subdued rather than icy or as saturated as navy.
Where does #1f1f26 work best?
Use #1f1f26 for dark-mode backgrounds, navigation panels, cards, or editorial layouts where its restrained, serious foundation lets brighter text and carefully chosen accents stand out clearly without making the interface feel stark or overly bright. Its low lightness makes it less suitable for small dark text on dark or midtone surfaces.
Is #1f1f26 readable on white or black?
#1f1f26 has a 16.37: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.