Skip to content

#080428

a deep, electric blue · cool · closest name: Midnight Blue

RGB
8, 4, 40
HSL
247°, 82%, 9%
CMYK
80, 90, 0, 84
Luminance
0.0029

At a glance

Every number on this page in one read: what #080428 is made of, how bright it looks, and which way it leans.

Hex
#080428
Hue
247°
blue
Saturation
82%
electric
Lightness
9%
deep
Brightness
16%
HSV value
Perceived
6%
weighted brightness
Luminance
0.0029
WCAG relative
Temperature
Cool
80/100 cool
Color family
Blue
Tone
Electric
Best ink
White
19.84:1
Closest name
Midnight Blue
ΔE2000 14.2
Where it sits
Hue247° of 360°
Saturation82%
Lightness9%
Temperature
Warm ← → Cool80% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#080428
RGBrgb(8, 4, 40)
HSLhsl(247, 82%, 9%)
CMYKcmyk(80%, 90%, 0%, 84%)
LABlab(2.6 10.2 -20.9)
LCHlch(2.6 23.3 296.0)
OKLCHoklch(0.150 0.072 280.0)
Decimal525352
Display P3color(display-p3 0.031 0.016 0.157)

Copy-ready code

/* CSS */
color: #080428;
background-color: #080428;
/* Tailwind (arbitrary) */
class="text-[#080428] bg-[#080428]"
/* SCSS */
$brand: #080428;
/* SwiftUI */
Color(red: 0.031, green: 0.016, blue: 0.157)
/* Android */
Color.parseColor("#080428")
/* Flutter */
Color(0xFF080428)
/* Python / OpenCV (BGR) */
(40, 4, 8)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #080428 · 19.84:1
Use #ffffffAAA at every size.
Aa
White text · 19.84:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.06:1
AA fail · AA large fail · AAA fail
Reading the other direction: #080428 as text scores 19.84:1 on white and 1.06:1 on black.

Accessibility — WCAG contrast

Aa
#080428 on white: 19.84:1
AA ✓ pass · AA-large · AAA
Aa
#080428 on black: 1.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #000B29
deuteranopia · #000827
tritanopia · #000D15

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #080428 is pinned to step 950; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F4F2FC
#E8E6F9
#CBC6F6
#A399F5
#7566F0
#4833EB
#2D16DF
#2513B9
#1E0F94
#190F6B
#080428
Base = 950Lightest = 50 · #F4F2FCDarkest = 950 · #080428
:root {
  --brand-50: #F4F2FC;
  --brand-100: #E8E6F9;
  --brand-200: #CBC6F6;
  --brand-300: #A399F5;
  --brand-400: #7566F0;
  --brand-500: #4833EB;
  --brand-600: #2D16DF;
  --brand-700: #2513B9;
  --brand-800: #1E0F94;
  --brand-900: #190F6B;
  --brand-950: #080428;
  --brand: #080428;
  --brand-ink: #ffffff;
}

Colors that work with #080428

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F5F4FA
Tinted page background
Border#C5C0ED
Hairlines and dividers
Muted text#544B9B
Captions on the surface
Accent#292403
Second voice, not a rival
Dark variant#170C74
Hover, pressed, headers
Light variant#EAE8FD
Selected rows, tints
Dark surface#161424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #080428

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#242804
Analogous left#041228
Analogous right#1A0428
Split-complement 1#281A04
Split-complement 2#122804
Triadic 1#280804
Triadic 2#042808
Tetradic#280412

RGB percentages

Red3.1%
Green1.6%
Blue15.7%

CMYK percentages

Cyan80.0%
Magenta90.0%
Yellow0.0%
Key (black)84.3%

Color previews

#080428 text on a black background

contrast 1.06:1

Card sample

#080428 text on a white background

contrast 19.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #080428;
Background color
Panel with #080428 background
background-color: #080428;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #080428;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(8, 4, 40, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 4, 40, 0.45);
Border & gradient
Gradient panel
border: 3px solid #080428;
background: linear-gradient(135deg, #080428, #200428);

Monochromatic scale

Palettes built from #080428

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#080428 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#080428, answered

What color is #080428?

#080428 is a deep electric blue, closest to Midnight Blue (ΔE2000 14.2). It sits at 247° on the hue wheel with 82% saturation and 9% lightness, which reads as cool.

What is the RGB value of #080428?

rgb(8, 4, 40) — 8 red, 4 green and 40 blue out of 255, or 3.1% / 1.6% / 15.7% by channel.

Is #080428 a light or a dark color?

It is a dark color. Relative luminance is 0.0029 and perceived brightness is 6%, so white text on it reaches 19.84:1.

Should I use black or white text on #080428?

White. It scores 19.84:1 against #080428, versus 1.06:1 for black — AAA at any size.

What is the complementary color of #080428?

#242804 sits directly opposite on the wheel. Softer options are the split-complements #281A04 and #122804, which give the same contrast with far less vibration.

What colors go well with #080428?

For interface work: #F5F4FA as the surface, #C5C0ED for borders, #544B9B for secondary text, #292403 as an accent and #170C74 for hover and pressed states. For a palette, the analogous pair #041228 and #1A0428 stays calm, while #242804 is the loudest partner.

What is #080428 in CMYK for printing?

cmyk(80%, 90%, 0%, 84%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #080428 warm or cool?

Cool — it scores 80 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #150428; nudged cooler, #040D28.

Work with #080428 in the Color Lab