First Minister Nicola Sturgeon has welcomed Scotland's "unequivocal" vote to stay in Europe.
But despite the vote, the country still faces the prospect of leaving the EU, after the Leave campaign edged ahead across the UK.
The result means Ms Sturgeon will now come under pressure to call a second independence referendum.
She said the vote made it clear that "the people of Scotland see their future as part of the European Union."
"We await the final UK-wide result, but Scotland has spoken - and spoken decisively."
After a mostly dry start, scattered, slow-moving showers will developing, some heavy and thundery.
Dry, sunny breaks are likely between the showers, in which it will feel warm.
Maximum Temperature 20 °C.
Get the EU Referendum results as they happen with the ITV News app.Read the full story ›
Staying dry for many overnight with some clear spells, although turning cloudier later with the risk of some isolated showers, mainly over Cumbria and western parts of Dumfries and Galloway.
A mild night with temperatures remaining firmly in double figures.
Minimum Temperature 13 °C.
EU Referendum ballot boxes have arrived and counting is starting across Cumbria and the South of Scotland.
We have staff at counts around the region and will keep you up to date with all the latest results and developments throughout the night.
Sorry, this content isn't available on your device.
A look ahead at the forecast for the Border regionRead the full story ›