Cornflower Blue #6495ED

Cornflower Blue color (#6495ED)

Cornflower Blue is one of the 148 CSS named colors. Use the keyword cornflowerblue anywhere CSS accepts a color, or its hex code #6495ED, which is rgb(100, 149, 237) in RGB.

It is a medium, vivid cool color with a hue angle of 219° on the HSL color wheel and a perceived lightness of 68% in OKLCH. On a cornflower blue background, black text gives the higher contrast at 7.06:1, which passes WCAG AA for normal text.

Cornflower Blue color codes

CSS name cornflowerblue
HEX #6495ED
HEX (8-digit) #6495EDFF
RGB rgb(100, 149, 237)
HSL hsl(219, 79%, 66%)
HSV / HSB hsv(219, 58%, 93%)
OKLCH oklch(67.5% 0.1414 261.3)
CMYK cmyk(57.8%, 37.1%, 0%, 7.1%)

Contrast with white and black

WCAG 2 contrast ratios and APCA lightness contrast (Lc) for cornflower blue used as text and as a background.

Aa Sample text
Cornflower Blue text on white
2.97:1 WCAG Lc 56.1 APCA Fails AA
Aa Sample text
Cornflower Blue text on black
7.06:1 WCAG Lc -45.7 APCA Passes AA
Aa Sample text
White text on cornflower blue
2.97:1 WCAG Lc -61.5 APCA Fails AA
Aa Sample text
Black text on cornflower blue
7.06:1 WCAG Lc 47.9 APCA Passes AA

Tints and shades of cornflower blue

Tints mix cornflower blue with white; shades mix it with black, in 10% steps. Click a swatch to copy it, or build custom scales in the tint & shade generator.

Tints

Shades

Colors that go with cornflower blue

Harmonies calculated on the HSL color wheel. Explore more in the color scheme generator.

Complementary

Analogous

Triadic

Split-Complementary

Cornflower Blue with color blindness

Approximately how cornflower blue appears with each type of color vision deficiency. Test full designs with the color blindness simulator.

Using cornflower blue in CSS

.element {
  color: cornflowerblue;
  background-color: #6495ed;
  border-color: rgb(100 149 237 / 50%);
  outline-color: oklch(67.5% 0.1414 261.3);
}

Similar named colors

See all shades of blue or browse every CSS color name.

Related tools