Cornflower Blue Color Code: Hex #6495ED
The hex code for Cornflower Blue is #6495ED (the CSS keyword cornflowerblue). Cornflower Blue RGB code: rgb(100, 149, 237). The xkcd color survey gives #5170D7 instead, which looks clearly different; both codes are below with their source.
#6495EDTop: the code browsers use#5170D7Below: compare edge to edgeCornflower Blue color codes: each Cornflower Blue hex code in every format
Sources
Properties
- Hex codes
- 3 different ones in 3 color lists; they look clearly different
- Family
- blue
- Contrast
- 2.97:1 with white, 7.06:1 with black
- CSS keyword
- cornflowerblue
- Character
- mid-tone, moderately saturated
- Readable text on it
- black (AA)
It is named after the cornflower, Centaurea cyanus, a plant that grows wild in European grain fields; the word itself is corn plus flower. A blue colorant was once made from cornflower petals and used in some 18th-century watercolors, but it fades in light.
A mid-tone, moderately saturated blue with a cool cast. In code, cornflowerblue gives exactly this web value. If you mean the color as people usually picture the name, the survey value #5170D7 is closer: it is darker and more vivid.
Black text reads best on it; white text does not pass WCAG AA. Its exact opposite on the color wheel cannot be shown on screens, so the complementary palette uses the closest displayable version. Even pale tints keep its hue, which makes it easy to use for soft backgrounds. Next to Dodger Blue, its closest named neighbour, it looks lighter, more muted and warmer; beside Steel Blue it looks lighter, more vivid and cooler.
Colors that go with Cornflower Blue
Complementary: the opposite of Cornflower Blue
#6495EDBlack text 7.06:1#C28C00Black text 7.05:1#A9C5F8Black text 12.03:1#775500White text 6.81:1
Analogous
#00A4DBBlack text 7.33:1#6495EDBlack text 7.06:1#9885E6Black text 6.83:1#C0D5FABlack text 14.14:1
Triadic
#6495EDBlack text 7.06:1#E06F70Black text 6.68:1#61AC56Black text 7.54:1#D7E5FCBlack text 16.50:1
Monochrome
#162642White text 15.11:1#3B5A93White text 6.84:1#6495EDBlack text 7.06:1#92B6F4Black text 10.22:1#C0D5FABlack text 14.14:1
With neutrals
#6495EDBlack text 7.06:1#D7E5FCBlack text 16.50:1#070F1EWhite text 19.16:1#7988A1Black text 5.85:1
Preview
Heading on Cornflower Blue
Body text on this color, 7.06:1.
ButtonHeading in Cornflower Blue
Text in this color on white, 2.97:1.
ButtonTints and shades
#D7E5FC#C0D5FA#A9C5F8#92B6F4#7BA5F1#6495ED#4F77BF#3B5A93#283F69#162642#070F1E
WhiteCornflower BlueBlack
Similar named colors
Where the name comes from
- Source: Wiktionary, “cornflower” (checked 1 Nov 2026)
- Source: MFA Boston CAMEO, “Cornflower blue” (checked 1 Nov 2026)
- Listed in CSS Color 4, xkcd color survey, meodai color-name-list. About these lists.
Try it: