CSS color names · Blues

Cornflower Blue color: hex #6495ed, RGB and HSL

Cornflower Blue is the CSS keyword cornflowerblue, hex #6495ed, rgb(100, 149, 237), hsl(219, 79%, 66%). It is a medium, vivid blue in the blues family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.

CSS name
cornflowerblue
Hex
#6495ed
RGB
rgb(100, 149, 237)
HSL
hsl(219, 79%, 66%)
On white
2.97:1 — fails AA; use as a fill, not text
On black
7.06:1 — passes AA for body text
.example {
  color: cornflowerblue;          /* keyword */
  color: #6495ed;          /* hex */
  color: rgb(100, 149, 237); /* rgb */
  color: hsl(219, 79%, 66%); /* hsl */
}

What colors go with cornflower blue

Each match keeps cornflower blue's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside cornflower blue as the primary; the harmony guides explain which rule suits which interface.

Complementary

The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.

#edbc64

Split-complementary

The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.

#ed7864
#d9ed64

Triadic

Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.

#ed6495
#95ed64

Analogous

The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.

#64d9ed
#7864ed

Tints and shades of cornflower blue

Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as cornflower blue — these are the hover, pressed, disabled and surface variants a single brand color needs.

Tints (lighter)

#7ea7f0
#98b8f3
#b1caf6
#cbdcf9
#e5edfc

Shades (darker)

#3273e7
#1757c9
#124197
#0c2c65
#061632

A UI color palette built from cornflower blue

The eight semantic roles an interface actually uses, derived from cornflower blue as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.

Light mode
primary
#6495ed
secondary
#ed7864
accent
#daed64
background
#fcfcfd
surface
#f3f4f7
text
#111722
muted
#566b8f
border
#dfe4ec
Dark mode
primary
#6495ed
secondary
#ed7864
accent
#daed64
background
#0e131b
surface
#151c28
text
#f3f4f6
muted
#94a1b8
border
#273349

Using cornflower blue in an interface

Blue is the default interface color for a reason: it sits comfortably behind content, it has a wide usable lightness range for hover and pressed states, and its complement (orange) leaves red and green free for status. Most of the good primaries in this set are here. Whichever role cornflower blue takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.

What is the hex code for Cornflower Blue?
Cornflower Blue is #6495ed. In CSS the keyword cornflowerblue, the hex #6495ed, rgb(100, 149, 237) and hsl(219, 79%, 66%) all paint the same color.
What colors go with Cornflower Blue?
Its complement is #edbc64, the split-complementary pair is #ed7864 and #d9ed64, the triadic partners are #ed6495 and #95ed64, and the analogous neighbors are #64d9ed and #7864ed. In an interface, use Cornflower Blue for most colored elements and one of these for a single accent, at roughly an 80/20 split.
What is the opposite of Cornflower Blue on the color wheel?
The opposite (complementary) color is #edbc64, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
Can I use Cornflower Blue for text?
Cornflower Blue as text on white has a contrast ratio of 2.97:1, which fails WCAG AA for body text (4.5:1) and for large text (3:1). On black it is 7.06:1, which passes for body text. Use it as text on dark surfaces, or as a fill with dark text on top.

Similar named colors

More blues

We'd like to use Google cookies to understand how Nodlume is used and to measure our advertising. Nothing loads until you choose, and declining does not affect anything in the app.