Free Accessible CSS Gradient Generator

← All Colors
#6495ED Cornflower Blue

Cornflower Blue Hex Code #6495ED

Cornflower Blue is a light, strong blue with the hex code #6495ED. In RGB it is 100, 149, 237, and in HSL it is 219°, 79%, 66%. It is one of the 148 named colors in CSS, so you can write “cornflowerblue” instead of the hex code.

HEX
#6495ED
RGB
rgb(100, 149, 237)
HSL
hsl(219, 79%, 66%)
HSV
hsv(219°, 58%, 93%)
CMYK
cmyk(58%, 37%, 0%, 7%)
CSS name
cornflowerblue

CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.

About Cornflower Blue

On a white background Cornflower Blue has a contrast ratio of 2.97:1 (Fail), and on black 7.06:1 (AAA). Black text is the better choice on top of it.

It sits on the cool side of the color wheel, a range that tends to feel calm and appears to recede.

Blue is the most common color in interfaces. It signals trust and calm, which is why banks, software and healthcare brands favour it.

Shades and tints of Cornflower Blue

Tints mix Cornflower Blue with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.

Color harmonies for Cornflower Blue

These schemes are calculated from Cornflower Blue on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.

Analogous

Open in the color wheel

Triadic

Open in the color wheel

Tetradic

Open in the color wheel

Square

Open in the color wheel

On the artist’s RYB wheel, the complement of Cornflower Blue is #EDA464, close to the named color Sandy Brown.

Cornflower Blue contrast and accessibility

WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Cornflower Blue scores against white and black.

Contrast of Cornflower Blue with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 2.97:1 ✕ Fail ✕ Fail ✕ Fail ✕ Fail
Black (#000000) 7.06:1 ✓ Pass ✓ Pass ✓ Pass ✓ Pass
Aa White text on Cornflower Blue2.97:1
Aa Black text on Cornflower Blue7.06:1

Cornflower Blue and color blindness

These are approximate previews of how Cornflower Blue can look with the main types of color vision deficiency.

Protanopia #709DF1

Cornflower Blue looks almost the same.

Deuteranopia #5E90EB

Cornflower Blue looks almost the same.

Tritanopia #00A9B6

Cornflower Blue changes noticeably.

Achromatopsia #969696

Cornflower Blue changes noticeably.

Gradients with Cornflower Blue

Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.

Cornflower Blue to a lighter tint

background: linear-gradient(135deg, #6495ed 0%, #c1d5f8 100%);

Cornflower Blue to its analogous neighbour

background: linear-gradient(135deg, #6495ed 0%, #7864ed 100%);

Cornflower Blue to its complement

background: linear-gradient(135deg, #6495ed 0%, #edbc64 100%);

Colors similar to Cornflower Blue

How each close match differs from Cornflower Blue.

More blue colors →

Use Cornflower Blue in code

CSS
.element {
  color: #6495ed;
  background-color: #6495ed;
  border-color: cornflowerblue;   /* cornflowerblue is a valid CSS color name */
}
CSS variable
:root {
  --color-cornflower-blue: #6495ed;
}
Tailwind
<!-- Tailwind arbitrary values -->
<div class="bg-[#6495ed] text-[#6495ed] border-[#6495ed]"></div>

/* Tailwind v4 theme color */
@theme {
  --color-cornflower-blue: #6495ed;
}

Cornflower Blue questions

What is the hex code for Cornflower Blue?

The hex code for Cornflower Blue is #6495ED. In RGB that is rgb(100, 149, 237), and in HSL it is hsl(219, 79%, 66%).

What is the complementary color of Cornflower Blue?

On the RGB (screen) color wheel, the complement of Cornflower Blue is #EDBC64, which is close to Sandy Brown. On the artist’s RYB wheel it is #EDA464, close to Sandy Brown.

Should I use white or black text on Cornflower Blue?

Black text. It has a contrast ratio of 7.06:1 against Cornflower Blue, which is WCAG AAA. The other option scores 2.97:1.

Is Cornflower Blue accessible as a text color on white?

No. Cornflower Blue on white scores 2.97:1, which is below the WCAG minimum of 3:1 even for large text.

What are darker and lighter shades of Cornflower Blue?

Mixing Cornflower Blue with black gives #5077BE, #3C598E, #283C5F, #141E2F (20% to 80% black). Mixing it with white gives #83AAF1, #A2BFF4, #C1D5F8, #E0EAFB (20% to 80% white).

More color tools