Your next pocket travel guide
Upvote:5
No, it would not be legal. UK is not part of Schengen area, you cannot cross the border of any Schengen country on basis of your UK visa.
See also here Schengen Visa Requirements for UK spouse.