Skip to content

#080c32

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

RGB
8, 12, 50
HSL
234°, 72%, 11%
CMYK
84, 76, 0, 80
Luminance
0.0054

At a glance

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

Hex
#080c32
Hue
234°
blue
Saturation
72%
vivid
Lightness
11%
deep
Brightness
20%
HSV value
Perceived
8%
weighted brightness
Luminance
0.0054
WCAG relative
Temperature
Cool
87/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
18.94:1
Closest name
Midnight Blue
ΔE2000 12
Where it sits
Hue234° of 360°
Saturation72%
Lightness11%
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#080c32
RGBrgb(8, 12, 50)
HSLhsl(234, 72%, 11%)
CMYKcmyk(84%, 76%, 0%, 80%)
LABlab(4.9 11.8 -24.9)
LCHlch(4.9 27.6 295.5)
OKLCHoklch(0.182 0.074 271.8)
Decimal527410
Display P3color(display-p3 0.031 0.047 0.196)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#080c32 on white: 18.94:1
AA ✓ pass · AA-large · AAA
Aa
#080c32 on black: 1.11:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #001333
deuteranopia · #000F31
tritanopia · #00161D

Color scale — 50 to 950

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

#F3F4FC
#E7E9F8
#C9CDF3
#9EA6F0
#6E7AE8
#3E4DE0
#2233D3
#1C2AB0
#17228D
#141C66
#080c32
Base = 950Lightest = 50 · #F3F4FCDarkest = 950 · #080c32
:root {
  --brand-50: #F3F4FC;
  --brand-100: #E7E9F8;
  --brand-200: #C9CDF3;
  --brand-300: #9EA6F0;
  --brand-400: #6E7AE8;
  --brand-500: #3E4DE0;
  --brand-600: #2233D3;
  --brand-700: #1C2AB0;
  --brand-800: #17228D;
  --brand-900: #141C66;
  --brand-950: #080c32;
  --brand: #080c32;
  --brand-ink: #ffffff;
}

Colors that work with #080c32

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#4B529B
Captions on the surface
Accent#332407
Second voice, not a rival
Dark variant#121A6E
Hover, pressed, headers
Light variant#E9EBFB
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 #080c32

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#322E08
Analogous left#082132
Analogous right#190832
Split-complement 1#321908
Split-complement 2#213208
Triadic 1#32080C
Triadic 2#0C3208
Tetradic#320821

RGB percentages

Red3.1%
Green4.7%
Blue19.6%

CMYK percentages

Cyan84.0%
Magenta76.0%
Yellow0.0%
Key (black)80.4%

Color previews

#080c32 text on a black background

contrast 1.11:1

Card sample

#080c32 text on a white background

contrast 18.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #080c32

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.

#080c32 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

Converts to four-color process without much drama. Proof it anyway.

#080c32, answered

What color is #080c32?

#080c32 is a deep vivid blue, closest to Midnight Blue (ΔE2000 12). It sits at 234° on the hue wheel with 72% saturation and 11% lightness, which reads as cool.

What is the RGB value of #080c32?

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

Is #080c32 a light or a dark color?

It is a dark color. Relative luminance is 0.0054 and perceived brightness is 8%, so white text on it reaches 18.94:1.

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

White. It scores 18.94:1 against #080c32, versus 1.11:1 for black — AAA at any size.

What is the complementary color of #080c32?

#322E08 sits directly opposite on the wheel. Softer options are the split-complements #321908 and #213208, which give the same contrast with far less vibration.

What colors go well with #080c32?

For interface work: #F4F5FA as the surface, #C0C4ED for borders, #4B529B for secondary text, #332407 as an accent and #121A6E for hover and pressed states. For a palette, the analogous pair #082132 and #190832 stays calm, while #322E08 is the loudest partner.

What is #080c32 in CMYK for printing?

cmyk(84%, 76%, 0%, 80%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #080c32 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 #130832; nudged cooler, #071933.

Work with #080c32 in the Color Lab