Skip to content

#072c3f

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

RGB
7, 44, 63
HSL
200°, 80%, 14%
CMYK
89, 30, 0, 75
Luminance
0.0221

At a glance

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

Hex
#072c3f
Hue
200°
blue
Saturation
80%
electric
Lightness
14%
deep
Brightness
25%
HSV value
Perceived
16%
weighted brightness
Luminance
0.0221
WCAG relative
Temperature
Cool
96/100 cool
Color family
Blue
Tone
Electric
Best ink
White
14.57:1
Closest name
Midnight Blue
ΔE2000 11.4
Where it sits
Hue200° of 360°
Saturation80%
Lightness14%
Temperature
Warm ← → Cool96% 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#072c3f
RGBrgb(7, 44, 63)
HSLhsl(200, 80%, 14%)
CMYKcmyk(89%, 30%, 0%, 75%)
LABlab(16.5 -4.9 -15.7)
LCHlch(16.5 16.4 252.7)
OKLCHoklch(0.278 0.053 236.1)
Decimal470079
Display P3color(display-p3 0.027 0.173 0.247)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#072c3f on white: 14.57:1
AA ✓ pass · AA-large · AAA
Aa
#072c3f on black: 1.44:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #232C40
deuteranopia · #1B273F
tritanopia · #003133

Color scale — 50 to 950

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

#F3F9FC
#E6F3F9
#C7E5F5
#9AD5F4
#68C0EE
#35ACE9
#189ADC
#1480B8
#106693
#104C6A
#072c3f
Base = 950Lightest = 50 · #F3F9FCDarkest = 950 · #072c3f
:root {
  --brand-50: #F3F9FC;
  --brand-100: #E6F3F9;
  --brand-200: #C7E5F5;
  --brand-300: #9AD5F4;
  --brand-400: #68C0EE;
  --brand-500: #35ACE9;
  --brand-600: #189ADC;
  --brand-700: #1480B8;
  --brand-800: #106693;
  --brand-900: #104C6A;
  --brand-950: #072c3f;
  --brand: #072c3f;
  --brand-ink: #ffffff;
}

Colors that work with #072c3f

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#C0DDED
Hairlines and dividers
Muted text#4B809B
Captions on the surface
Accent#400B06
Second voice, not a rival
Dark variant#0D5073
Hover, pressed, headers
Light variant#E8F6FC
Selected rows, tints
Dark surface#141F24
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 #072c3f

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#3F1A07
Analogous left#073F36
Analogous right#07103F
Split-complement 1#3F0710
Split-complement 2#3F3607
Triadic 1#3F072C
Triadic 2#2C3F07
Tetradic#36073F

RGB percentages

Red2.7%
Green17.3%
Blue24.7%

CMYK percentages

Cyan88.9%
Magenta30.2%
Yellow0.0%
Key (black)75.3%

Color previews

#072c3f text on a black background

contrast 1.44:1

Card sample

#072c3f text on a white background

contrast 14.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(7, 44, 63, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(7, 44, 63, 0.45);
Border & gradient
Gradient panel
border: 3px solid #072c3f;
background: linear-gradient(135deg, #072c3f, #07073F);

Monochromatic scale

Palettes built from #072c3f

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.

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

#072c3f, answered

What color is #072c3f?

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

What is the RGB value of #072c3f?

rgb(7, 44, 63) — 7 red, 44 green and 63 blue out of 255, or 2.7% / 17.3% / 24.7% by channel.

Is #072c3f a light or a dark color?

It is a dark color. Relative luminance is 0.0221 and perceived brightness is 16%, so white text on it reaches 14.57:1.

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

White. It scores 14.57:1 against #072c3f, versus 1.44:1 for black — AAA at any size.

What is the complementary color of #072c3f?

#3F1A07 sits directly opposite on the wheel. Softer options are the split-complements #3F0710 and #3F3607, which give the same contrast with far less vibration.

What colors go well with #072c3f?

For interface work: #F4F8FA as the surface, #C0DDED for borders, #4B809B for secondary text, #400B06 as an accent and #0D5073 for hover and pressed states. For a palette, the analogous pair #073F36 and #07103F stays calm, while #3F1A07 is the loudest partner.

What is #072c3f in CMYK for printing?

cmyk(89%, 30%, 0%, 75%). 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 #072c3f warm or cool?

Cool — it scores 96 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #073F3D; nudged cooler, #062440.

Work with #072c3f in the Color Lab