Skip to content

#080f4e

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

RGB
8, 15, 78
HSL
234°, 81%, 17%
CMYK
90, 81, 0, 69
Luminance
0.0094

At a glance

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

Hex
#080f4e
Hue
234°
blue
Saturation
81%
electric
Lightness
17%
deep
Brightness
31%
HSV value
Perceived
11%
weighted brightness
Luminance
0.0094
WCAG relative
Temperature
Cool
87/100 cool
Color family
Blue
Tone
Electric
Best ink
White
17.67:1
Closest name
Midnight Blue
ΔE2000 6
Where it sits
Hue234° of 360°
Saturation81%
Lightness17%
Temperature
Warm ← → Cool87% 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#080f4e
RGBrgb(8, 15, 78)
HSLhsl(234, 81%, 17%)
CMYKcmyk(90%, 81%, 0%, 69%)
LABlab(8.5 23.7 -39.0)
LCHlch(8.5 45.6 301.3)
OKLCHoklch(0.221 0.113 268.6)
Decimal528206
Display P3color(display-p3 0.031 0.059 0.306)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#080f4e on white: 17.67:1
AA ✓ pass · AA-large · AAA
Aa
#080f4e on black: 1.19:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #001C50
deuteranopia · #00154D
tritanopia · #00212D

Color scale — 50 to 950

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

#F2F3FC
#E6E8F9
#C6CBF6
#99A2F5
#6674EF
#3346EA
#172BDE
#1324B9
#0F1C94
#0F196B
#080f4e
Base = 950Lightest = 50 · #F2F3FCDarkest = 950 · #080f4e
:root {
  --brand-50: #F2F3FC;
  --brand-100: #E6E8F9;
  --brand-200: #C6CBF6;
  --brand-300: #99A2F5;
  --brand-400: #6674EF;
  --brand-500: #3346EA;
  --brand-600: #172BDE;
  --brand-700: #1324B9;
  --brand-800: #0F1C94;
  --brand-900: #0F196B;
  --brand-950: #080f4e;
  --brand: #080f4e;
  --brand-ink: #ffffff;
}

Colors that work with #080f4e

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#F4F5FA
Tinted page background
Border#C0C4ED
Hairlines and dividers
Muted text#4B539B
Captions on the surface
Accent#503606
Second voice, not a rival
Dark variant#0C1674
Hover, pressed, headers
Light variant#E8EAFD
Selected rows, tints
Dark surface#141524
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 #080f4e

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#4E4708
Analogous left#08324E
Analogous right#24084E
Split-complement 1#4E2408
Split-complement 2#324E08
Triadic 1#4E080F
Triadic 2#0F4E08
Tetradic#4E0832

RGB percentages

Red3.1%
Green5.9%
Blue30.6%

CMYK percentages

Cyan89.7%
Magenta80.8%
Yellow0.0%
Key (black)69.4%

Color previews

#080f4e text on a black background

contrast 1.19:1

Card sample

#080f4e text on a white background

contrast 17.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #080f4e;
Background color
Panel with #080f4e background
background-color: #080f4e;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #080f4e;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(8, 15, 78, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 15, 78, 0.45);
Border & gradient
Gradient panel
border: 3px solid #080f4e;
background: linear-gradient(135deg, #080f4e, #30084E);

Monochromatic scale

Palettes built from #080f4e

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.

#080f4e 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.

#080f4e, answered

What color is #080f4e?

#080f4e is a deep electric blue, closest to Midnight Blue (ΔE2000 6). It sits at 234° on the hue wheel with 81% saturation and 17% lightness, which reads as cool.

What is the RGB value of #080f4e?

rgb(8, 15, 78) — 8 red, 15 green and 78 blue out of 255, or 3.1% / 5.9% / 30.6% by channel.

Is #080f4e a light or a dark color?

It is a dark color. Relative luminance is 0.0094 and perceived brightness is 11%, so white text on it reaches 17.67:1.

Should I use black or white text on #080f4e?

White. It scores 17.67:1 against #080f4e, versus 1.19:1 for black — AAA at any size.

What is the complementary color of #080f4e?

#4E4708 sits directly opposite on the wheel. Softer options are the split-complements #4E2408 and #324E08, which give the same contrast with far less vibration.

What colors go well with #080f4e?

For interface work: #F4F5FA as the surface, #C0C4ED for borders, #4B539B for secondary text, #503606 as an accent and #0C1674 for hover and pressed states. For a palette, the analogous pair #08324E and #24084E stays calm, while #4E4708 is the loudest partner.

What is #080f4e in CMYK for printing?

cmyk(90%, 81%, 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 #080f4e warm or cool?

Cool — it scores 87 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1B084E; nudged cooler, #07224F.

Work with #080f4e in the Color Lab