Cornflower blue color (#6495ED)
#6495ED (Cornflower blue) is a blue colour. It is rgb(100, 149, 237) in RGB and hsl(219, 79%, 66%) in HSL. Text in black reads better on it: the contrast is 7.06:1 against black and 2.97:1 against white.
How to work it out
- 1
A hex code is three pairs of base-16 digits: red, green and blue, from 00 (none) to FF (full).
\mathrm{#6495ED}:\quad R=\mathrm{64}_{16}=100,\ G=\mathrm{95}_{16}=149,\ B=\mathrm{ED}_{16}=237 - 2
HSL describes the same colour as a hue angle on the colour wheel (0° red, 120° green, 240° blue), a saturation and a lightness.
- 3
The complementary colour sits opposite on the wheel: add 180° to the hue.
219^\circ + 180^\circ = 39^\circ ;\Rightarrow; \mathrm{#EDBC64} - 4
Contrast is the ratio of the lighter to the darker relative luminance, each plus 0.05. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (AA).
LaTeX source of the formulas on this page
\[ \mathrm{#6495ED} = \mathrm{rgb}(100, 149, 237) \]
\[ \mathrm{#6495ED}:\quad R=\mathrm{64}_{16}=100,\ G=\mathrm{95}_{16}=149,\ B=\mathrm{ED}_{16}=237 \]
\[ H=219^\circ,\quad S=79\%,\quad L=66\% \]
\[ 219^\circ + 180^\circ = 39^\circ ;\Rightarrow; \mathrm{#EDBC64} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 2.97:1\ \text{(on white)} \]Cornflower blue in every colour format
| Format | Value |
|---|---|
| HEX | #6495ED |
| RGB | rgb(100, 149, 237) |
| RGB (percent) | rgb(39.2%, 58.4%, 92.9%) |
| HSL | hsl(219, 79%, 66%) |
| HSV / HSB | hsv(219, 58%, 93%) |
| CMYK | cmyk(58%, 37%, 0%, 7%) |
| Decimal | 6591981 |
| Description | blue |
| CSS name | cornflowerblue |
Text contrast (WCAG)
| Background of this colour with… | Contrast | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White text | 2.97:1 | fail | fail | fail | fail |
| Black text | 7.06:1 | pass | pass | pass | pass |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #111927 #21324F #324B77 #43639E #537CC6 |
| This colour | #6495ED |
| Tints (mixed with white) | #7EA7F0 #98B8F3 #B2CAF6 #CBDCF9 #E5EDFC |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #709DF1 | 4 |
| Deuteranopia | #5E90EB | 3 |
| Tritanopia | #00A9B6 | 52 |
| Grayscale | #969696 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Dodger blue | #1E90FF |
| Steel blue | #4682B4 |
| Royal blue | #4169E1 |
| Medium purple | #9370DB |
Questions
What is the RGB value of #6495ED?
rgb(100, 149, 237): red 100, green 149, blue 237.
What is the HSL value of #6495ED?
hsl(219, 79%, 66%): a hue of 219°, 79% saturation and 66% lightness.
What is the complementary colour of #6495ED?
#EDBC64, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #9B6A12.
Should I use white or black text on #6495ED?
Black. White gives 2.97:1 and black 7.06:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #6495ED?
cmyk(58%, 37%, 0%, 7%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #6495ED a named colour?
Yes: it is the CSS colour name "cornflowerblue".