Skip to content

#082c4f

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

RGB
8, 44, 79
HSL
210°, 82%, 17%
CMYK
90, 44, 0, 69
Luminance
0.0242

At a glance

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

Hex
#082c4f
Hue
210°
blue
Saturation
82%
electric
Lightness
17%
deep
Brightness
31%
HSV value
Perceived
17%
weighted brightness
Luminance
0.0242
WCAG relative
Temperature
Cool
100/100 cool
Color family
Blue
Tone
Electric
Best ink
White
14.16:1
Closest name
Midnight Blue
ΔE2000 11
Where it sits
Hue210° of 360°
Saturation82%
Lightness17%
Temperature
Warm ← → Cool100% 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#082c4f
RGBrgb(8, 44, 79)
HSLhsl(210, 82%, 17%)
CMYKcmyk(90%, 44%, 0%, 69%)
LABlab(17.5 2.4 -25.0)
LCHlch(17.5 25.1 275.4)
OKLCHoklch(0.289 0.075 251.8)
Decimal535631
Display P3color(display-p3 0.031 0.173 0.310)

Copy-ready code

/* CSS */
color: #082c4f;
background-color: #082c4f;
/* Tailwind (arbitrary) */
class="text-[#082c4f] bg-[#082c4f]"
/* SCSS */
$brand: #082c4f;
/* SwiftUI */
Color(red: 0.031, green: 0.173, blue: 0.310)
/* Android */
Color.parseColor("#082c4f")
/* Flutter */
Color(0xFF082C4F)
/* Python / OpenCV (BGR) */
(79, 44, 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 #082c4f · 14.16:1
Use #ffffffAAA at every size.
Aa
White text · 14.16: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: #082c4f as text scores 14.16:1 on white and 1.48:1 on black.

Accessibility — WCAG contrast

Aa
#082c4f on white: 14.16:1
AA ✓ pass · AA-large · AAA
Aa
#082c4f on black: 1.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1B2E50
deuteranopia · #0F284E
tritanopia · #003439

Color scale — 50 to 950

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

#F2F7FC
#E6F0F9
#C6DEF6
#99C8F5
#66ACF0
#3390EA
#177CDE
#1367B9
#0F5294
#0F3E6B
#082c4f
Base = 950Lightest = 50 · #F2F7FCDarkest = 950 · #082c4f
:root {
  --brand-50: #F2F7FC;
  --brand-100: #E6F0F9;
  --brand-200: #C6DEF6;
  --brand-300: #99C8F5;
  --brand-400: #66ACF0;
  --brand-500: #3390EA;
  --brand-600: #177CDE;
  --brand-700: #1367B9;
  --brand-800: #0F5294;
  --brand-900: #0F3E6B;
  --brand-950: #082c4f;
  --brand: #082c4f;
  --brand-ink: #ffffff;
}

Colors that work with #082c4f

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#C0D6ED
Hairlines and dividers
Muted text#4B739B
Captions on the surface
Accent#511806
Second voice, not a rival
Dark variant#0C4074
Hover, pressed, headers
Light variant#E8F2FD
Selected rows, tints
Dark surface#141C24
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 #082c4f

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#4F2B08
Analogous left#084F4F
Analogous right#08084F
Split-complement 1#4F0808
Split-complement 2#4F4F08
Triadic 1#4F082C
Triadic 2#2C4F08
Tetradic#4F084F

RGB percentages

Red3.1%
Green17.3%
Blue31.0%

CMYK percentages

Cyan89.9%
Magenta44.3%
Yellow0.0%
Key (black)69.0%

Color previews

#082c4f text on a black background

contrast 1.48:1

Card sample

#082c4f text on a white background

contrast 14.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(8, 44, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 44, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #082c4f;
background: linear-gradient(135deg, #082c4f, #13084F);

Monochromatic scale

Palettes built from #082c4f

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.

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

#082c4f, answered

What color is #082c4f?

#082c4f is a deep electric blue, closest to Midnight Blue (ΔE2000 11). It sits at 210° on the hue wheel with 82% saturation and 17% lightness, which reads as cool.

What is the RGB value of #082c4f?

rgb(8, 44, 79) — 8 red, 44 green and 79 blue out of 255, or 3.1% / 17.3% / 31% by channel.

Is #082c4f a light or a dark color?

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

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

White. It scores 14.16:1 against #082c4f, versus 1.48:1 for black — AAA at any size.

What is the complementary color of #082c4f?

#4F2B08 sits directly opposite on the wheel. Softer options are the split-complements #4F0808 and #4F4F08, which give the same contrast with far less vibration.

What colors go well with #082c4f?

For interface work: #F4F7FA as the surface, #C0D6ED for borders, #4B739B for secondary text, #511806 as an accent and #0C4074 for hover and pressed states. For a palette, the analogous pair #084F4F and #08084F stays calm, while #4F2B08 is the loudest partner.

What is #082c4f in CMYK for printing?

cmyk(90%, 44%, 0%, 69%). 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 #082c4f warm or cool?

Cool — it scores 100 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #08124F; nudged cooler, #051E39.

Work with #082c4f in the Color Lab