The energy of a photon is equal to (hc)/lambdahcλ, where hh is Planck's constant, cc is the speed of light, and lambdaλ is the wavelength in meters.
So here we have:
h=6.626*10^-34 m ^2kgs^-1h=6.626⋅10−34m2kgs−1
c=299 792 458ms^-1c=299792458ms−1
lambda=380*10^-9mλ=380⋅10−9m
So input:
(6.626*10^-34*299 792 458)/(380*10^-9)6.626⋅10−34⋅299792458380⋅10−9
=5.227*10^-19J=5.227⋅10−19J