just a reminder, you don't need the 0x prefix, you can use the alternate format for UpperHex and LowerHex, then the value will be formatted with a 0x prefiix.
be aware: the prefix in the alternate format is always in lower case 0x, even for the UpperHex formatter, which formats the hex digits in upper case; and the width specifier includes the 0x prefix too.