I used 2x6 tongue and groove pressure treated for my deck boards. The balance was a mixture of 2x4, 2x6, 2x8 all pressure treated.
I also painted mine black using a deck stain. I did let the wood dry for 3 months before painting.
It's been 5 years and the bed still looks good, used but good.