Princess Sofia sported a darker hair colour as she and and Prince Carl Philip attended the opening of the Swedish Parliament with the royal family