Quick answer
Colours are adjectives, so they take the gender of the noun: кра́сный дом, кра́сная маши́на, кра́сное окно́.
The basics
The rest
Two words for blue
Russian treats си́ний (dark blue) and голубо́й (light blue) as two different colours, the way English treats red and pink. Studies show Russian speakers actually distinguish those shades faster than English speakers — the language trains the eye.
In a sentence
Typical mistakes
си́ний не́бо
голубо́е не́бо
The sky is light blue — and не́бо is neuter, so the ending changes too.
кра́сный маши́на
кра́сная маши́на
The adjective follows the gender of the noun.
Check yourself
How do you say “the blue sky”?