The only working conversion method:

echo 'obase=10; ibase=16; 1F' | bc

The order in which values are given matters!

Always use uppercase hexadecimal digits!