Questions & Answers about Der Himmel ist blau.
Unfortunately there’s no perfect rule for gender. You can
- Consult a good dictionary (it will list m/f/n),
- Learn common endings (e.g. -ung words are usually feminine),
- Memorize with the noun (e.g. learn “der Himmel” as a single phrase).
In this sentence blau is a predicate adjective (it follows a copular verb like sein). Predicate adjectives are not inflected, so you simply use the base form blau.
By contrast, attributive adjectives (those placed directly before a noun) do take endings. For example: “der blaue Himmel.”