In a way, you are correct. The darkness of space, often referred to as "black," is primarily due to the absence of visible light reaching our eyes. However, it's important to note that space itself is not completely empty. It contains various particles and forms of energy, but they are much sparser compared to Earth's atmosphere or other environments we encounter in everyday life.
In space, there are regions with very low densities of matter, including gas, dust, and other particles. These regions are often referred to as the interstellar medium. While these particles can scatter or absorb light to some extent, they are not abundant enough to significantly affect the overall darkness of space.
The primary reason space appears dark to us is that light travels in straight lines and doesn't typically interact with anything unless it encounters an object. When light from distant stars or galaxies travels through the vast expanse of space and doesn't encounter any objects along its path, it appears as if the space itself is dark.
On Earth, we are used to seeing objects because light reflects off or is emitted by them, reaching our eyes and allowing us to perceive them. In space, without any objects to reflect or emit light, we perceive it as dark. However, it's important to remember that space is not completely devoid of light; it contains various forms of electromagnetic radiation, including visible light, but they are not always directed towards our eyes.