There are different dream imagery about dreaming of darkness. You might see darkness in your dream. Or you might see dark colours in your dream. Dream characters may be wearing dark colours. The darkness could be references to a dark personality which remains hidden, except in brief flashes of exposure.
Darkness in a dream can be alluding to the ambitious nature of your personality. The self-serving aspect of a person’s needs and wants, and fulfillment of these wishes, belong to the dark side.
Dreaming of darkness can mean your inner consciousness is trying to warn you about what is coming. Your superego, which is like a morality police person, tries to strike a balance between your Id and ego (light and dark).