The optical activity of dye molecules in different environments is of great interest for many applications such as laser system or biological imaging. We investigate the fluorescence and absorption spectrum of nano-confined xanthene dyes (RhB and fluorescein sodium salt) in a two-phase liquid. Each show very distinct optical behavior in the water phase of a reverse microemulsion. Their optical properties such as absorption and fluorescence for different concentrations of dye and nanodroplets are investigated. We show that for the same concentration of dye in the microemulsion the peak of fluorescence intensity is varied by altering the concentration of nanodroplets. However, the trend of the change is widely different depending on the hydrophobicity of dyes. Quantum-mechanical second order perturbation theory is used to calculate the ratio of dipole moments in the ground and excited states, which accounts for the Stokes shift in fluorescence peak. Photon correlation spectroscopy is employed to check the trace of the dye in the oil phase of the microemulsion.