Supplying buildings with cost-effective, eco-friendly and reliable energy by hybridizing sustainable renewable energy systems (RESs) and energy storage methods is becoming increasingly interesting. This study investigates the energy, environmental and economic (3E) effectiveness of three energy supply scenarios (ESSs) designed to meet the electricity and thermal needs of a typical residential building under the Mediterranean climate of Morocco. The first scenario aims to directly supply the energy produced by two RESs, namely photovoltaic and wind systems, to the building and inject the surplus electricity into the grid. In contrast, in the second scenario, the excess solar and wind energy is stored in batteries, while in the third one a proton exchange membrane electrolyzer is used to produce hydrogen and store it for later use through fuel cells. To examine the performance of these scenarios, numerous software, such as EnergyPlus and PVsyst, as well as numerical models are used. The findings indicate that the second and third scenarios can achieve an energy coverage ratio of up to 100 %, whilst the first scenario reaches lower ratio of 52.56 %. Environmentally, the first scenario exhibits the best outcomes with a carbon payback period of one year and a reduction in carbon emissions of 18.21 tCO2e/year. On the other side, the carbon payback period and carbon emissions reduction are 1.66 years and 15.13 tCO2e/year for the second scenario, and 1.14 years and 14.82 tCO2e/year for the third scenario. Economically, the first scenario reveals the best economic findings, followed by the second one, while the third scenario is not economically feasible. The obtained simple payback period values for the first, second and third scenarios are 5.80, 7.89 and 16.30 years, whereas their levelized cost of energy shares are 0.05, 0.09 and 0.21 $/kWh, sequentially. The outcomes of this research significantly contribute to the field by providing crucial information for building owners and professionals to help them in discerning the most efficient ESSs in the 3E prospects, and hence improving their decision-making and implementation processes.