In this paper, the crystal structure, optical and electronic properties of two related rubidium iodide halide perovskites RbSiI3 and RbGeI3 are investigated and discussed thoroughly. The calculations of these properties are performed using the generalized gradient approximation under Perdew-Burke-Ernzerhof functional (GGA-PBE). Also, the structural optimizations and accurate optoelectronic properties have been achieved by exploiting full-potential linearized augmented plane wave method (FP-LAPW). Analysis of optimization results exposed that the volume per unit cell and lattice parameter (a(0) = 5.8348 & Aring; (RbSiI3)) and (a(0) = 5.9631 & Aring; (RbGeI3)) are closely in agreement with the previous results. In addition, the calculated values of tolerance factor (T-F approximate to 1.0) satisfy the creation criterion for perovskites, and the negative and small values of formation energy (Delta F-E) confirm the chemical stability of studied compounds. The results of density of states and band structures reveal that RbSiI3 and RbGeI3 are nonmagnetic semiconductors having a proper direct energy gap (E-g) of 0.465 and 0.953 eV, respectively, along the M-M symmetry directions in the first Brillouin zone. The 2-D distributions of charge density confirm that the chemical bonding of Rb-I and Si/Ge-I bonds obey the covalent and ionic nature. Moreover, we have calculated and discussed the optoelectronic properties, real epsilon(1)(omega) and imaginary epsilon(2)(omega) functions, optical absorption alpha(omega), reflectivity R(omega) and refractivity n(omega). The results obtained in this study like structural stability, suitable E-g and highly accurate optical absorption alpha(omega) of visible light waves, indicate the possible exploitation of semiconductors RbSiI3 and RbGeI3 and make them candidate materials for optoelectronics, such as photovoltaic solar cells, photosensors, photodetectors and photodiodes devices.