#232031 Hex Color

A nearly black and deeply moody purple

Hex color #232031 graphic
This nearly black, muted purple carries a heavy, serious weight suitable for moody UI design. Because it lacks high saturation, #232031 functions best as a dark-mode background rather than an accent. It provides excellent legibility for white text, offering a softer, more sophisticated alternative to pure black. Pair it with muted gold or sage green for a structured, balanced aesthetic. The hex code for this color is #232031.

Questions about #232031

What is #232031 in RGB, HSL and CMYK?
In RGB, #232031 is rgb(35, 32, 49), in HSL hsl(251, 21%, 16%) and in CMYK 29%, 35%, 0%, 81%.
How should I use #232031 in UI design?
#232031 functions best as a sophisticated background color for dark-mode interfaces, offering much more depth and personality than standard pure black. It provides excellent legibility for white or light-toned text, grounding your design with a stable, professional, and modern aesthetic.
What colors pair well with #232031?
This deep, muted purple works beautifully when paired with earthy accents like sage green or soft, metallic golds. These combinations balance the heavy, serious nature of #232031 by adding a subtle layer of organic warmth and visual interest to your palette.
Is #232031 readable on white or black?
#232031 has a 15.87:1 contrast ratio on white and 1.32: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.