The phrase refers to a hopeful attempt at something or a wild guess especially when you have no certain information or knowledge about the subject. Example: It was just a shot in the dark, but I was right!