OP meant to get the printer to print in black and white when there's no cyan/magenta/yellow ink. Many color inkjets have the bad habit of not allowing you to print anything if one of the cartrigdes is empty -- even if you don't need said cartridge.
The expectation that it could work without ink or toner of a color is understandable but not necessarily correct.