Cornflower Blue
Hex #6495ED, rgb(100 149 237). A blue CSS named color.
Open in palette generatorCornflower Blue color codes
Click any value to copy it.
- HEX
- RGB
- HSL
- HSV
- HWB
- CMYK
- OKLCH
- OKLab
- Lab
- LCH
- CSS keyword
About Cornflower Blue
Cornflower Blue is a medium saturated blue with the hex code #6495ED. In RGB it is made of 100 red, 149 green and 237 blue; in HSL its hue is 219°, with 79% saturation and 66% lightness. Its perceptual lightness (OKLCH L) is 67.5%.
It is a CSS named color, so you can write "cornflowerblue" anywhere CSS accepts a color. Against white it has a contrast ratio of 2.97:1 and against black 7.06:1, so black text reads better on it and passes WCAG AA for normal text.
Tints, shades and tones
Cornflower Blue mixed step by step with white, black and middle gray (#808080).
Tints (with white)
Shades (with black)
Tones (with gray)
Cornflower Blue 50-950 scale
A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.
Colors that go with Cornflower Blue
Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.
Complementary
Split complementary
Contrast and readability
WCAG 2 contrast of Cornflower Blue with white and black. The readable text color on Cornflower Blue is black.
On white2.97:1
- AA fail
- AA Large fail
- AAA fail
- UI 3:1 fail
APCA Lc 56
On black7.06:1
- AA pass
- AA Large pass
- AAA pass
- UI 3:1 pass
APCA Lc -46
Test any pair in the contrast checker.
Color blindness preview
How Cornflower Blue appears with each type of color vision deficiency (simulated with the Machado model).
- Protanopia#709DF1
- Deuteranopia#5E90EB
- Tritanopia#00A9B6
- Protanomaly#6C9AEF
- Deuteranomaly#6192EC
- Tritanomaly#4F9DD6
- Achromatopsia#969696
Colors similar to Cornflower Blue
The closest named colors by perceptual difference (OKLab).
Use Cornflower Blue in CSS and Tailwind
.cornflower-blue {
color: cornflowerblue; /* #6495ED */
background-color: rgb(100 149 237);
border-color: oklch(67.5% 0.141 261.3);
}/* Tailwind CSS v4: bg-cornflower-blue-500, text-cornflower-blue-700... */
@theme {
--color-cornflower-blue-50: #F7FAFF;
--color-cornflower-blue-100: #E3EDFF;
--color-cornflower-blue-200: #C7DAFB;
--color-cornflower-blue-300: #9CBDF8;
--color-cornflower-blue-400: #6495ED;
--color-cornflower-blue-500: #457DE3;
--color-cornflower-blue-600: #3569CB;
--color-cornflower-blue-700: #2854A6;
--color-cornflower-blue-800: #214485;
--color-cornflower-blue-900: #1B376B;
--color-cornflower-blue-950: #041434;
}
<!-- or the exact color, no config -->
<div class="bg-[#6495ED] text-[#000000]">…</div>