RAM _capacity_ has a direct effect on energy, usage not nearly much if at all.
Hardware has been around to selectively put banks into low power saving mode, but I've never heard of any commodity OS that supported anything like that. It'd require active organization of physical pages to take advantage of, if common controllers even supported it