Cobalt Cornflower

Export

Code

/* Cobalt Cornflower — colorset.net */
:root {
  --color-1: #003F87;
  --color-2: #0047AB;
  --color-3: #1E90FF;
  --color-4: #4169E1;
  --color-5: #6495ED;

  --color-bg: #F2F7FF;
  --color-surface: #E6EEFB;
  --color-border: #CCD5E6;
  --color-text: #204271;
  --color-muted: #5D6D83;
  --color-primary: #4169E1;
  --color-on-primary: #FFFFFF;
  --color-accent: #0047AB;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #06101E;
    --color-surface: #0F1A29;
    --color-border: #212E42;
    --color-text: #95A7C6;
    --color-muted: #76849C;
    --color-primary: #4169E1;
    --color-on-primary: #FFFFFF;
    --color-accent: #2D65B1;
    --color-on-accent: #FFFFFF;
  }
}

Color values

ColorHEXRGBHSLOKLCH
1
2
3
4
5

Roles & contrast

Original colors are kept; roles are adjusted only when needed for contrast.

RoleLight modeDark mode
Backgroundadjusted for contrast · from #6495EDadjusted for contrast · from #003F87
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #003F87adjusted for contrast · from #6495ED
Muted textderivedderived
Primaryfrom palette · color 4from palette · color 4
On primaryderivedderived
Accentfrom palette · color 2adjusted for contrast · from #4169E1
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background9.39:1AAA pass 4.5:1
Text on surface8.65:1AAA pass 4.5:1
Muted text on background4.90:1AA pass 4.5:1
Label on primary4.85:1AA pass 4.5:1
Label on accent8.44:1AAA pass 4.5:1
Primary on background4.51:1AA pass 3:1
Accent on background7.84:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.83:1AAA pass 4.5:1
Text on surface7.18:1AAA pass 4.5:1
Muted text on background5.04:1AA pass 4.5:1
Label on primary4.85:1AA pass 4.5:1
Label on accent5.82:1AA pass 4.5:1
Primary on background3.94:1AA Large pass 3:1
Accent on background3.28:1AA Large pass 3:1

Every color on every color

Rows are backgrounds and columns are text colors, using the actual palette colors. Ratios: AAA 7:1, AA 4.5:1, AA large text 3:1.

Every color on every color
Background / Text#003F87 (Text 1)#0047AB (Text 2)#1E90FF (Text 3)#4169E1 (Text 4)#6495ED (Text 5)
#003F87Same color1.21—3.15AA Large2.10—3.43AA Large
#0047AB1.21—Same color2.61—1.74—2.84—
#1E90FF3.15AA Large2.61—Same color1.50—1.09—
#4169E12.10—1.74—1.50—Same color1.63—
#6495ED3.43AA Large2.84—1.09—1.63—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#003F87#0047AB#1E90FF#4169E1#6495ED

Variations

About Cobalt Cornflower

Cobalt Cornflower is a cool blue palette of 5 colors that runs from blue #6495ED to dark blue #003F87. With a hue spread of just 13°, it is effectively monochromatic: #003F87, #0047AB and #1E90FF differ mostly in lightness. All five colors stay in a narrow mid-tone band (38% to 67% lightness, #003F87 to #6495ED), so text and background roles are adjusted for contrast. Saturation is high (mean OKLCH chroma 0.165, peaking at 0.190 in #1E90FF); the colors feel saturated and energetic. Text contrast reaches 9.4:1 in light mode and 7.8:1 in dark mode, with #4169E1 as primary and #0047AB as accent. Its vivid and monochrome character, led by #4169E1, suits focused single-product sites, festival branding and bold landing pages.

Cobalt Cornflower color palette: #003F87, #0047AB, #1E90FF, #4169E1, #6495ED
Share image for Cobalt Cornflower

Gradients in similar colors