Skip to content

#072d49

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

RGB
7, 45, 73
HSL
206°, 83%, 16%
CMYK
90, 38, 0, 71
Luminance
0.0240

At a glance

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

Hex
#072d49
Hue
206°
blue
Saturation
83%
electric
Lightness
16%
deep
Brightness
29%
HSV value
Perceived
17%
weighted brightness
Luminance
0.0240
WCAG relative
Temperature
Cool
98/100 cool
Color family
Blue
Tone
Electric
Best ink
White
14.18:1
Closest name
Midnight Blue
ΔE2000 11.4
Where it sits
Hue206° of 360°
Saturation83%
Lightness16%
Temperature
Warm ← → Cool98% 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#072d49
RGBrgb(7, 45, 73)
HSLhsl(206, 83%, 16%)
CMYKcmyk(90%, 38%, 0%, 71%)
LABlab(17.5 -1.2 -21.0)
LCHlch(17.5 21.1 266.8)
OKLCHoklch(0.287 0.066 245.7)
Decimal470345
Display P3color(display-p3 0.027 0.176 0.286)

Copy-ready code

/* CSS */
color: #072d49;
background-color: #072d49;
/* Tailwind (arbitrary) */
class="text-[#072d49] bg-[#072d49]"
/* SCSS */
$brand: #072d49;
/* SwiftUI */
Color(red: 0.027, green: 0.176, blue: 0.286)
/* Android */
Color.parseColor("#072d49")
/* Flutter */
Color(0xFF072D49)
/* Python / OpenCV (BGR) */
(73, 45, 7)

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 #072d49 · 14.18:1
Use #ffffffAAA at every size.
Aa
White text · 14.18:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.48:1
AA fail · AA large fail · AAA fail
Reading the other direction: #072d49 as text scores 14.18:1 on white and 1.48:1 on black.

Accessibility — WCAG contrast

Aa
#072d49 on white: 14.18:1
AA ✓ pass · AA-large · AAA
Aa
#072d49 on black: 1.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #202E4A
deuteranopia · #162848
tritanopia · #003437

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #072d49 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.

#F2F8FC
#E6F1FA
#C6E1F6
#99CEF5
#65B5F0
#329DEB
#158ADF
#1273BA
#0E5C95
#0F446C
#072d49
Base = 950Lightest = 50 · #F2F8FCDarkest = 950 · #072d49
:root {
  --brand-50: #F2F8FC;
  --brand-100: #E6F1FA;
  --brand-200: #C6E1F6;
  --brand-300: #99CEF5;
  --brand-400: #65B5F0;
  --brand-500: #329DEB;
  --brand-600: #158ADF;
  --brand-700: #1273BA;
  --brand-800: #0E5C95;
  --brand-900: #0F446C;
  --brand-950: #072d49;
  --brand: #072d49;
  --brand-ink: #ffffff;
}

Colors that work with #072d49

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#F4F8FA
Tinted page background
Border#C0DAED
Hairlines and dividers
Muted text#4B799B
Captions on the surface
Accent#4B1205
Second voice, not a rival
Dark variant#0B4874
Hover, pressed, headers
Light variant#E8F4FD
Selected rows, tints
Dark surface#141D24
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 #072d49

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#492307
Analogous left#074944
Analogous right#070C49
Split-complement 1#49070C
Split-complement 2#494407
Triadic 1#49072D
Triadic 2#2D4907
Tetradic#440749

RGB percentages

Red2.7%
Green17.6%
Blue28.6%

CMYK percentages

Cyan90.4%
Magenta38.4%
Yellow0.0%
Key (black)71.4%

Color previews

#072d49 text on a black background

contrast 1.48:1

Card sample

#072d49 text on a white background

contrast 14.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(7, 45, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(7, 45, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #072d49;
background: linear-gradient(135deg, #072d49, #0D0749);

Monochromatic scale

Palettes built from #072d49

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.

#072d49 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.

#072d49, answered

What color is #072d49?

#072d49 is a deep electric blue, closest to Midnight Blue (ΔE2000 11.4). It sits at 206° on the hue wheel with 83% saturation and 16% lightness, which reads as cool.

What is the RGB value of #072d49?

rgb(7, 45, 73) — 7 red, 45 green and 73 blue out of 255, or 2.7% / 17.6% / 28.6% by channel.

Is #072d49 a light or a dark color?

It is a dark color. Relative luminance is 0.0240 and perceived brightness is 17%, so white text on it reaches 14.18:1.

Should I use black or white text on #072d49?

White. It scores 14.18:1 against #072d49, versus 1.48:1 for black — AAA at any size.

What is the complementary color of #072d49?

#492307 sits directly opposite on the wheel. Softer options are the split-complements #49070C and #494407, which give the same contrast with far less vibration.

What colors go well with #072d49?

For interface work: #F4F8FA as the surface, #C0DAED for borders, #4B799B for secondary text, #4B1205 as an accent and #0B4874 for hover and pressed states. For a palette, the analogous pair #074944 and #070C49 stays calm, while #492307 is the loudest partner.

What is #072d49 in CMYK for printing?

cmyk(90%, 38%, 0%, 71%). 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 #072d49 warm or cool?

Cool — it scores 98 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #074549; nudged cooler, #041B32.

Work with #072d49 in the Color Lab