Skip to content

#08073c

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

RGB
8, 7, 60
HSL
241°, 79%, 13%
CMYK
87, 88, 0, 77
Luminance
0.0053

At a glance

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

Hex
#08073c
Hue
241°
blue
Saturation
79%
electric
Lightness
13%
deep
Brightness
24%
HSV value
Perceived
8%
weighted brightness
Luminance
0.0053
WCAG relative
Temperature
Cool
83/100 cool
Color family
Blue
Tone
Electric
Best ink
White
18.99:1
Closest name
Midnight Blue
ΔE2000 9.4
Where it sits
Hue241° of 360°
Saturation79%
Lightness13%
Temperature
Warm ← → Cool83% 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#08073c
RGBrgb(8, 7, 60)
HSLhsl(241, 79%, 13%)
CMYKcmyk(87%, 88%, 0%, 77%)
LABlab(4.8 19.7 -32.4)
LCHlch(4.8 37.9 301.2)
OKLCHoklch(0.184 0.097 272.5)
Decimal526140
Display P3color(display-p3 0.031 0.027 0.235)

Copy-ready code

/* CSS */
color: #08073c;
background-color: #08073c;
/* Tailwind (arbitrary) */
class="text-[#08073c] bg-[#08073c]"
/* SCSS */
$brand: #08073c;
/* SwiftUI */
Color(red: 0.031, green: 0.027, blue: 0.235)
/* Android */
Color.parseColor("#08073c")
/* Flutter */
Color(0xFF08073C)
/* Python / OpenCV (BGR) */
(60, 7, 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 #08073c · 18.99:1
Use #ffffffAAA at every size.
Aa
White text · 18.99: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: #08073c as text scores 18.99:1 on white and 1.11:1 on black.

Accessibility — WCAG contrast

Aa
#08073c on white: 18.99:1
AA ✓ pass · AA-large · AAA
Aa
#08073c on black: 1.11:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #00133E
deuteranopia · #000E3B
tritanopia · #001721

Color scale — 50 to 950

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

#F3F3FC
#E7E6F9
#C8C7F5
#9C9BF3
#6B68ED
#3936E8
#1D1ADB
#1815B7
#131192
#12116A
#08073c
Base = 950Lightest = 50 · #F3F3FCDarkest = 950 · #08073c
:root {
  --brand-50: #F3F3FC;
  --brand-100: #E7E6F9;
  --brand-200: #C8C7F5;
  --brand-300: #9C9BF3;
  --brand-400: #6B68ED;
  --brand-500: #3936E8;
  --brand-600: #1D1ADB;
  --brand-700: #1815B7;
  --brand-800: #131192;
  --brand-900: #12116A;
  --brand-950: #08073c;
  --brand: #08073c;
  --brand-ink: #ffffff;
}

Colors that work with #08073c

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#C1C0ED
Hairlines and dividers
Muted text#4C4B9B
Captions on the surface
Accent#3D3006
Second voice, not a rival
Dark variant#0F0D72
Hover, pressed, headers
Light variant#E9E8FC
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 #08073c

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#3B3C07
Analogous left#07203C
Analogous right#22073C
Split-complement 1#3C2207
Split-complement 2#203C07
Triadic 1#3C0807
Triadic 2#073C08
Tetradic#3C0720

RGB percentages

Red3.1%
Green2.7%
Blue23.5%

CMYK percentages

Cyan86.7%
Magenta88.3%
Yellow0.0%
Key (black)76.5%

Color previews

#08073c text on a black background

contrast 1.11:1

Card sample

#08073c text on a white background

contrast 18.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #08073c;
Background color
Panel with #08073c background
background-color: #08073c;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #08073c;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(8, 7, 60, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 7, 60, 0.45);
Border & gradient
Gradient panel
border: 3px solid #08073c;
background: linear-gradient(135deg, #08073c, #2B073C);

Monochromatic scale

Palettes built from #08073c

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.

#08073c 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.

#08073c, answered

What color is #08073c?

#08073c is a deep electric blue, closest to Midnight Blue (ΔE2000 9.4). It sits at 241° on the hue wheel with 79% saturation and 13% lightness, which reads as cool.

What is the RGB value of #08073c?

rgb(8, 7, 60) — 8 red, 7 green and 60 blue out of 255, or 3.1% / 2.7% / 23.5% by channel.

Is #08073c a light or a dark color?

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

Should I use black or white text on #08073c?

White. It scores 18.99:1 against #08073c, versus 1.11:1 for black — AAA at any size.

What is the complementary color of #08073c?

#3B3C07 sits directly opposite on the wheel. Softer options are the split-complements #3C2207 and #203C07, which give the same contrast with far less vibration.

What colors go well with #08073c?

For interface work: #F4F4FA as the surface, #C1C0ED for borders, #4C4B9B for secondary text, #3D3006 as an accent and #0F0D72 for hover and pressed states. For a palette, the analogous pair #07203C and #22073C stays calm, while #3B3C07 is the loudest partner.

What is #08073c in CMYK for printing?

cmyk(87%, 88%, 0%, 77%). 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 #08073c warm or cool?

Cool — it scores 83 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1B073C; nudged cooler, #06193C.

Work with #08073c in the Color Lab