Skip to content

#005178

a deep, electric cyan · cool · closest name: Dark Slate Gray

RGB
0, 81, 120
HSL
200°, 100%, 24%
CMYK
100, 33, 0, 53
Luminance
0.0724

At a glance

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

Hex
#005178
Hue
200°
cyan
Saturation
100%
electric
Lightness
24%
deep
Brightness
47%
HSV value
Perceived
29%
weighted brightness
Luminance
0.0724
WCAG relative
Temperature
Cool
96/100 cool
Color family
Cyan
Tone
Electric
Best ink
White
8.58:1
Closest name
Dark Slate Gray
ΔE2000 15.9
Where it sits
Hue200° of 360°
Saturation100%
Lightness24%
Temperature
Warm ← → Cool96% 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#005178
RGBrgb(0, 81, 120)
HSLhsl(200, 100%, 24%)
CMYKcmyk(100%, 33%, 0%, 53%)
LABlab(32.4 -5.7 -28.1)
LCHlch(32.4 28.6 258.5)
OKLCHoklch(0.414 0.093 239.0)
Decimal20856
Display P3color(display-p3 0.000 0.318 0.471)

Copy-ready code

/* CSS */
color: #005178;
background-color: #005178;
/* Tailwind (arbitrary) */
class="text-[#005178] bg-[#005178]"
/* SCSS */
$brand: #005178;
/* SwiftUI */
Color(red: 0.000, green: 0.318, blue: 0.471)
/* Android */
Color.parseColor("#005178")
/* Flutter */
Color(0xFF005178)
/* Python / OpenCV (BGR) */
(120, 81, 0)

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 #005178 · 8.58:1
Use #ffffffAAA at every size.
Aa
White text · 8.58:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.45:1
AA fail · AA large fail · AAA fail
Reading the other direction: #005178 as text scores 8.58:1 on white and 2.45:1 on black.

Accessibility — WCAG contrast

Aa
#005178 on white: 8.58:1
AA ✓ pass · AA-large · AAA
Aa
#005178 on black: 2.45:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3E527A
deuteranopia · #2F4877
tritanopia · #005B5F

Color scale — 50 to 950

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

#F1FAFE
#E3F4FC
#C0E8FC
#8FDBFF
#57C8FF
#1FB6FF
#00A5F5
#008ACC
#006EA3
#005178
#033349
Base = 900Lightest = 50 · #F1FAFEDarkest = 950 · #033349
:root {
  --brand-50: #F1FAFE;
  --brand-100: #E3F4FC;
  --brand-200: #C0E8FC;
  --brand-300: #8FDBFF;
  --brand-400: #57C8FF;
  --brand-500: #1FB6FF;
  --brand-600: #00A5F5;
  --brand-700: #008ACC;
  --brand-800: #006EA3;
  --brand-900: #005178;
  --brand-950: #033349;
  --brand: #005178;
  --brand-ink: #ffffff;
}

Colors that work with #005178

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#F4F8FA
Tinted page background
Border#C0DEED
Hairlines and dividers
Muted text#4B819B
Captions on the surface
Accent#780900
Second voice, not a rival
Dark variant#005680
Hover, pressed, headers
Light variant#E5F7FF
Selected rows, tints
Dark surface#141F24
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 #005178

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
  • Thin strokes and 1px borders — they disappear on light UI
  • 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#782700
Analogous left#007863
Analogous right#001578
Split-complement 1#780015
Split-complement 2#786300
Triadic 1#780051
Triadic 2#517800
Tetradic#630078

RGB percentages

Red0.0%
Green31.8%
Blue47.1%

CMYK percentages

Cyan100.0%
Magenta32.5%
Yellow0.0%
Key (black)52.9%

Color previews

#005178 text on a black background

contrast 2.45:1

Card sample

#005178 text on a white background

contrast 8.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #005178

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.

#005178 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyTravelHealthcareMedia
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#005178, answered

What color is #005178?

#005178 is a deep electric cyan, closest to Dark Slate Gray (ΔE2000 15.9). It sits at 200° on the hue wheel with 100% saturation and 24% lightness, which reads as cool.

What is the RGB value of #005178?

rgb(0, 81, 120) — 0 red, 81 green and 120 blue out of 255, or 0% / 31.8% / 47.1% by channel.

Is #005178 a light or a dark color?

It is a dark color. Relative luminance is 0.0724 and perceived brightness is 29%, so white text on it reaches 8.58:1.

Should I use black or white text on #005178?

White. It scores 8.58:1 against #005178, versus 2.45:1 for black — AAA at any size.

What is the complementary color of #005178?

#782700 sits directly opposite on the wheel. Softer options are the split-complements #780015 and #786300, which give the same contrast with far less vibration.

What colors go well with #005178?

For interface work: #F4F8FA as the surface, #C0DEED for borders, #4B819B for secondary text, #780900 as an accent and #005680 for hover and pressed states. For a palette, the analogous pair #007863 and #001578 stays calm, while #782700 is the loudest partner.

What is #005178 in CMYK for printing?

cmyk(100%, 33%, 0%, 53%). 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 #005178 warm or cool?

Cool — it scores 96 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #007873; nudged cooler, #004278.

Work with #005178 in the Color Lab