Skip to content

#0c0178

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

RGB
12, 1, 120
HSL
246°, 98%, 24%
CMYK
90, 99, 0, 53
Luminance
0.0146

At a glance

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

Hex
#0c0178
Hue
246°
blue
Saturation
98%
electric
Lightness
24%
deep
Brightness
47%
HSV value
Perceived
16%
weighted brightness
Luminance
0.0146
WCAG relative
Temperature
Cool
80/100 cool
Color family
Blue
Tone
Electric
Best ink
White
16.26:1
Closest name
Navy
ΔE2000 1.2
Where it sits
Hue246° of 360°
Saturation98%
Lightness24%
Temperature
Warm ← → Cool80% 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#0c0178
RGBrgb(12, 1, 120)
HSLhsl(246, 98%, 24%)
CMYKcmyk(90%, 99%, 0%, 53%)
LABlab(12.3 45.1 -60.6)
LCHlch(12.3 75.6 306.6)
OKLCHoklch(0.265 0.175 268.1)
Decimal786808
Display P3color(display-p3 0.047 0.004 0.471)

Copy-ready code

/* CSS */
color: #0c0178;
background-color: #0c0178;
/* Tailwind (arbitrary) */
class="text-[#0c0178] bg-[#0c0178]"
/* SCSS */
$brand: #0c0178;
/* SwiftUI */
Color(red: 0.047, green: 0.004, blue: 0.471)
/* Android */
Color.parseColor("#0c0178")
/* Flutter */
Color(0xFF0C0178)
/* Python / OpenCV (BGR) */
(120, 1, 12)

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

Accessibility — WCAG contrast

Aa
#0c0178 on white: 16.26:1
AA ✓ pass · AA-large · AAA
Aa
#0c0178 on black: 1.29:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #00267B
deuteranopia · #001A76
tritanopia · #002E44

Color scale — 50 to 950

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

#F2F1FD
#E6E3FC
#C6C1FB
#9A90FE
#6758FE
#3521FD
#1802F3
#1402CA
#1001A2
#0c0178
#0A0449
Base = 900Lightest = 50 · #F2F1FDDarkest = 950 · #0A0449
:root {
  --brand-50: #F2F1FD;
  --brand-100: #E6E3FC;
  --brand-200: #C6C1FB;
  --brand-300: #9A90FE;
  --brand-400: #6758FE;
  --brand-500: #3521FD;
  --brand-600: #1802F3;
  --brand-700: #1402CA;
  --brand-800: #1001A2;
  --brand-900: #0c0178;
  --brand-950: #0A0449;
  --brand: #0c0178;
  --brand-ink: #ffffff;
}

Colors that work with #0c0178

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#F5F4FA
Tinted page background
Border#C4C0ED
Hairlines and dividers
Muted text#524B9B
Captions on the surface
Accent#796600
Second voice, not a rival
Dark variant#0D017E
Hover, pressed, headers
Light variant#E8E6FF
Selected rows, tints
Dark surface#151424
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 #0c0178

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#6D7801
Analogous left#013278
Analogous right#470178
Split-complement 1#784701
Split-complement 2#327801
Triadic 1#780C01
Triadic 2#01780C
Tetradic#780132

RGB percentages

Red4.7%
Green0.4%
Blue47.1%

CMYK percentages

Cyan90.0%
Magenta99.2%
Yellow0.0%
Key (black)52.9%

Color previews

#0c0178 text on a black background

contrast 1.29:1

Card sample

#0c0178 text on a white background

contrast 16.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0c0178

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.

#0c0178 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.

#0c0178, answered

What color is #0c0178?

#0c0178 is a deep electric blue, closest to Navy (ΔE2000 1.2). It sits at 246° on the hue wheel with 98% saturation and 24% lightness, which reads as cool.

What is the RGB value of #0c0178?

rgb(12, 1, 120) — 12 red, 1 green and 120 blue out of 255, or 4.7% / 0.4% / 47.1% by channel.

Is #0c0178 a light or a dark color?

It is a dark color. Relative luminance is 0.0146 and perceived brightness is 16%, so white text on it reaches 16.26:1.

Should I use black or white text on #0c0178?

White. It scores 16.26:1 against #0c0178, versus 1.29:1 for black — AAA at any size.

What is the complementary color of #0c0178?

#6D7801 sits directly opposite on the wheel. Softer options are the split-complements #784701 and #327801, which give the same contrast with far less vibration.

What colors go well with #0c0178?

For interface work: #F5F4FA as the surface, #C4C0ED for borders, #524B9B for secondary text, #796600 as an accent and #0D017E for hover and pressed states. For a palette, the analogous pair #013278 and #470178 stays calm, while #6D7801 is the loudest partner.

What is #0c0178 in CMYK for printing?

cmyk(90%, 99%, 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 #0c0178 warm or cool?

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

Work with #0c0178 in the Color Lab