Skip to content

#0c577f

a dark, electric blue · cool · closest name: Royal Blue

RGB
12, 87, 127
HSL
201°, 83%, 27%
CMYK
91, 32, 0, 50
Luminance
0.0843

At a glance

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

Hex
#0c577f
Hue
201°
blue
Saturation
83%
electric
Lightness
27%
dark
Brightness
50%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0843
WCAG relative
Temperature
Cool
96/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.82:1
Closest name
Royal Blue
ΔE2000 15.2
Where it sits
Hue201° of 360°
Saturation83%
Lightness27%
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#0c577f
RGBrgb(12, 87, 127)
HSLhsl(201, 83%, 27%)
CMYKcmyk(91%, 32%, 0%, 50%)
LABlab(34.9 -5.8 -28.4)
LCHlch(34.9 29.0 258.5)
OKLCHoklch(0.435 0.094 239.4)
Decimal808831
Display P3color(display-p3 0.047 0.341 0.498)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0c577f on white: 7.82:1
AA ✓ pass · AA-large · AAA
Aa
#0c577f on black: 2.69:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #445781
deuteranopia · #354D7E
tritanopia · #006165

Color scale — 50 to 950

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

#F2F9FC
#E6F3FA
#C6E5F6
#99D5F5
#65C0F0
#32ABEC
#1599E0
#1280BA
#0E6695
#0c577f
#092F43
Base = 900Lightest = 50 · #F2F9FCDarkest = 950 · #092F43
:root {
  --brand-50: #F2F9FC;
  --brand-100: #E6F3FA;
  --brand-200: #C6E5F6;
  --brand-300: #99D5F5;
  --brand-400: #65C0F0;
  --brand-500: #32ABEC;
  --brand-600: #1599E0;
  --brand-700: #1280BA;
  --brand-800: #0E6695;
  --brand-900: #0c577f;
  --brand-950: #092F43;
  --brand: #0c577f;
  --brand-ink: #ffffff;
}

Colors that work with #0c577f

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#C0DDED
Hairlines and dividers
Muted text#4B7F9B
Captions on the surface
Accent#821509
Second voice, not a rival
Dark variant#0B5074
Hover, pressed, headers
Light variant#E8F5FD
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 #0c577f

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#7F340C
Analogous left#0C7F6E
Analogous right#0C1E7F
Split-complement 1#7F0C1E
Split-complement 2#7F6E0C
Triadic 1#7F0C57
Triadic 2#577F0C
Tetradic#6E0C7F

RGB percentages

Red4.7%
Green34.1%
Blue49.8%

CMYK percentages

Cyan90.6%
Magenta31.5%
Yellow0.0%
Key (black)50.2%

Color previews

#0c577f text on a black background

contrast 2.69:1

Card sample

#0c577f text on a white background

contrast 7.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0c577f

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.

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

#0c577f, answered

What color is #0c577f?

#0c577f is a dark electric blue, closest to Royal Blue (ΔE2000 15.2). It sits at 201° on the hue wheel with 83% saturation and 27% lightness, which reads as cool.

What is the RGB value of #0c577f?

rgb(12, 87, 127) — 12 red, 87 green and 127 blue out of 255, or 4.7% / 34.1% / 49.8% by channel.

Is #0c577f a light or a dark color?

It is a dark color. Relative luminance is 0.0843 and perceived brightness is 31%, so white text on it reaches 7.82:1.

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

White. It scores 7.82:1 against #0c577f, versus 2.69:1 for black — AAA at any size.

What is the complementary color of #0c577f?

#7F340C sits directly opposite on the wheel. Softer options are the split-complements #7F0C1E and #7F6E0C, which give the same contrast with far less vibration.

What colors go well with #0c577f?

For interface work: #F4F8FA as the surface, #C0DDED for borders, #4B7F9B for secondary text, #821509 as an accent and #0B5074 for hover and pressed states. For a palette, the analogous pair #0C7F6E and #0C1E7F stays calm, while #7F340C is the loudest partner.

What is #0c577f in CMYK for printing?

cmyk(91%, 32%, 0%, 50%). 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 #0c577f 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 #0C7F7D; nudged cooler, #0B4A81.

Work with #0c577f in the Color Lab