With \(x\geq 0\), the entry \(6x\) is nonnegative, so the Hessian is positive semidefinite. Having a zero in the Hessian does not prevent convexity, and a zero gradient does not determine convexity.
Criterion characterizing convexity of a twice differentiable function through positive semidefiniteness of its Hessian matrix \(\nabla^2 f(x)\) at every point of the domain.