cornflowerblue — #6495ED
#6495ED
rgb(100, 149, 237) · hsl(219, 79%, 66%) · CSS keyword cornflowerblue
Can you put text on it?
| Contrast | Body text | Large text | |
|---|---|---|---|
| cornflowerblue on white | 2.97:1 | — | — |
| cornflowerblue on black | 7.06:1 | AA | AA |
As a background, cornflowerblue takes black text: 7.06:1 against 2.97:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.
Using it
color: cornflowerblue;
color: #6495ed;
color: rgb(100 149 237);
All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.
Colours close to cornflowerblue
- cadetblue — #5F9EA0
- steelblue — #4682B4
- lightslategray — #778899
- slategray — #708090
- mediumslateblue — #7B68EE
- mediumpurple — #9370DB
Frequently asked questions
What is the hex code for cornflowerblue?
The hex code for cornflowerblue is #6495ED — RGB 100, 149, 237.
Can I use cornflowerblue for text?
Not on a white background. cornflowerblue reaches only 2.97:1, and WCAG AA asks for 4.5:1. It works as a background or a border, not as ink.
Should text on cornflowerblue be black or white?
Black — 7.06:1 against 2.97:1 the other way.
Other named colours
- cornsilk — #FFF8DC
- crimson — #DC143C
- cyan — #00FFFF
- darkblue — #00008B
- darkcyan — #008B8B
- darkgoldenrod — #B8860B
- darkgray — #A9A9A9
- darkgreen — #006400
- darkkhaki — #BDB76B
- darkmagenta — #8B008B
- darkolivegreen — #556B2F
- darkorange — #FF8C00
#6495ED in full — tints, shades and harmonies · All named colours · Colour reference