Skip to content

#072acb

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

RGB
7, 42, 203
HSL
229°, 93%, 41%
CMYK
97, 79, 0, 20
Luminance
0.0601

At a glance

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

Hex
#072acb
Hue
229°
blue
Saturation
93%
electric
Lightness
41%
dark
Brightness
80%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0601
WCAG relative
Temperature
Cool
89/100 cool
Color family
Blue
Tone
Electric
Best ink
White
9.53:1
Closest name
Medium Blue
ΔE2000 5.2
Where it sits
Hue229° of 360°
Saturation93%
Lightness41%
Temperature
Warm ← → Cool89% 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#072acb
RGBrgb(7, 42, 203)
HSLhsl(229, 93%, 41%)
CMYKcmyk(97%, 79%, 0%, 20%)
LABlab(29.4 52.8 -82.9)
LCHlch(29.4 98.3 302.5)
OKLCHoklch(0.414 0.241 264.7)
Decimal469707
Display P3color(display-p3 0.027 0.165 0.796)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#072acb on white: 9.53:1
AA ✓ pass · AA-large · AAA
Aa
#072acb on black: 2.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004FCF
deuteranopia · #003CC8
tritanopia · #005D7B

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #072acb 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
#E4E8FB
#C2CCF9
#93A5FB
#5C78F9
#264BF7
#0831ED
#072acb
#05219E
#091B72
#051147
Base = 700Lightest = 50 · #F2F4FDDarkest = 950 · #051147
:root {
  --brand-50: #F2F4FD;
  --brand-100: #E4E8FB;
  --brand-200: #C2CCF9;
  --brand-300: #93A5FB;
  --brand-400: #5C78F9;
  --brand-500: #264BF7;
  --brand-600: #0831ED;
  --brand-700: #072acb;
  --brand-800: #05219E;
  --brand-900: #091B72;
  --brand-950: #051147;
  --brand: #072acb;
  --brand-ink: #ffffff;
}

Colors that work with #072acb

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#F4F5FA
Tinted page background
Border#C0C8ED
Hairlines and dividers
Muted text#4B599B
Captions on the surface
Accent#CF7803
Second voice, not a rival
Dark variant#04197B
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 #072acb

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#CBA807
Analogous left#078CCB
Analogous right#4607CB
Split-complement 1#CB4607
Split-complement 2#8CCB07
Triadic 1#CB072A
Triadic 2#2ACB07
Tetradic#CB078C

RGB percentages

Red2.7%
Green16.5%
Blue79.6%

CMYK percentages

Cyan96.6%
Magenta79.3%
Yellow0.0%
Key (black)20.4%

Color previews

#072acb text on a black background

contrast 2.20:1

Card sample

#072acb text on a white background

contrast 9.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(7, 42, 203, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(7, 42, 203, 0.45);
Border & gradient
Gradient panel
border: 3px solid #072acb;
background: linear-gradient(135deg, #072acb, #6707CB);

Monochromatic scale

Palettes built from #072acb

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.

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

#072acb, answered

What color is #072acb?

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

What is the RGB value of #072acb?

rgb(7, 42, 203) — 7 red, 42 green and 203 blue out of 255, or 2.7% / 16.5% / 79.6% by channel.

Is #072acb a light or a dark color?

It is a dark color. Relative luminance is 0.0601 and perceived brightness is 30%, so white text on it reaches 9.53:1.

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

White. It scores 9.53:1 against #072acb, versus 2.20:1 for black — AAA at any size.

What is the complementary color of #072acb?

#CBA807 sits directly opposite on the wheel. Softer options are the split-complements #CB4607 and #8CCB07, which give the same contrast with far less vibration.

What colors go well with #072acb?

For interface work: #F4F5FA as the surface, #C0C8ED for borders, #4B599B for secondary text, #CF7803 as an accent and #04197B for hover and pressed states. For a palette, the analogous pair #078CCB and #4607CB stays calm, while #CBA807 is the loudest partner.

What is #072acb in CMYK for printing?

cmyk(97%, 79%, 0%, 20%). 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 #072acb warm or cool?

Cool — it scores 89 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2C07CB; nudged cooler, #0546CD.

Work with #072acb in the Color Lab