The national flag of Slovenia (zastava Slovenije) features three equal horizontal bands of white (top), blue, and red, with the coat of arms of Slovenia located in the upper hoist side of the flag centred in the white and blue bands. The coat of arms is a shield with the image of Mount Triglav, Slovenia's highest peak, in white against a blue background at the centre; beneath it are two wavy blue lines representing the Adriatic Sea and local rivers, and above it are three six-pointed golden stars arranged in an inverted triangle which are taken from the coat of arms of the Counts of Celje, the great Slovene dynastic house of the late 14th and early 15th centuries.
The flag's colours are considered to be Pan-Slavic, but they actually come from the medieval coat of arms of the Duchy of Carniola, consisting of 3 stars, a mountain, and three colours (red, blue, yellow), crescent. The existing Slovene tricolour was raised for the first time in history during the Revolution of 1848 by the Slovene Romantic nationalist activist and poet Lovro Toman on 7 April 1848, in Ljubljana, in response to a German flag which was raised on top of Ljubljana Castle. Similar colors and designs make up other Slavic flags, particularly the flag of Slovakia.
The civil and state ensign for ships has the same design as the national flag, but a different shape (2:3 instead of 1:2). Boats up to use the national flag as an ensign. The naval jack uses colours of the coat of arms, a white, blue, and yellow horizontal tricolour.
The white-blue-red Slovene flag was first raised on 7 April 1848, on a building between Congress Square and Prešeren Square in Ljubljana, by a group of nationally minded students led by the prominent liberal nationalist activist and poet Lovro Toman. Despite opposition from the local ethnic Germans it was subsequently recognized by the Austrian Government as the official flag of Carniola. This formal recognition, albeit on a regional level, was an exception to the policy of the Austrian Government which tended to persecute national symbols of the non-German nationalities in the Empire.