A palindrome is a number that reads the same forward and backward. The largest possible 4-digit palindrome in base 3 can be expressed as a 3-digit palindrome in another base $b>2$. What is $b$?

Let's think step by step and output the final answer within \boxed{}.
user