upon closing your eyes you may think you see figures lines and even colors. this is your eyes adjusting to the lack of light (entoptic phenomena). they are harmless and you can learn to ignore them. if you are worried that it's something else go to an ophthalmologist or optometrist.
lights colors and squiggly lines when i close eyes preventing sleep -in a dark room. what causes this? . am subject to ocular migraines. often have trouble sleeping otherwise healthy.