Export

Code

/* Cobalt Serif — colorset.net */
:root {
  --color-1: #F1EDE4;
  --color-2: #1D3FD1;
  --color-3: #F25C3B;
  --color-4: #C9C3B6;
  --color-5: #16171D;

  --color-bg: #F1EDE4;
  --color-surface: #F7F4EF;
  --color-border: #DAD4C8;
  --color-text: #16171D;
  --color-muted: #66686F;
  --color-primary: #1D3FD1;
  --color-on-primary: #FFFFFF;
  --color-accent: #D5411E;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #16171D;
    --color-surface: #202128;
    --color-border: #353640;
    --color-text: #F1EDE4;
    --color-muted: #8E8A82;
    --color-primary: #325EF1;
    --color-on-primary: #FFFFFF;
    --color-accent: #F25C3B;
    --color-on-accent: #16171D;
  }
}

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 1from palette · color 5
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 5from palette · color 1
Muted textderivedderived
Primaryfrom palette · color 2adjusted for contrast · from #1D3FD1
On primaryderivedderived
Accentadjusted for contrast · from #F25C3Bfrom palette · color 3
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background15.30:1AAA pass 4.5:1
Text on surface16.30:1AAA pass 4.5:1
Muted text on background4.76:1AA pass 4.5:1
Label on primary7.82:1AAA pass 4.5:1
Label on accent4.56:1AA pass 4.5:1
Primary on background6.70:1AA pass 3:1
Accent on background3.90:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background15.30:1AAA pass 4.5:1
Text on surface13.72:1AAA pass 4.5:1
Muted text on background5.20:1AA pass 4.5:1
Label on primary5.24:1AA pass 4.5:1
Label on accent5.42:1AA pass 4.5:1
Primary on background3.41:1AA Large pass 3:1
Accent on background5.42:1AA 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#F1EDE4 (Text 1)#1D3FD1 (Text 2)#F25C3B (Text 3)#C9C3B6 (Text 4)#16171D (Text 5)
#F1EDE4Same color6.70AA2.82—1.50—15.30AAA
#1D3FD16.70AASame color2.37—4.46AA Large2.29—
#F25C3B2.82—2.37—Same color1.88—5.42AA
#C9C3B61.50—4.46AA Large1.88—Same color10.19AAA
#16171D15.30AAA2.29—5.42AA10.19AAASame color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#F1EDE4#1D3FD1#F25C3B#C9C3B6#16171D

Variations

About Cobalt Serif

Bold cobalt and a flash of orange on paper white, the look of a modern art book. Cobalt Serif is a balanced multi-color palette of 5 colors that runs from off-white #F1EDE4 to charcoal #16171D. The hues range across 128° of the wheel, pairing vivid blue #1D3FD1 with vivid red for lively contrast. Lightness runs from 21% to 95% (OKLCH), with #F25C3B in between, a wide range that leaves room for readable text and clear backgrounds. Saturation is medium (mean OKLCH chroma 0.092, peaking at 0.225 in #1D3FD1); the colors are clear without being loud. In light mode #F1EDE4 becomes the background with #16171D text at 15.3:1, and #1D3FD1 takes the primary role. Try it for brand systems with many sub-brands, marketing pages and illustration, letting vivid blue #1D3FD1 carry the key actions.

Cobalt Serif color palette: #F1EDE4, #1D3FD1, #F25C3B, #C9C3B6, #16171D
Share image for Cobalt Serif

Gradients in similar colors