To find the value of the function \( y = 3x^2 - 21 \) when \( x = 4 \), plug in \( 4 \) for \( x \):
\[ y = 3(4)^2 - 21 \]
Calculate \( (4)^2 \):
\[ (4)^2 = 16 \]
Now, substitute this value back into the equation:
\[ y = 3(16) - 21 \]
Now, multiply \( 3 \) by \( 16 \):
\[ y = 48 - 21 \]
Finally, subtract \( 21 \) from \( 48 \):
\[ y = 27 \]
Therefore, the value of the function when \( x = 4 \) is \( \boxed{27} \).