Skip to content

#08077d

a dark, electric blue · cool · closest name: Navy

RGB
8, 7, 125
HSL
241°, 89%, 26%
CMYK
94, 94, 0, 51
Luminance
0.0168

At a glance

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

Hex
#08077d
Hue
241°
blue
Saturation
89%
electric
Lightness
26%
dark
Brightness
49%
HSV value
Perceived
17%
weighted brightness
Luminance
0.0168
WCAG relative
Temperature
Cool
83/100 cool
Color family
Blue
Tone
Electric
Best ink
White
15.71:1
Closest name
Navy
ΔE2000 1.2
Where it sits
Hue241° of 360°
Saturation89%
Lightness26%
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#08077d
RGBrgb(8, 7, 125)
HSLhsl(241, 89%, 26%)
CMYKcmyk(94%, 94%, 0%, 51%)
LABlab(13.7 44.0 -61.5)
LCHlch(13.7 75.6 305.6)
OKLCHoklch(0.276 0.178 266.5)
Decimal526205
Display P3color(display-p3 0.031 0.027 0.490)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#08077d on white: 15.71:1
AA ✓ pass · AA-large · AAA
Aa
#08077d on black: 1.34:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #002980
deuteranopia · #001C7B
tritanopia · #003247

Color scale — 50 to 950

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

#F2F2FD
#E5E5FB
#C4C4F8
#9695F9
#6160F6
#2C2AF3
#0F0DE8
#0C0BC1
#0A099B
#08077d
#070746
Base = 900Lightest = 50 · #F2F2FDDarkest = 950 · #070746
:root {
  --brand-50: #F2F2FD;
  --brand-100: #E5E5FB;
  --brand-200: #C4C4F8;
  --brand-300: #9695F9;
  --brand-400: #6160F6;
  --brand-500: #2C2AF3;
  --brand-600: #0F0DE8;
  --brand-700: #0C0BC1;
  --brand-800: #0A099B;
  --brand-900: #08077d;
  --brand-950: #070746;
  --brand: #08077d;
  --brand-ink: #ffffff;
}

Colors that work with #08077d

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#C0C0ED
Hairlines and dividers
Muted text#4B4B9B
Captions on the surface
Accent#806204
Second voice, not a rival
Dark variant#080779
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 #08077d

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#7C7D07
Analogous left#07417D
Analogous right#43077D
Split-complement 1#7D4307
Split-complement 2#417D07
Triadic 1#7D0807
Triadic 2#077D08
Tetradic#7D0741

RGB percentages

Red3.1%
Green2.7%
Blue49.0%

CMYK percentages

Cyan93.6%
Magenta94.4%
Yellow0.0%
Key (black)51.0%

Color previews

#08077d text on a black background

contrast 1.34:1

Card sample

#08077d text on a white background

contrast 15.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #08077d;
Background color
Panel with #08077d background
background-color: #08077d;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #08077d;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(8, 7, 125, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 7, 125, 0.45);
Border & gradient
Gradient panel
border: 3px solid #08077d;
background: linear-gradient(135deg, #08077d, #57077D);

Monochromatic scale

Palettes built from #08077d

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.

#08077d 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.

#08077d, answered

What color is #08077d?

#08077d is a dark electric blue, closest to Navy (ΔE2000 1.2). It sits at 241° on the hue wheel with 89% saturation and 26% lightness, which reads as cool.

What is the RGB value of #08077d?

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

Is #08077d a light or a dark color?

It is a dark color. Relative luminance is 0.0168 and perceived brightness is 17%, so white text on it reaches 15.71:1.

Should I use black or white text on #08077d?

White. It scores 15.71:1 against #08077d, versus 1.34:1 for black — AAA at any size.

What is the complementary color of #08077d?

#7C7D07 sits directly opposite on the wheel. Softer options are the split-complements #7D4307 and #417D07, which give the same contrast with far less vibration.

What colors go well with #08077d?

For interface work: #F4F4FA as the surface, #C0C0ED for borders, #4B4B9B for secondary text, #806204 as an accent and #080779 for hover and pressed states. For a palette, the analogous pair #07417D and #43077D stays calm, while #7C7D07 is the loudest partner.

What is #08077d in CMYK for printing?

cmyk(94%, 94%, 0%, 51%). 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 #08077d 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 #33077D; nudged cooler, #06297E.

Work with #08077d in the Color Lab