Newton observed that color is not inherent in objects. Rather, the surface of an object reflects some colors and absorbs all the others. We perceive only the reflected colors.
Thus, red is not "in" an apple. The surface of the apple is reflecting the wavelengths we see as red and absorbing all the rest. An object appears white when it reflects all wavelengths and black when it absorbs them all.The human eye and brain together translate light into color. Light receptors within the eye transmit messages to the brain, which produces the familiar sensations of color.
If the room is illuminated by red light,
Black box appears black, because black colour absorbs all colours
White box appears red, because it reflects all colours and it also reflects red which we see.
Red box appears red because it reflects the red light.
Blue box appears black, because it absorbs the red light and remaining there will be no light which reaches our eyes, so it appears dark