Export

Code

/* Cosmic Blue — colorset.net */
:root {
  --color-1: #E8EAF6;
  --color-2: #C5CAE9;
  --color-3: #9FA8DA;
  --color-4: #7986CB;
  --color-5: #5C6BC0;

  --color-bg: #E8EAF6;
  --color-surface: #F0F2F9;
  --color-border: #CFD1E1;
  --color-text: #3D477D;
  --color-muted: #636982;
  --color-primary: #5C6BC0;
  --color-on-primary: #FFFFFF;
  --color-accent: #838590;
  --color-on-accent: #000000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0B0E1F;
    --color-surface: #14182A;
    --color-border: #272C42;
    --color-text: #E8EAF6;
    --color-muted: #82848F;
    --color-primary: #5C6BC0;
    --color-on-primary: #FFFFFF;
    --color-accent: #C5CAE9;
    --color-on-accent: #0B0E1F;
  }
}

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
Backgroundfrom palette · color 1adjusted for contrast · from #5C6BC0
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #5C6BC0from palette · color 1
Muted textderivedderived
Primaryfrom palette · color 5from palette · color 5
On primaryderivedderived
Accentadjusted for contrast · from #7986CBfrom palette · color 2
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background7.32:1AAA pass 4.5:1
Text on surface7.84:1AAA pass 4.5:1
Muted text on background4.53:1AA pass 4.5:1
Label on primary4.86:1AA pass 4.5:1
Label on accent5.72:1AA pass 4.5:1
Primary on background4.06:1AA Large pass 3:1
Accent on background3.06:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background15.98:1AAA pass 4.5:1
Text on surface14.68:1AAA pass 4.5:1
Muted text on background5.15:1AA pass 4.5:1
Label on primary4.86:1AA pass 4.5:1
Label on accent11.85:1AAA pass 4.5:1
Primary on background3.94:1AA Large pass 3:1
Accent on background11.85:1AAA 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#E8EAF6 (Text 1)#C5CAE9 (Text 2)#9FA8DA (Text 3)#7986CB (Text 4)#5C6BC0 (Text 5)
#E8EAF6Same color1.35—1.93—2.88—4.06AA Large
#C5CAE91.35—Same color1.43—2.14—3.01AA Large
#9FA8DA1.93—1.43—Same color1.49—2.10—
#7986CB2.88—2.14—1.49—Same color1.41—
#5C6BC04.06AA Large3.01AA Large2.10—1.41—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#E8EAF6#C5CAE9#9FA8DA#7986CB#5C6BC0

Variations

About Cosmic Blue

Five colors make up Cosmic Blue, a cool blue set: #E8EAF6, #C5CAE9, #9FA8DA, #7986CB, #5C6BC0. All hues sit within 4° of each other, so light purple #C5CAE9 and its relatives form a cohesive monochromatic scheme. With lightness between 56% and 94% and #9FA8DA near the middle, there is enough spread for layered surfaces but not maximum text contrast. Average chroma is 0.074, low for a palette, so the colors feel soft and muted; the most saturated color is #5C6BC0. In light mode #E8EAF6 becomes the background with #3D477D text at 7.3:1, and #5C6BC0 takes the primary role. Try it for SaaS dashboards, fintech and banking apps and stationery, letting blue #5C6BC0 carry the key actions.

Cosmic Blue color palette: #E8EAF6, #C5CAE9, #9FA8DA, #7986CB, #5C6BC0
Share image for Cosmic Blue

Gradients in similar colors