Skip to content

#082f89

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

RGB
8, 47, 137
HSL
222°, 89%, 28%
CMYK
94, 66, 0, 46
Luminance
0.0389

At a glance

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

Hex
#082f89
Hue
222°
blue
Saturation
89%
electric
Lightness
28%
dark
Brightness
54%
HSV value
Perceived
23%
weighted brightness
Luminance
0.0389
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Electric
Best ink
White
11.81:1
Closest name
Midnight Blue
ΔE2000 7.3
Where it sits
Hue222° of 360°
Saturation89%
Lightness28%
Temperature
Warm ← → Cool93% 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#082f89
RGBrgb(8, 47, 137)
HSLhsl(222, 89%, 28%)
CMYKcmyk(94%, 66%, 0%, 46%)
LABlab(23.3 25.5 -53.2)
LCHlch(23.3 59.0 295.6)
OKLCHoklch(0.348 0.155 263.1)
Decimal536457
Display P3color(display-p3 0.031 0.184 0.537)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#082f89 on white: 11.81:1
AA ✓ pass · AA-large · AAA
Aa
#082f89 on black: 1.78:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003E8C
deuteranopia · #003287
tritanopia · #004757

Color scale — 50 to 950

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

#F2F5FD
#E5EBFB
#C4D3F8
#95B3F9
#608DF6
#2B67F3
#0D4FE7
#0B42C1
#082f89
#0B296F
#071A46
Base = 800Lightest = 50 · #F2F5FDDarkest = 950 · #071A46
:root {
  --brand-50: #F2F5FD;
  --brand-100: #E5EBFB;
  --brand-200: #C4D3F8;
  --brand-300: #95B3F9;
  --brand-400: #608DF6;
  --brand-500: #2B67F3;
  --brand-600: #0D4FE7;
  --brand-700: #0B42C1;
  --brand-800: #082f89;
  --brand-900: #0B296F;
  --brand-950: #071A46;
  --brand: #082f89;
  --brand-ink: #ffffff;
}

Colors that work with #082f89

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#C0CDED
Hairlines and dividers
Muted text#4B639B
Captions on the surface
Accent#8C4105
Second voice, not a rival
Dark variant#072978
Hover, pressed, headers
Light variant#E7EEFE
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 #082f89

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#896208
Analogous left#086F89
Analogous right#220889
Split-complement 1#892208
Split-complement 2#6F8908
Triadic 1#89082F
Triadic 2#2F8908
Tetradic#89086F

RGB percentages

Red3.1%
Green18.4%
Blue53.7%

CMYK percentages

Cyan94.2%
Magenta65.7%
Yellow0.0%
Key (black)46.3%

Color previews

#082f89 text on a black background

contrast 1.78:1

Card sample

#082f89 text on a white background

contrast 11.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #082f89

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.

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

#082f89, answered

What color is #082f89?

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

What is the RGB value of #082f89?

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

Is #082f89 a light or a dark color?

It is a dark color. Relative luminance is 0.0389 and perceived brightness is 23%, so white text on it reaches 11.81:1.

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

White. It scores 11.81:1 against #082f89, versus 1.78:1 for black — AAA at any size.

What is the complementary color of #082f89?

#896208 sits directly opposite on the wheel. Softer options are the split-complements #892208 and #6F8908, which give the same contrast with far less vibration.

What colors go well with #082f89?

For interface work: #F4F6FA as the surface, #C0CDED for borders, #4B639B for secondary text, #8C4105 as an accent and #072978 for hover and pressed states. For a palette, the analogous pair #086F89 and #220889 stays calm, while #896208 is the loudest partner.

What is #082f89 in CMYK for printing?

cmyk(94%, 66%, 0%, 46%). 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 #082f89 warm or cool?

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

Work with #082f89 in the Color Lab