Skip to content

#080cb4

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

RGB
8, 12, 180
HSL
239°, 92%, 37%
CMYK
96, 93, 0, 29
Luminance
0.0361

At a glance

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

Hex
#080cb4
Hue
239°
blue
Saturation
92%
electric
Lightness
37%
dark
Brightness
71%
HSV value
Perceived
24%
weighted brightness
Luminance
0.0361
WCAG relative
Temperature
Cool
84/100 cool
Color family
Blue
Tone
Electric
Best ink
White
12.20:1
Closest name
Medium Blue
ΔE2000 3
Where it sits
Hue239° of 360°
Saturation92%
Lightness37%
Temperature
Warm ← → Cool84% 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#080cb4
RGBrgb(8, 12, 180)
HSLhsl(239, 92%, 37%)
CMYKcmyk(96%, 93%, 0%, 29%)
LABlab(22.3 58.1 -81.1)
LCHlch(22.3 99.8 305.6)
OKLCHoklch(0.356 0.235 265.3)
Decimal527540
Display P3color(display-p3 0.031 0.047 0.706)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#080cb4 on white: 12.20:1
AA ✓ pass · AA-large · AAA
Aa
#080cb4 on black: 1.72:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003EB8
deuteranopia · #002CB1
tritanopia · #004B69

Color scale — 50 to 950

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

#F2F2FD
#E4E5FB
#C3C4F9
#9496FA
#5E61F8
#282DF5
#0A10EA
#080cb4
#070A9C
#0A0C71
#060846
Base = 700Lightest = 50 · #F2F2FDDarkest = 950 · #060846
:root {
  --brand-50: #F2F2FD;
  --brand-100: #E4E5FB;
  --brand-200: #C3C4F9;
  --brand-300: #9496FA;
  --brand-400: #5E61F8;
  --brand-500: #282DF5;
  --brand-600: #0A10EA;
  --brand-700: #080cb4;
  --brand-800: #070A9C;
  --brand-900: #0A0C71;
  --brand-950: #060846;
  --brand: #080cb4;
  --brand-ink: #ffffff;
}

Colors that work with #080cb4

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#F4F4FA
Tinted page background
Border#C0C1ED
Hairlines and dividers
Muted text#4B4C9B
Captions on the surface
Accent#C89304
Second voice, not a rival
Dark variant#05087A
Hover, pressed, headers
Light variant#E7E7FE
Selected rows, tints
Dark surface#141424
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 #080cb4

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#B4B008
Analogous left#0862B4
Analogous right#5A08B4
Split-complement 1#B45A08
Split-complement 2#62B408
Triadic 1#B4080C
Triadic 2#0CB408
Tetradic#B40862

RGB percentages

Red3.1%
Green4.7%
Blue70.6%

CMYK percentages

Cyan95.6%
Magenta93.3%
Yellow0.0%
Key (black)29.4%

Color previews

#080cb4 text on a black background

contrast 1.72:1

Card sample

#080cb4 text on a white background

contrast 12.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #080cb4

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.

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

#080cb4, answered

What color is #080cb4?

#080cb4 is a dark electric blue, closest to Medium Blue (ΔE2000 3). It sits at 239° on the hue wheel with 92% saturation and 37% lightness, which reads as cool.

What is the RGB value of #080cb4?

rgb(8, 12, 180) — 8 red, 12 green and 180 blue out of 255, or 3.1% / 4.7% / 70.6% by channel.

Is #080cb4 a light or a dark color?

It is a dark color. Relative luminance is 0.0361 and perceived brightness is 24%, so white text on it reaches 12.20:1.

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

White. It scores 12.20:1 against #080cb4, versus 1.72:1 for black — AAA at any size.

What is the complementary color of #080cb4?

#B4B008 sits directly opposite on the wheel. Softer options are the split-complements #B45A08 and #62B408, which give the same contrast with far less vibration.

What colors go well with #080cb4?

For interface work: #F4F4FA as the surface, #C0C1ED for borders, #4B4C9B for secondary text, #C89304 as an accent and #05087A for hover and pressed states. For a palette, the analogous pair #0862B4 and #5A08B4 stays calm, while #B4B008 is the loudest partner.

What is #080cb4 in CMYK for printing?

cmyk(96%, 93%, 0%, 29%). 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 #080cb4 warm or cool?

Cool — it scores 84 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #4308B4; nudged cooler, #0634B6.

Work with #080cb4 in the Color Lab