Skip to content

#080f71

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

RGB
8, 15, 113
HSL
236°, 87%, 24%
CMYK
93, 87, 0, 56
Luminance
0.0159

At a glance

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

Hex
#080f71
Hue
236°
blue
Saturation
87%
electric
Lightness
24%
deep
Brightness
44%
HSV value
Perceived
16%
weighted brightness
Luminance
0.0159
WCAG relative
Temperature
Cool
86/100 cool
Color family
Blue
Tone
Electric
Best ink
White
15.94:1
Closest name
Midnight Blue
ΔE2000 2.5
Where it sits
Hue236° of 360°
Saturation87%
Lightness24%
Temperature
Warm ← → Cool86% 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#080f71
RGBrgb(8, 15, 113)
HSLhsl(236, 87%, 24%)
CMYKcmyk(93%, 87%, 0%, 56%)
LABlab(13.1 36.7 -54.8)
LCHlch(13.1 65.9 303.8)
OKLCHoklch(0.267 0.159 266.8)
Decimal528241
Display P3color(display-p3 0.031 0.059 0.443)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#080f71 on white: 15.94:1
AA ✓ pass · AA-large · AAA
Aa
#080f71 on black: 1.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #002774
deuteranopia · #001C6F
tritanopia · #002F41

Color scale — 50 to 950

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

#F2F3FD
#E5E7FA
#C4C8F7
#969DF8
#626CF4
#2D3AF0
#101EE5
#0D19BF
#0B1498
#080f71
#080C45
Base = 900Lightest = 50 · #F2F3FDDarkest = 950 · #080C45
:root {
  --brand-50: #F2F3FD;
  --brand-100: #E5E7FA;
  --brand-200: #C4C8F7;
  --brand-300: #969DF8;
  --brand-400: #626CF4;
  --brand-500: #2D3AF0;
  --brand-600: #101EE5;
  --brand-700: #0D19BF;
  --brand-800: #0B1498;
  --brand-900: #080f71;
  --brand-950: #080C45;
  --brand: #080f71;
  --brand-ink: #ffffff;
}

Colors that work with #080f71

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#C0C3ED
Hairlines and dividers
Muted text#4B509B
Captions on the surface
Accent#735106
Second voice, not a rival
Dark variant#081077
Hover, pressed, headers
Light variant#E7E9FD
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 #080f71

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#716A08
Analogous left#084371
Analogous right#350871
Split-complement 1#713508
Split-complement 2#437108
Triadic 1#71080F
Triadic 2#0F7108
Tetradic#710843

RGB percentages

Red3.1%
Green5.9%
Blue44.3%

CMYK percentages

Cyan92.9%
Magenta86.7%
Yellow0.0%
Key (black)55.7%

Color previews

#080f71 text on a black background

contrast 1.32:1

Card sample

#080f71 text on a white background

contrast 15.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #080f71

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.

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

#080f71, answered

What color is #080f71?

#080f71 is a deep electric blue, closest to Midnight Blue (ΔE2000 2.5). It sits at 236° on the hue wheel with 87% saturation and 24% lightness, which reads as cool.

What is the RGB value of #080f71?

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

Is #080f71 a light or a dark color?

It is a dark color. Relative luminance is 0.0159 and perceived brightness is 16%, so white text on it reaches 15.94:1.

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

White. It scores 15.94:1 against #080f71, versus 1.32:1 for black — AAA at any size.

What is the complementary color of #080f71?

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

What colors go well with #080f71?

For interface work: #F4F5FA as the surface, #C0C3ED for borders, #4B509B for secondary text, #735106 as an accent and #081077 for hover and pressed states. For a palette, the analogous pair #084371 and #350871 stays calm, while #716A08 is the loudest partner.

What is #080f71 in CMYK for printing?

cmyk(93%, 87%, 0%, 56%). 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 #080f71 warm or cool?

Cool — it scores 86 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #270871; nudged cooler, #072A72.

Work with #080f71 in the Color Lab