Here we can use Wien's Displacement Law to calculate the temperature. The formula is given as.

We can rewrite that as

The Wien constant is given as [K*m] (Kelvin*meter)

So we convert our wavelength of 300 nm to m.

Combine it all

The temperature is 9657 Kelvin