Nearest named color: Jet Black
#040228
#040228
Nearest named
Jet Black
Family
Black
Lightness
13.9%
Chroma
0.078
Hue angle
273.8°
Temperature
Cool
Contrast on white
20.11:1 · AAA
Contrast on black
1.08:1 · Fail
Web-safe
#000033
CSS oklch()
14% 0.08 274

#040228 is a deep, cool violet. On the Color Lab it reads clean and engineered, quietly premium. It is too dark to lead as a primary accent and reproduces cleanly in print.

Palettes built on #040228

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

Coastal Morning Lead · 5 colors

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

Nordic Calm Accent · 5 colors

Jet Black keeps this Nordic scheme quiet — cool greys and a soft white around it, a muted-blue support and a charcoal anchor.

Tech Product Signal · 5 colors

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

Vintage Leather Lead · 5 colors

Jet Black plays the worn-leather lead, deepened by saddle brown and an oxblood anchor, softened by aged cream and cooled by a muted forest green.

Minimal Editorial Surface · 5 colors

Jet Black 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 Jet Black carrying the quiet middle.

Build a working theme in the generator →

Color Lab

How #040228 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 33/100
Cool
Reads cool and recessive — calming, technical, good for trust-led UI.
Softness 14/100
Very low
Firm and assertive — carries weight and contrast.
Depth 84/100
Very high
Deep and grounding — anchors a layout, strong dark-mode base.
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 85/100
Very high
Restrained and premium — deep, quiet, high-end packaging and fashion.
Brand distinctiveness 30/100
Low
Recognisable but shares space with nearby hues.
UI accent fit 6/100
Very low
Weak as an action color — too pale, too dark or too muted to signal.
Surface fit 52/100
Moderate
Usable as a tinted surface in measured doses.
Print safety 87/100
Very high
Reproduces faithfully in CMYK — safe for packaging and print.

Pairs with #040228

For UI
For branding
For interior
For fashion
People also use #040228 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 20.1:1. Use
Subtle surface Use #B5B2EE for cards and hover fills. Tint 80
Avoid beside #100227 — 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 #040228 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: #040228;
  --color-base-rgb: 4 2 40;
  --color-base-oklch: oklch(13.9% 0.078 273.8);
  --color-50: #F1F0FE;
  --color-100: #DAD8FD;
  --color-200: #B5B2FB;
  --color-300: #837EF2;
  --color-400: #564FE3;
  --color-500: #332BCA;
  --color-600: #2E2999;
  --color-700: #27236C;
  --color-800: #1D1B46;
  --color-900: #14122B;
  --color-on-base: #FFFFFF;
}