GameParticles
Colors

Shades of Blue: 40 Blue Color Names With HEX Codes

A reference list of shades of blue with names and HEX codes, from sky and baby blue to royal, cobalt, navy and teal, plus tips for pairing and contrast.

Updated

Shades of blue range from near-white alice blue and powder blue through sky, cornflower and royal blue to deep navy and midnight blue, with teal and turquoise where blue leans toward green. Pure screen blue is #0000FF, and navy is the same hue at half brightness, #000080. The tables below list 40 blue color names with their HEX codes.

CSS named blues

These names are defined by the CSS specification and can be typed directly into a stylesheet.

NameHEXCharacter
aliceblue#F0F8FFNear-white with a blue tint
lightblue#ADD8E6Soft pastel blue
powderblue#B0E0E6Pastel blue, slightly greener
lightsteelblue#B0C4DEPale grey-blue
skyblue#87CEEBDaytime sky
lightskyblue#87CEFASky blue with more saturation
deepskyblue#00BFFFVivid light blue
cornflowerblue#6495EDSoft mid blue
dodgerblue#1E90FFBright, saturated blue
steelblue#4682B4Greyed mid blue
royalblue#4169E1Strong mid blue
slateblue#6A5ACDBlue leaning toward purple
blue#0000FFPure screen blue
mediumblue#0000CDSlightly darker pure blue
darkblue#00008BDark pure blue
navy#000080Blue at half brightness
midnightblue#191970Softer, inkier navy

Teal, turquoise and other blue-greens

Add green to blue and you move around the wheel toward cyan. These CSS names sit in that zone.

NameHEXCharacter
cyan or aqua#00FFFFEqual green and blue at full strength
aquamarine#7FFFD4Pale green-leaning cyan
turquoise#40E0D0Bright blue-green
mediumturquoise#48D1CCSlightly deeper turquoise
darkturquoise#00CED1Vivid, close to cyan
lightseagreen#20B2AAMid-tone teal
cadetblue#5F9EA0Greyed blue-green
darkcyan#008B8BDark cyan
teal#008080Cyan at half brightness

teal and navy are built the same way. navy is blue at half strength, hsl(240, 100%, 25%), and teal is cyan at half strength, hsl(180, 100%, 25%).

Popular blue names outside CSS

These names come from pigments, gemstones, universities and fashion. None has a single official code, so treat the values below as the ones most commonly quoted. The third column gives the nearest CSS named color.

NameHEXClosest CSS name
Baby blue#89CFF0skyblue
Periwinkle#CCCCFFlavender
Electric blue#7DF9FFaquamarine
Carolina blue#4B9CD3cornflowerblue
Azure#007FFFdodgerblue
Cerulean#007BA7darkcyan
Denim#1560BDroyalblue
Sapphire#0F52BAroyalblue
Cobalt blue#0047ABteal
International Klein Blue#002FA7darkblue
Ultramarine#120A8Fdarkblue
Prussian blue#003153midnightblue
Oxford blue#002147midnightblue

One trap: the CSS keyword azure is not the vivid blue in this table. In CSS, azure is #F0FFFF, an almost-white tint. If you want the saturated azure that sits between blue and cyan, use #007FFF or the nearby dodgerblue.

Baby blue is a near-exact match for skyblue, but cobalt has nothing close among the 148 CSS names. The Color Name Finder labels each result from Exact Match down to Far Off, so you can see how much a name really tells you about a code.

Navy, royal and sky: how they differ

The three most searched blues differ mostly in lightness, with a small shift in hue.

  • Sky blue, #87CEEB, is hsl(197, 71%, 73%). High lightness and a hue pulled toward cyan make it airy and soft.
  • Royal blue, #4169E1, is hsl(225, 73%, 57%). Mid lightness and strong saturation make it the most vivid of the three.
  • Navy, #000080, is hsl(240, 100%, 25%). Low lightness makes it read almost as a neutral, which is why it replaces black in many palettes.

You can get these values for any blue by pasting its HEX code into the Color Converter, which shows the RGB and HSL forms side by side. For background on the notations, read HEX, RGB and HSL color codes explained.

What colors go with blue

  • Complementary: on the screen color wheel the opposite of pure blue is yellow, and the opposite of a lighter azure-type blue is orange. For dodgerblue the exact complement is the orange #FF8F1F. Painters use the same pairing: blue and orange are opposites on the red, yellow and blue wheel.
  • Analogous: blue sits between cyan and violet. Around dodgerblue the neighbors are #1FDAFF and #1F44FF, which gives a cool, cohesive scheme.
  • Neutrals: white, light grey and sand all suit blue. Navy with white and one warm accent such as coral or mustard is a dependable formula.
  • Greens: teal and forest green sit next to blue on the wheel and blend easily. See shades of green.

The Color Palette Generator produces all four harmony types from any blue HEX code, plus a tint and shade scale you can export as CSS variables.

Using blue for text, links and buttons

Dark blues are among the safest colors for text. White on navy has a contrast ratio of 16.01 to 1 and white on pure blue reaches 8.59 to 1, both well above the WCAG AA minimum of 4.5 to 1. White on royalblue passes at 4.85 to 1.

Lighter blues fail quickly. White on dodgerblue is 3.24 to 1 and white on cornflowerblue is 2.97 to 1, so those need dark text or should be limited to large headings and decoration. Sky blue with white text sits at 1.74 to 1 and is unreadable for many people.

Blue is also the conventional link color on the web, so a blue that is too close to your body text color makes links hard to spot. The WCAG color contrast guide explains the thresholds for text and interface elements.

Try it

Paste any code from the tables into the Color Name Finder to see its closest CSS name with RGB and HSL values, or search the named color list for "blue" to compare every CSS blue at once. The companion lists are shades of green and shades of red.

Tools in this guide

Frequently asked questions

What is the HEX code for navy blue?

The CSS color navy is #000080, which is pure blue at half brightness: rgb(0, 0, 128) or hsl(240, 100%, 25%). Midnight blue (#191970) is a close relative with a little red and green mixed in, which makes it slightly softer.

What is the HEX code for sky blue?

The CSS color skyblue is #87CEEB, or hsl(197, 71%, 73%). Related light blues are lightskyblue (#87CEFA), which is a little more saturated, deepskyblue (#00BFFF), which is far more vivid, and baby blue, usually quoted as #89CFF0.

Is teal a shade of blue or green?

Teal is exactly between the two. Its code #008080 has equal green and blue channels and no red, which makes it a dark cyan at hue 180 degrees. Whether people call it blue or green depends on the colors around it.

What is the difference between royal blue and navy blue?

Royal blue is brighter and lighter. The CSS royalblue is #4169E1 with a lightness of 57 percent, while navy is #000080 with a lightness of 25 percent. Royal blue reads as vivid and energetic; navy reads as dark, formal and close to black.

More colors guides

JSON Formatter
Developer · Format, validate and minify JSON with syntax highlighting.
↵
Base64 Encode / Decode
Developer · Encode text to Base64 or decode Base64 back to plain text.
↵
URL Encoder / Decoder
Developer · Encode or decode URL components and query strings.
↵
Hash Generator
Developer · Generate MD5, SHA-1, SHA-256 and SHA-512 hashes.
↵
UUID Generator
Developer · Generate UUIDs v4 (random) in bulk with one click.
↵
Regex Tester
Developer · Test regular expressions against text with live match highlighting.
↵
Word Counter
Text · Count words, characters, sentences, paragraphs and reading time.
↵
Case Converter
Text · Convert text between UPPER, lower, Title, camelCase, snake_case and more.
↵
List Sorter
Text · Sort, reverse, deduplicate and shuffle lists of text.
↵
Markdown Preview
Text · Write Markdown and see a live rendered preview side by side.
↵
Percentage Calculator
Numbers · Calculate percentages, increases, decreases and what % one number is of another.
↵
Color Converter
Colors · Convert colors between HEX, RGB, HSL and HSV instantly.
↵
Snake
Arcade · Eat food, grow longer, don't hit the walls. A timeless classic.
↵
2048
Puzzle · Slide tiles and combine them to reach the legendary 2048 tile.
↵
Word Grid
Puzzle · Guess the hidden five letter word in six tries using color clues.
↵
Sudoku
Puzzle · Fill the 9x9 grid with logic. Four difficulties from easy to expert.
↵
Minesweeper
Strategy · Use number clues to clear the minefield. Classic logic, three levels.
↵
Breakout
Arcade · Smash every brick with paddle and ball. Power-ups, combos, endless levels.
↵
Typing Practice
Casual · Build your WPM and accuracy with timed drills from 30 seconds to 5 minutes. Find your weak keys.
↵
TypeRunner
Arcade · Multiplayer typing race. Race friends by link, beat computer runners, or chase your own ghost.
↵
Typing Blocks
Arcade · Type each word before its wooden block lands. Miss, and the pile climbs toward the line.
↵
Bubble Shooter
Arcade · Aim, bank shots off the walls, and pop groups of three or more bubbles.
↵
Road Rush
Arcade · Race seven rivals through traffic and punch your way to the front.
↵