Skip to content

#082c7d

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

RGB
8, 44, 125
HSL
222°, 88%, 26%
CMYK
94, 65, 0, 51
Luminance
0.0333

At a glance

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

Hex
#082c7d
Hue
222°
blue
Saturation
88%
electric
Lightness
26%
dark
Brightness
49%
HSV value
Perceived
21%
weighted brightness
Luminance
0.0333
WCAG relative
Temperature
Cool
94/100 cool
Color family
Blue
Tone
Electric
Best ink
White
12.60:1
Closest name
Midnight Blue
ΔE2000 6.4
Where it sits
Hue222° of 360°
Saturation88%
Lightness26%
Temperature
Warm ← → Cool94% 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#082c7d
RGBrgb(8, 44, 125)
HSLhsl(222, 88%, 26%)
CMYKcmyk(94%, 65%, 0%, 51%)
LABlab(21.3 22.6 -48.9)
LCHlch(21.3 53.9 294.8)
OKLCHoklch(0.330 0.143 263.0)
Decimal535677
Display P3color(display-p3 0.031 0.173 0.490)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#082c7d on white: 12.60:1
AA ✓ pass · AA-large · AAA
Aa
#082c7d on black: 1.67:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003980
deuteranopia · #002E7B
tritanopia · #004150

Color scale — 50 to 950

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

#F2F5FD
#E5ECFA
#C4D4F8
#96B4F8
#618EF5
#2C69F2
#0F51E6
#0C44C0
#0A3699
#082c7d
#071A45
Base = 900Lightest = 50 · #F2F5FDDarkest = 950 · #071A45
:root {
  --brand-50: #F2F5FD;
  --brand-100: #E5ECFA;
  --brand-200: #C4D4F8;
  --brand-300: #96B4F8;
  --brand-400: #618EF5;
  --brand-500: #2C69F2;
  --brand-600: #0F51E6;
  --brand-700: #0C44C0;
  --brand-800: #0A3699;
  --brand-900: #082c7d;
  --brand-950: #071A45;
  --brand: #082c7d;
  --brand-ink: #ffffff;
}

Colors that work with #082c7d

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#C0CEED
Hairlines and dividers
Muted text#4B639B
Captions on the surface
Accent#803B05
Second voice, not a rival
Dark variant#082A78
Hover, pressed, headers
Light variant#E7EEFD
Selected rows, tints
Dark surface#141924
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 #082c7d

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#7D5908
Analogous left#08677D
Analogous right#1E087D
Split-complement 1#7D1E08
Split-complement 2#677D08
Triadic 1#7D082C
Triadic 2#2C7D08
Tetradic#7D0867

RGB percentages

Red3.1%
Green17.3%
Blue49.0%

CMYK percentages

Cyan93.6%
Magenta64.8%
Yellow0.0%
Key (black)51.0%

Color previews

#082c7d text on a black background

contrast 1.67:1

Card sample

#082c7d text on a white background

contrast 12.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #082c7d

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.

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

#082c7d, answered

What color is #082c7d?

#082c7d is a dark electric blue, closest to Midnight Blue (ΔE2000 6.4). It sits at 222° on the hue wheel with 88% saturation and 26% lightness, which reads as cool.

What is the RGB value of #082c7d?

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

Is #082c7d a light or a dark color?

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

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

White. It scores 12.60:1 against #082c7d, versus 1.67:1 for black — AAA at any size.

What is the complementary color of #082c7d?

#7D5908 sits directly opposite on the wheel. Softer options are the split-complements #7D1E08 and #677D08, which give the same contrast with far less vibration.

What colors go well with #082c7d?

For interface work: #F4F6FA as the surface, #C0CEED for borders, #4B639B for secondary text, #803B05 as an accent and #082A78 for hover and pressed states. For a palette, the analogous pair #08677D and #1E087D stays calm, while #7D5908 is the loudest partner.

What is #082c7d in CMYK for printing?

cmyk(94%, 65%, 0%, 51%). 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 #082c7d warm or cool?

Cool — it scores 94 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #0F087D; nudged cooler, #07387E.

Work with #082c7d in the Color Lab