NEWUse coupon code SMX20 to get 20% OFF your first billing cycle on any game server or VPS!Explore Store

Formatting Codes

Colour and formatting code reference with a live text previewer.

Live preview

Gold bold Green hex orange underlined aqua

Colour codes

PreviewNameCodeHexJSON name
Black§0 / &0#000000black
Dark Blue§1 / &1#0000aadark_blue
Dark Green§2 / &2#00aa00dark_green
Dark Aqua§3 / &3#00aaaadark_aqua
Dark Red§4 / &4#aa0000dark_red
Dark Purple§5 / &5#aa00aadark_purple
Gold§6 / &6#ffaa00gold
Gray§7 / &7#aaaaaagray
Dark Gray§8 / &8#555555dark_gray
Blue§9 / &9#5555ffblue
Green§a / &a#55ff55green
Aqua§b / &b#55ffffaqua
Red§c / &c#ff5555red
Light Purple§d / &d#ff55fflight_purple
Yellow§e / &e#ffff55yellow
White§f / &f#ffffffwhite

Formatting codes

EffectCodeNotes
Bold§l / &lApplies until reset or a colour code
Italic§o / &oApplies until reset or a colour code
Underline§n / &nApplies until reset or a colour code
Strikethrough§m / &mApplies until reset or a colour code
Obfuscated§k / &kScrambles characters
Reset§r / &rClears all colour and formatting
Hex colour&#rrggbb1.16+, plugin-dependent (§x§r§r§g§g§b§b in vanilla)

A colour code resets earlier formatting (bold, italic…) in Java Edition, so put formatting codes after the colour.