This study explores Bangladesh’s present energy condition, renewable energy (RE) possibilities and designs an optimal 100% RE-based off-grid power system for St. Martin’s Island, Bangladesh. The optimal size of a hybrid renewable microgrid based on photovoltaic (PV) cells, a battery energy storage system (BESS), fuel cells (FC), and an electrolysis plant (EP) is proposed. Advanced direct load control (ADLC) and rooftop PV meet the energy demand at the lowest cost, and profits are maximized by selling chemical products produced by seawater electrolysis. Four cases are explored with the mixed-integer linear programming (MILP) optimization technique using MATLAB® software to demonstrate the efficacy of the suggested power system. The system cost in case 1 is lower than in the other cases, but there is no chance of profiting. Cases 2, 3, and 4 have greater installation costs, which may be repaid in 8.17, 7.72, and 8.01 years, respectively, by the profits. Though the revenue in case 3 is 6.23% higher than in case 2 and and 3.85% higher than in case 4, case 4 is considered the most reliable power system, as it can meet the energy demand at the lowest cost while increasing profits and not putting a burden on customers.