Color Codes › Minecraft

Minecraft color codes

All 16 Minecraft colour codes with their chat codes, MOTD codes and hex values, plus the formatting codes. Click any value to copy it. Works in chat, signs, books, server MOTD and commands.

Quick start: type § followed by a code before your text — e.g. §cHello shows red text. Use & in most plugin configs and \u00A7 in server.properties.

Formatting codes

CodeEffectNotes
§lBoldBold text
§oItalicItalic text
§nUnderlineUnderlined text
§mStrikethroughCrossed-out text
§kObfuscatedRandomly changing characters
§rResetClears all colour and formatting

How Minecraft color codes work

Minecraft uses the section sign (§) followed by a single character to colour or format text. A colour code such as §1 (dark blue) switches the colour of everything after it until another code appears. There are 16 colours, mapped to the hex digits 09 and af.

One catch worth knowing: in Java Edition, if you put a colour code after a formatting code, the formatting resets. So always apply the colour first, then the format — and reapply the format if you change colour mid-line.

Where you can use them

Signs, books, anvils (item and map names), the server MOTD, world titles and commands like /tellraw and /title. Since Java 1.16 you can also use full hex colours in JSON text commands, e.g. {"text":"Hi","color":"#FF6600"} — giving you all 16 million colours, not just these 16. Build a custom hex with the colour picker.

Typing the § symbol

On Windows hold Alt and type 0167 on the numpad. On Mac press Option + 6. Many plugins (like Essentials) accept & as an easier substitute and convert it to § automatically.

Frequently asked questions

How do you use color codes in Minecraft?
Type § followed by a hex digit (0-9 or a-f) before your text — §cHello shows red. Works in signs, books, anvils, the MOTD and commands like /tellraw.
How do I type the § symbol?
Windows: hold Alt and type 0167 on the numpad. Mac: Option + 6. In plugin configs use &; in server.properties use \u00A7.
How many Minecraft color codes are there?
16 colour codes (§0–§f) plus 6 formatting codes. Bedrock adds a 17th colour, §g Minecoin Gold.

More color codes

Roblox Colors →
BrickColors with RGB.
Discord Colors →
Brand palette + role colours.
CSS Named Colors →
All 140 with codes.
Color Picker →
Build any hex colour.