#12172B Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

Darker than navy and closer to ink, #12172b is a dim indigo with a dusty purple undertone. Its low lightness suits dark mode backgrounds, night sky themes, and luxury branding. White text clears WCAG AA easily on this hex code at about 17.7:1. Pair it with burgundy or muted gold to keep moody palettes from going flat.
Questions about #12172b
What is #12172b in RGB, HSL and CMYK?
In RGB, #12172b is rgb(18, 23, 43), in HSL hsl(228, 41%, 12%) and in CMYK 58%, 47%, 0%, 83%. Browse more shades of blue with names and hex codes.
What colors pair well with #12172b?
Muted gold, burgundy, and dusty mauve bring out its purple undertone without competing with it. White text reads most clearly against it, hitting about 17.7:1 contrast.
Is #12172b a good background for dark mode?
Yes. Its very low lightness keeps glare down on screens, and white text on top reaches about 17.7:1 contrast, well past the WCAG AA requirement of 4.5:1 for body text.
Is #12172b readable on white or black?
#12172b has a 17.74:1 contrast ratio on white and 1.18: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.