Denim blue is a strong, medium blue named after the cloth of blue jeans. Its usual code is #1560BD: blue at 74%, green at 38% and almost no red. That makes it clean and bright, close to sapphire, and a good deal livelier than most real jeans.
Denim is a sturdy cotton twill. Only the lengthwise warp threads are dyed with indigo; the crosswise weft threads stay white. The weave brings the blue warp to the front and the white weft to the back, which is why jeans are blue outside and pale inside. The name is French: serge de Nîmes, a serge cloth from the city of Nîmes, shortened in English to denim.
Denim also fades in a way few dyed fabrics do. Indigo does not soak into cotton the way most dyes do. Yarn is dipped in the dye bath and aired again and again, and each dip adds a layer of blue to the outside, while the core of the yarn stays white. As the surface wears away at the knees, seams and pockets, the white shows through. Stonewashing copies the effect with pumice stones, so “denim blue” covers everything from near-navy raw cloth to a pale, bleached sky blue.
The code #1560BD comes from a crayon color called denim, not from any standard. When people in the xkcd color survey named colors themselves, their average denim blue was a grayer, darker #3B5B92, much nearer to a pair of worn jeans. On screen, the code carries white text well (6.1:1) and pairs naturally with white, copper, tan and a red accent.