Skip to content

#082f41

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

RGB
8, 47, 65
HSL
199°, 78%, 14%
CMYK
88, 28, 0, 75
Luminance
0.0247

At a glance

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

Hex
#082f41
Hue
199°
cyan
Saturation
78%
electric
Lightness
14%
deep
Brightness
25%
HSV value
Perceived
17%
weighted brightness
Luminance
0.0247
WCAG relative
Temperature
Cool
95/100 cool
Color family
Cyan
Tone
Electric
Best ink
White
14.06:1
Closest name
Midnight Blue
ΔE2000 12
Where it sits
Hue199° of 360°
Saturation78%
Lightness14%
Temperature
Warm ← → Cool95% 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#082f41
RGBrgb(8, 47, 65)
HSLhsl(199, 78%, 14%)
CMYKcmyk(88%, 28%, 0%, 75%)
LABlab(17.8 -5.9 -15.1)
LCHlch(17.8 16.2 248.7)
OKLCHoklch(0.288 0.053 233.4)
Decimal536385
Display P3color(display-p3 0.031 0.184 0.255)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#082f41 on white: 14.06:1
AA ✓ pass · AA-large · AAA
Aa
#082f41 on black: 1.49:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #262F42
deuteranopia · #1E2941
tritanopia · #003435

Color scale — 50 to 950

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

#F3F9FC
#E6F3F9
#C7E6F5
#9BD7F3
#69C3ED
#37AFE6
#1B9EDA
#1683B6
#126991
#114D69
#082f41
Base = 950Lightest = 50 · #F3F9FCDarkest = 950 · #082f41
:root {
  --brand-50: #F3F9FC;
  --brand-100: #E6F3F9;
  --brand-200: #C7E6F5;
  --brand-300: #9BD7F3;
  --brand-400: #69C3ED;
  --brand-500: #37AFE6;
  --brand-600: #1B9EDA;
  --brand-700: #1683B6;
  --brand-800: #126991;
  --brand-900: #114D69;
  --brand-950: #082f41;
  --brand: #082f41;
  --brand-ink: #ffffff;
}

Colors that work with #082f41

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#F4F8FA
Tinted page background
Border#C0DFED
Hairlines and dividers
Muted text#4B829B
Captions on the surface
Accent#420A07
Second voice, not a rival
Dark variant#0E5272
Hover, pressed, headers
Light variant#E8F6FC
Selected rows, tints
Dark surface#141F24
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 #082f41

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
  • Thin strokes and 1px borders — they disappear on light UI
  • 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#411A08
Analogous left#084136
Analogous right#081341
Split-complement 1#410813
Split-complement 2#413608
Triadic 1#41082F
Triadic 2#2F4108
Tetradic#360841

RGB percentages

Red3.1%
Green18.4%
Blue25.5%

CMYK percentages

Cyan87.7%
Magenta27.7%
Yellow0.0%
Key (black)74.5%

Color previews

#082f41 text on a black background

contrast 1.49:1

Card sample

#082f41 text on a white background

contrast 14.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #082f41

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.

#082f41 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyTravelHealthcareMedia
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#082f41, answered

What color is #082f41?

#082f41 is a deep electric cyan, closest to Midnight Blue (ΔE2000 12). It sits at 199° on the hue wheel with 78% saturation and 14% lightness, which reads as cool.

What is the RGB value of #082f41?

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

Is #082f41 a light or a dark color?

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

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

White. It scores 14.06:1 against #082f41, versus 1.49:1 for black — AAA at any size.

What is the complementary color of #082f41?

#411A08 sits directly opposite on the wheel. Softer options are the split-complements #410813 and #413608, which give the same contrast with far less vibration.

What colors go well with #082f41?

For interface work: #F4F8FA as the surface, #C0DFED for borders, #4B829B for secondary text, #420A07 as an accent and #0E5272 for hover and pressed states. For a palette, the analogous pair #084136 and #081341 stays calm, while #411A08 is the loudest partner.

What is #082f41 in CMYK for printing?

cmyk(88%, 28%, 0%, 75%). 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 #082f41 warm or cool?

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

Work with #082f41 in the Color Lab