Skip to content

#072dbd

a dark, electric blue · cool · closest name: Medium Blue

RGB
7, 45, 189
HSL
228°, 93%, 38%
CMYK
96, 76, 0, 26
Luminance
0.0560

At a glance

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

Hex
#072dbd
Hue
228°
blue
Saturation
93%
electric
Lightness
38%
dark
Brightness
74%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0560
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Electric
Best ink
White
9.91:1
Closest name
Medium Blue
ΔE2000 6.1
Where it sits
Hue228° of 360°
Saturation93%
Lightness38%
Temperature
Warm ← → Cool90% 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#072dbd
RGBrgb(7, 45, 189)
HSLhsl(228, 93%, 38%)
CMYKcmyk(96%, 76%, 0%, 26%)
LABlab(28.4 46.4 -76.4)
LCHlch(28.4 89.4 301.3)
OKLCHoklch(0.402 0.223 264.5)
Decimal470461
Display P3color(display-p3 0.027 0.176 0.741)

Copy-ready code

/* CSS */
color: #072dbd;
background-color: #072dbd;
/* Tailwind (arbitrary) */
class="text-[#072dbd] bg-[#072dbd]"
/* SCSS */
$brand: #072dbd;
/* SwiftUI */
Color(red: 0.027, green: 0.176, blue: 0.741)
/* Android */
Color.parseColor("#072dbd")
/* Flutter */
Color(0xFF072DBD)
/* Python / OpenCV (BGR) */
(189, 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 #072dbd · 9.91:1
Use #ffffffAAA at every size.
Aa
White text · 9.91:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.12:1
AA fail · AA large fail · AAA fail
Reading the other direction: #072dbd as text scores 9.91:1 on white and 2.12:1 on black.

Accessibility — WCAG contrast

Aa
#072dbd on white: 9.91:1
AA ✓ pass · AA-large · AAA
Aa
#072dbd on black: 2.12:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004CC1
deuteranopia · #003ABB
tritanopia · #005973

Color scale — 50 to 950

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

#F2F4FD
#E4E9FB
#C2CEF9
#93A8FB
#5D7DF9
#2752F7
#0938EC
#072dbd
#06259D
#091F72
#061347
Base = 700Lightest = 50 · #F2F4FDDarkest = 950 · #061347
:root {
  --brand-50: #F2F4FD;
  --brand-100: #E4E9FB;
  --brand-200: #C2CEF9;
  --brand-300: #93A8FB;
  --brand-400: #5D7DF9;
  --brand-500: #2752F7;
  --brand-600: #0938EC;
  --brand-700: #072dbd;
  --brand-800: #06259D;
  --brand-900: #091F72;
  --brand-950: #061347;
  --brand: #072dbd;
  --brand-ink: #ffffff;
}

Colors that work with #072dbd

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#F4F6FA
Tinted page background
Border#C0C9ED
Hairlines and dividers
Muted text#4B5B9B
Captions on the surface
Accent#C16A03
Second voice, not a rival
Dark variant#051D7B
Hover, pressed, headers
Light variant#E6EBFE
Selected rows, tints
Dark surface#141724
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 #072dbd

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#BD9707
Analogous left#0788BD
Analogous right#3C07BD
Split-complement 1#BD3C07
Split-complement 2#88BD07
Triadic 1#BD072D
Triadic 2#2DBD07
Tetradic#BD0788

RGB percentages

Red2.7%
Green17.6%
Blue74.1%

CMYK percentages

Cyan96.3%
Magenta76.2%
Yellow0.0%
Key (black)25.9%

Color previews

#072dbd text on a black background

contrast 2.12:1

Card sample

#072dbd text on a white background

contrast 9.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #072dbd

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.

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

#072dbd, answered

What color is #072dbd?

#072dbd is a dark electric blue, closest to Medium Blue (ΔE2000 6.1). It sits at 228° on the hue wheel with 93% saturation and 38% lightness, which reads as cool.

What is the RGB value of #072dbd?

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

Is #072dbd a light or a dark color?

It is a dark color. Relative luminance is 0.0560 and perceived brightness is 28%, so white text on it reaches 9.91:1.

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

White. It scores 9.91:1 against #072dbd, versus 2.12:1 for black — AAA at any size.

What is the complementary color of #072dbd?

#BD9707 sits directly opposite on the wheel. Softer options are the split-complements #BD3C07 and #88BD07, which give the same contrast with far less vibration.

What colors go well with #072dbd?

For interface work: #F4F6FA as the surface, #C0C9ED for borders, #4B5B9B for secondary text, #C16A03 as an accent and #051D7B for hover and pressed states. For a palette, the analogous pair #0788BD and #3C07BD stays calm, while #BD9707 is the loudest partner.

What is #072dbd in CMYK for printing?

cmyk(96%, 76%, 0%, 26%). 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 #072dbd warm or cool?

Cool — it scores 90 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2407BD; nudged cooler, #0545BF.

Work with #072dbd in the Color Lab