Export

Code

/* Lattice Blue — colorset.net */
:root {
  --color-1: #EDF1F5;
  --color-2: #1F4FA3;
  --color-3: #F2B705;
  --color-4: #D73C2C;
  --color-5: #161A21;

  --color-bg: #EDF1F5;
  --color-surface: #F6F8FB;
  --color-border: #D2D9DF;
  --color-text: #161A21;
  --color-muted: #666B74;
  --color-primary: #D73C2C;
  --color-on-primary: #FFFFFF;
  --color-accent: #1F4FA3;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #161A21;
    --color-surface: #20252C;
    --color-border: #343A44;
    --color-text: #EDF1F5;
    --color-muted: #8B8E92;
    --color-primary: #D73C2C;
    --color-on-primary: #FFFFFF;
    --color-accent: #3B6DC4;
    --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
Backgroundfrom palette · color 1from palette · color 5
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 5from palette · color 1
Muted textderivedderived
Primaryfrom palette · color 4from palette · color 4
On primaryderivedderived
Accentfrom palette · color 2adjusted for contrast · from #1F4FA3
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background15.37:1AAA pass 4.5:1
Text on surface16.40:1AAA pass 4.5:1
Muted text on background4.72:1AA pass 4.5:1
Label on primary4.59:1AA pass 4.5:1
Label on accent7.76:1AAA pass 4.5:1
Primary on background4.05:1AA Large pass 3:1
Accent on background6.84:1AA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background15.37:1AAA pass 4.5:1
Text on surface13.58:1AAA pass 4.5:1
Muted text on background5.30:1AA pass 4.5:1
Label on primary4.59:1AA pass 4.5:1
Label on accent5.04:1AA pass 4.5:1
Primary on background3.80:1AA Large pass 3:1
Accent on background3.46: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#EDF1F5 (Text 1)#1F4FA3 (Text 2)#F2B705 (Text 3)#D73C2C (Text 4)#161A21 (Text 5)
#EDF1F5Same color6.84AA1.60—4.05AA Large15.37AAA
#1F4FA36.84AASame color4.27AA Large1.69—2.25—
#F2B7051.60—4.27AA LargeSame color2.53—9.60AAA
#D73C2C4.05AA Large1.69—2.53—Same color3.80AA Large
#161A2115.37AAA2.25—9.60AAA3.80AA LargeSame color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#EDF1F5#1F4FA3#F2B705#D73C2C#161A21

Variations

About Lattice Blue

A blue-led lattice with yellow and red cells on cool white. Lattice Blue is a warm multi-color palette of 5 colors that runs from white #EDF1F5 to charcoal #161A21. A 176° hue spread puts dark blue against light yellow #F2B705, close to a complementary contrast. Lightness runs from 22% to 96% (OKLCH), with #D73C2C in between, a wide range that leaves room for readable text and clear backgrounds. Saturation is medium (mean OKLCH chroma 0.106, peaking at 0.194 in #D73C2C); the colors are clear without being loud. Text contrast reaches 15.4:1 in light mode and 15.4:1 in dark mode, with #D73C2C as primary and #1F4FA3 as accent. With #D73C2C leading, good fits include marketing pages, signage and presentation slides.

Lattice Blue color palette: #EDF1F5, #1F4FA3, #F2B705, #D73C2C, #161A21
Share image for Lattice Blue

Gradients in similar colors