Old English deorclice "in a (morally) dark manner, horribly, foully;" see dark + -ly (2). Meaning "mysteriously, with (often sinister) vagueness" is from late 14c.; that of "dimly, obscurely, faintly" is from early 15c.; that of "gloomily, ominously" is from 1590s.