Nearest named color: Cobalt Blue
#2840B8
#2840B8
Nearest named
Cobalt Blue
Family
Blue
Lightness
43.7%
Chroma
0.190
Hue angle
268.2°
Temperature
Cool
Contrast on white
8.35:1 · AAA
Contrast on black
2.23:1 · Fail
Web-safe
#3333CC
CSS oklch()
44% 0.19 268

#2840B8 is a mid-toned, cool violet. On the Color Lab it reads clean and engineered, bold and ownable. It carries a legible label as a UI accent and sits well as a supporting tone.

Palettes built on #2840B8

Not just a swatch — here's how #2840B8 works with other colors. Named schemes with #2840B8 in its natural role, and a note on why the supporting colors balance it.

Tech Product Signal · 5 colors

Cobalt Blue is the vivid signal in this product UI — on a near-black surface with cool white, a slate grey and a lighter tint of Cobalt Blue.

Coastal Morning Lead · 5 colors

Cobalt Blue opens this coastal palette with sea-glass and warm sand alongside it, grounded by driftwood grey and a deep-navy anchor.

Berry & Cream Lead · 5 colors

Cobalt Blue sits between cream and a deep berry here, softened by a blush accent and grounded by charcoal.

Minimal Editorial Surface · 5 colors

Cobalt Blue is the single accent in this high-contrast editorial system — set on near-white paper against near-black ink, with a warm grey and a desaturated tint of Cobalt Blue carrying the quiet middle.

Sunset Warmth Glow · 5 colors

Cobalt Blue glows at the center of this sunset palette, joined by coral and gold, deepened by a plum anchor and cooled with cream.

Build a working theme in the generator →

Color Lab

How #2840B8 actually behaves in design work — read from its OKLCH lightness, chroma and hue, not just its raw numbers. Ten signals to help you decide where this color earns its place.

Warmth 11/100
Cool
Reads cool and recessive — calming, technical, good for trust-led UI.
Softness 29/100
Low
Firm and assertive — carries weight and contrast.
Depth 60/100
Moderate
Mid depth — usable as an accent or a muted ground.
Naturalness 0/100
Very low
Reads engineered rather than organic — synthetic, digital.
Vintage feel 24/100
Low
Clean and current — no dusty, aged cast.
Luxury 57/100
Moderate
Restrained and premium — deep, quiet, high-end packaging and fashion.
Brand distinctiveness 73/100
High
Bold and ownable — memorable as a primary brand color.
UI accent fit 78/100
High
Strong interactive accent — visible and can carry a legible label.
Surface fit 12/100
Very low
Too saturated or mid-toned for big areas — keep it to accents.
Print safety 67/100
High
Prints close, with a slight loss of vibrancy.

Pairs with #2840B8

For UI
For branding
For interior
For fashion
People also use #2840B8 with

UI roles & guardrails

Primary action Safe as a filled button with white label. AAA
Body text Passes on white at 16px and above. Pass
Large display Fine for headings 24px+ on white. Pass
Background Pair with white text at 8.3:1. Use
Subtle surface Use #D5DAF0 for cards and hover fills. Tint 80
Avoid beside #4028B8 — the hue gap is too small to read as intentional. Clash

In real applications

Not a swatch to memorise — a color to build with. Here is #2840B8 at work across the surfaces designers actually ship.

Website / UI
Northwind Sign up
Build faster.
A working theme, generated in seconds.
Dashboard
Revenue
$48.2k ▲ 12%
Brand
AVELINE
Studio
Poster
Nov 14 · 8PM
NIGHT
MARKET
Packaging
BLOOM
Botanical Wash
250 ml
Interior

Scales

ShadesBase darkened in 10% steps
TintsBase lifted toward white
TonesSaturation removed, lightness held
Monochromatic scaleDesign-system ready, 50–900

Every model

Export

:root {
  --color-base: #2840B8;
  --color-base-rgb: 40 64 184;
  --color-base-oklch: oklch(43.7% 0.190 268.2);
  --color-50: #F2F4FD;
  --color-100: #DDE1F8;
  --color-200: #BCC5F0;
  --color-300: #8E9CE1;
  --color-400: #6476CE;
  --color-500: #4255B3;
  --color-600: #394689;
  --color-700: #2E3661;
  --color-800: #212640;
  --color-900: #161927;
  --color-on-base: #FFFFFF;
}