Skip to content

#082f72

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

RGB
8, 47, 114
HSL
218°, 87%, 24%
CMYK
93, 59, 0, 55
Luminance
0.0330

At a glance

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

Hex
#082f72
Hue
218°
blue
Saturation
87%
electric
Lightness
24%
deep
Brightness
45%
HSV value
Perceived
21%
weighted brightness
Luminance
0.0330
WCAG relative
Temperature
Cool
96/100 cool
Color family
Blue
Tone
Electric
Best ink
White
12.65:1
Closest name
Midnight Blue
ΔE2000 8.1
Where it sits
Hue218° of 360°
Saturation87%
Lightness24%
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#082f72
RGBrgb(8, 47, 114)
HSLhsl(218, 87%, 24%)
CMYKcmyk(93%, 59%, 0%, 55%)
LABlab(21.2 15.7 -42.1)
LCHlch(21.2 45.0 290.5)
OKLCHoklch(0.326 0.123 260.8)
Decimal536434
Display P3color(display-p3 0.031 0.184 0.447)

Copy-ready code

/* CSS */
color: #082f72;
background-color: #082f72;
/* Tailwind (arbitrary) */
class="text-[#082f72] bg-[#082f72]"
/* SCSS */
$brand: #082f72;
/* SwiftUI */
Color(red: 0.031, green: 0.184, blue: 0.447)
/* Android */
Color.parseColor("#082f72")
/* Flutter */
Color(0xFF082F72)
/* Python / OpenCV (BGR) */
(114, 47, 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 #082f72 · 12.65:1
Use #ffffffAAA at every size.
Aa
White text · 12.65:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.66:1
AA fail · AA large fail · AAA fail
Reading the other direction: #082f72 as text scores 12.65:1 on white and 1.66:1 on black.

Accessibility — WCAG contrast

Aa
#082f72 on white: 12.65:1
AA ✓ pass · AA-large · AAA
Aa
#082f72 on black: 1.66:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003874
deuteranopia · #002E71
tritanopia · #00404B

Color scale — 50 to 950

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

#F2F6FD
#E5EDFA
#C4D7F7
#96BAF8
#6298F4
#2D75F0
#105EE5
#0D4FBF
#0B3F99
#082f72
#081E45
Base = 900Lightest = 50 · #F2F6FDDarkest = 950 · #081E45
:root {
  --brand-50: #F2F6FD;
  --brand-100: #E5EDFA;
  --brand-200: #C4D7F7;
  --brand-300: #96BAF8;
  --brand-400: #6298F4;
  --brand-500: #2D75F0;
  --brand-600: #105EE5;
  --brand-700: #0D4FBF;
  --brand-800: #0B3F99;
  --brand-900: #082f72;
  --brand-950: #081E45;
  --brand: #082f72;
  --brand-ink: #ffffff;
}

Colors that work with #082f72

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#F4F7FA
Tinted page background
Border#C0D0ED
Hairlines and dividers
Muted text#4B689B
Captions on the surface
Accent#743006
Second voice, not a rival
Dark variant#083177
Hover, pressed, headers
Light variant#E7EFFD
Selected rows, tints
Dark surface#141A24
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 #082f72

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#724B08
Analogous left#086472
Analogous right#160872
Split-complement 1#721608
Split-complement 2#647208
Triadic 1#72082F
Triadic 2#2F7208
Tetradic#720864

RGB percentages

Red3.1%
Green18.4%
Blue44.7%

CMYK percentages

Cyan93.0%
Magenta58.8%
Yellow0.0%
Key (black)55.3%

Color previews

#082f72 text on a black background

contrast 1.66:1

Card sample

#082f72 text on a white background

contrast 12.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(8, 47, 114, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 47, 114, 0.45);
Border & gradient
Gradient panel
border: 3px solid #082f72;
background: linear-gradient(135deg, #082f72, #280872);

Monochromatic scale

Palettes built from #082f72

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.

#082f72 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.

#082f72, answered

What color is #082f72?

#082f72 is a deep electric blue, closest to Midnight Blue (ΔE2000 8.1). It sits at 218° on the hue wheel with 87% saturation and 24% lightness, which reads as cool.

What is the RGB value of #082f72?

rgb(8, 47, 114) — 8 red, 47 green and 114 blue out of 255, or 3.1% / 18.4% / 44.7% by channel.

Is #082f72 a light or a dark color?

It is a dark color. Relative luminance is 0.0330 and perceived brightness is 21%, so white text on it reaches 12.65:1.

Should I use black or white text on #082f72?

White. It scores 12.65:1 against #082f72, versus 1.66:1 for black — AAA at any size.

What is the complementary color of #082f72?

#724B08 sits directly opposite on the wheel. Softer options are the split-complements #721608 and #647208, which give the same contrast with far less vibration.

What colors go well with #082f72?

For interface work: #F4F7FA as the surface, #C0D0ED for borders, #4B689B for secondary text, #743006 as an accent and #083177 for hover and pressed states. For a palette, the analogous pair #086472 and #160872 stays calm, while #724B08 is the loudest partner.

What is #082f72 in CMYK for printing?

cmyk(93%, 59%, 0%, 55%). 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 #082f72 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 #080872; nudged cooler, #052B5B.

Work with #082f72 in the Color Lab