Skip to content

Cornflower blue

Cornflower blue is a light, rich color from the blue family. Hex code #6495ED.

Cornflower blue#6495ED

Color codes

  • CSS namecornflowerblue
  • HEX#6495ED
  • RGBrgb(100 149 237)
  • HSLhsl(219 79% 66%)
  • HSB / HSVhsb(219, 58%, 93%)
  • OKLCHoklch(67.5% 0.141 261.3)
  • CMYKcmyk(58%, 37%, 0%, 7%)

White text

2.97:1 · fails WCAG

Black text

7.06:1 · passes WCAG AAA

Shades

50#EBF2FE
100#BFD6FE
200#93B9FB
300#6A9BF4
400#507FD5
500#3764B8
600#1E4A9B
700#04307F
800#001A57

Complementary

#6495ED
#BE8D26

Analogous

#6495ED
#25A4D7
#9885E6

Triadic

#6495ED
#E06F70
#61AC56

About this color

Cornflower blue in CSS and design

Cornflower blue is a light, rich color from the blue family. Cornflower blue is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.

Use it in CSS by name or by any of its codes; these all give the same color:

color: cornflowerblue;
color: #6495ED;
color: rgb(100 149 237);
color: hsl(219 79% 66%);

For text on cornflower blue, black reads best. Check other combinations with the contrast checker, or browse all CSS color names.

Frequently asked questions

What is the hex code for cornflower blue?

#6495ED. In CSS you can also use the keyword cornflowerblue, which works in every browser.

What is cornflower blue in RGB and HSL?

In RGB it is rgb(100 149 237), in HSL hsl(219 79% 66%). For print, cmyk(58%, 37%, 0%, 7%) is a starting point, but CMYK depends on paper and ink, so check with your printer.

Should I use black or white text on cornflower blue?

Black text works better: it has a contrast ratio of 7.06:1 and passes WCAG AAA. White text reaches 2.97:1.

Which colors go with cornflower blue?

Its complementary color is #BE8D26, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #25A4D7 and #9885E6. The palette generator builds more combinations.