ङ is vyanjan number 5 of 33, and letter 5 of the क वर्ग (ka group).
Today these words are usually written with a dot (anusvar) instead: रंग, गंगा, पंखा. The letter is still part of the varnamala and of the क वर्ग.