Hard to tell with him hiding in there, but looks like a Mithrax crab. Would be fine in a reef tank. Since you probably got a better view of him, google Mithrax, and see if that's what he looks like. They are usually green, but they can be red and brown/black too.