Top component — pictograph of a half-moon, signifying evening or nightfall. In
名 it sets up the classic ideographic story: when night falls and you can no longer see who's approaching, you must call out your name to identify yourself. Same family of evening chars:
多 (many = double evening),
外 (outside),
梦 (dream).