nurshia

Color Codes

All Minecraft color codes and formatting codes with § and & syntax, hex values, MiniMessage names and Bedrock-only colors. Find the closest code to any hex color.

Color codes

Click any code to copy it. Hex is the exact text color on Java Edition; the shadow is drawn at a quarter of its brightness.

Minecraft Java Edition color codes
ColorSectionAmpersandMiniMessageJSON / nameHexShadow
Black#000000
Dark Blue#00002A
Dark Green#002A00
Dark Aqua#002A2A
Dark Red#2A0000
Dark Purple#2A002A
Gold#3F2A00
Gray#2A2A2A
Dark Gray#151515
Blue#15153F
Green#153F15
Aqua#153F3F
Red#3F1515
Light Purple#3F153F
Yellow#3F3F15
White#3F3F3F

Closest code to any hex color

RedClose

Also close

Gold &6Gray &7

Or keep the exact color (Java 1.16+)

Formatting codes

In legacy formatting a color code resets every format, so put formats after the color: &c&l.

Minecraft formatting codes
FormatPreviewSectionAmpersandMiniMessageJSON key
Obfuscated
Bold
Strikethrough
Underline
Italic
Reset
—

Bedrock-only colors

These codes exist only on Bedrock Edition. Java Edition does not recognise them.

Bedrock Edition only color codes
ColorCodeNameHex
Minecoin Goldminecoin_gold
Material Quartzmaterial_quartz
Material Ironmaterial_iron
Material Netheritematerial_netherite
Material Redstonematerial_redstone
Material Coppermaterial_copper
Material Goldmaterial_gold
Material Emeraldmaterial_emerald
Material Diamondmaterial_diamond
Material Lapismaterial_lapis
Material Amethystmaterial_amethyst
Material Resinmaterial_resin
Party Blueparty_blue

Guide

Questions

How do I type the § symbol?

On Windows hold Alt and type 0167 on the number pad (or Alt+21). On macOS press Option+6. On Linux use your compose key, or copy it from this page. In most plugin configs you can simply write & instead.

Why do color codes not work in my server.properties MOTD?

server.properties needs the section sign written as a Unicode escape, \u00A7, because the file is read as Latin-1 by many server versions. The MOTD Editor exports it in that form automatically.

Can I use color codes in signs, books and item names?

In vanilla survival you cannot type § in signs or anvils. Use commands with text components (/give with a custom_name component, /tellraw), or a plugin that translates & codes.

What does &k (obfuscated) do?

It replaces every character with a random character of the same width many times per second, producing the “magic” scrambling effect. It is often used around titles like &k!!&r Text &k!!.

Why are &m and &n colors on Bedrock?

Bedrock Edition reused the m and n codes for its material colors (redstone and copper), so strikethrough and underline are not available there. On Java they remain strikethrough and underline.