Minecraft Color Codes & Formatting Codes

All Minecraft color codes and formatting codes: the 16 Java colors with hex and shadow values, the 12 extra Bedrock material colors, and bold, italic, underline, strikethrough, obfuscated and reset.

Open the color code editorHex gradient textMOTD generator

Colors (Java & Bedrock)

Black§0 · #000000 · black · shadow #000000
Dark Blue§1 · #0000AA · dark_blue · shadow #00002A
Dark Green§2 · #00AA00 · dark_green · shadow #002A00
Dark Aqua§3 · #00AAAA · dark_aqua · shadow #002A2A
Dark Red§4 · #AA0000 · dark_red · shadow #2A0000
Dark Purple§5 · #AA00AA · dark_purple · shadow #2A002A
Gold§6 · #FFAA00 · gold · shadow #3F2A00
Gray§7 · #AAAAAA · gray · shadow #2A2A2A
Dark Gray§8 · #555555 · dark_gray · shadow #151515
Blue§9 · #5555FF · blue · shadow #15153F
Green§a · #55FF55 · green · shadow #153F15
Aqua§b · #55FFFF · aqua · shadow #153F3F
Red§c · #FF5555 · red · shadow #3F1515
Light Purple§d · #FF55FF · light_purple · shadow #3F153F
Yellow§e · #FFFF55 · yellow · shadow #3F3F15
White§f · #FFFFFF · white · shadow #3F3F3F

Extra Bedrock colors

Bedrock Edition only. Because §m and §n are colors on Bedrock, strikethrough and underline codes do not exist there.

Minecoin Gold§g · #DDD605 · minecoin_gold
Material Quartz§h · #E3D4D1 · material_quartz
Material Iron§i · #CECACA · material_iron
Material Netherite§j · #443A3B · material_netherite
Material Redstone§m · #971607 · material_redstone
Material Copper§n · #B4684D · material_copper
Material Gold§p · #DEB12D · material_gold
Material Emerald§q · #47A036 · material_emerald
Material Diamond§s · #2CBAA8 · material_diamond
Material Lapis§t · #21497B · material_lapis
Material Amethyst§u · #9A5CC6 · material_amethyst
Material Resin§v · #EB7114 · material_resin

Formatting codes

CodeEffectJSON nameWorks in
§k / &kObfuscated (random)obfuscatedBoth
§l / &lBoldboldBoth
§m / &mStrikethroughstrikethroughJava only
§n / &nUnderlineunderlineJava only
§o / &oItalicitalicBoth
§r / &rResetresetBoth

Using the codes

§ (section sign) is the real code character. In Java Edition you cannot type it in chat, but it works in server.properties (as \u00A7), in resource packs and in plugin messages. Most server plugins (EssentialsX, chat plugins) accept & instead and convert it. Commands like /tellraw, /title and signs use JSON text with a "color" field, which also accepts any hex color such as "#FF8800". On Bedrock you can type § directly on signs, in books and in anvil names to color them. After a color code, Java resets bold, italic and the other formats, so put the color first and the formats after it.

The shadow color is the text color with each channel divided by four - that is the darker copy drawn one pixel down and right of every letter.

Questions

Why does my bold or italic text disappear when I change colors?

In Java Edition, any color code (0-9, a-f) resets active formatting like bold or italic. Always put the color code before the formatting code, such as §c§lHello instead of §l§cHello.

Why can't I type the § symbol in Minecraft Java chat?

Java Edition blocks the § character from being typed or pasted into the chat bar. To use colors in Java, use JSON text components in commands like /tellraw, or use & codes if your server has a chat formatting plugin.

Why don't strikethrough and underline work on Bedrock Edition?

In Java Edition, §m is strikethrough and §n is underline. In Bedrock Edition, m and n are used among its 12 extra material colors instead, so Bedrock has no strikethrough or underline codes.

What color format should I use for my server.properties MOTD?

Use the server.properties-safe output which converts the section symbol into the Unicode escape \u00A7. This prevents encoding errors when the server reads your configuration file.