Skip to content

#082d7c

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

RGB
8, 45, 124
HSL
221°, 88%, 26%
CMYK
94, 64, 0, 51
Luminance
0.0338

At a glance

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

Hex
#082d7c
Hue
221°
blue
Saturation
88%
electric
Lightness
26%
dark
Brightness
49%
HSV value
Perceived
21%
weighted brightness
Luminance
0.0338
WCAG relative
Temperature
Cool
94/100 cool
Color family
Blue
Tone
Electric
Best ink
White
12.52:1
Closest name
Midnight Blue
ΔE2000 6.8
Where it sits
Hue221° 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#082d7c
RGBrgb(8, 45, 124)
HSLhsl(221, 88%, 26%)
CMYKcmyk(94%, 64%, 0%, 51%)
LABlab(21.5 21.5 -48.0)
LCHlch(21.5 52.6 294.1)
OKLCHoklch(0.331 0.140 262.6)
Decimal535932
Display P3color(display-p3 0.031 0.176 0.486)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#082d7c on white: 12.52:1
AA ✓ pass · AA-large · AAA
Aa
#082d7c on black: 1.68:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #00397F
deuteranopia · #002F7B
tritanopia · #004250

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #082d7c 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
#96B5F8
#6190F5
#2C6BF1
#0F53E6
#0C45C0
#0A3899
#082d7c
#071B45
Base = 900Lightest = 50 · #F2F5FDDarkest = 950 · #071B45
:root {
  --brand-50: #F2F5FD;
  --brand-100: #E5ECFA;
  --brand-200: #C4D4F8;
  --brand-300: #96B5F8;
  --brand-400: #6190F5;
  --brand-500: #2C6BF1;
  --brand-600: #0F53E6;
  --brand-700: #0C45C0;
  --brand-800: #0A3899;
  --brand-900: #082d7c;
  --brand-950: #071B45;
  --brand: #082d7c;
  --brand-ink: #ffffff;
}

Colors that work with #082d7c

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#4B649B
Captions on the surface
Accent#7F3A05
Second voice, not a rival
Dark variant#082B78
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 #082d7c

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#7C5708
Analogous left#08677C
Analogous right#1D087C
Split-complement 1#7C1D08
Split-complement 2#677C08
Triadic 1#7C082D
Triadic 2#2D7C08
Tetradic#7C0867

RGB percentages

Red3.1%
Green17.6%
Blue48.6%

CMYK percentages

Cyan93.5%
Magenta63.7%
Yellow0.0%
Key (black)51.4%

Color previews

#082d7c text on a black background

contrast 1.68:1

Card sample

#082d7c text on a white background

contrast 12.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(8, 45, 124, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 45, 124, 0.45);
Border & gradient
Gradient panel
border: 3px solid #082d7c;
background: linear-gradient(135deg, #082d7c, #30087C);

Monochromatic scale

Palettes built from #082d7c

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.

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

#082d7c, answered

What color is #082d7c?

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

What is the RGB value of #082d7c?

rgb(8, 45, 124) — 8 red, 45 green and 124 blue out of 255, or 3.1% / 17.6% / 48.6% by channel.

Is #082d7c a light or a dark color?

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

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

White. It scores 12.52:1 against #082d7c, versus 1.68:1 for black — AAA at any size.

What is the complementary color of #082d7c?

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

What colors go well with #082d7c?

For interface work: #F4F6FA as the surface, #C0CEED for borders, #4B649B for secondary text, #7F3A05 as an accent and #082B78 for hover and pressed states. For a palette, the analogous pair #08677C and #1D087C stays calm, while #7C5708 is the loudest partner.

What is #082d7c in CMYK for printing?

cmyk(94%, 64%, 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 #082d7c 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 #0E087C; nudged cooler, #052D65.

Work with #082d7c in the Color Lab