If the right thumb points in the direction of conventional current (red arrow: moving positive charges), the fingers of the right hand curl around the wire in the direction of the magnetic field.