What conditions must exist for the area of the blue square to equal the sum of the areas of the green and red squares?

Pythagoras' theorem states "In any right-angled triangle, the square on the hypotenuse is equal to the sum of the squares on the other two sides". What is the converse of this theorem?