Skip to content

#0c5abc

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

RGB
12, 90, 188
HSL
213°, 88%, 39%
CMYK
94, 52, 0, 26
Luminance
0.1102

At a glance

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

Hex
#0c5abc
Hue
213°
blue
Saturation
88%
electric
Lightness
39%
dark
Brightness
74%
HSV value
Perceived
37%
weighted brightness
Luminance
0.1102
WCAG relative
Temperature
Cool
98/100 cool
Color family
Blue
Tone
Electric
Best ink
White
6.55:1
Closest name
Royal Blue
ΔE2000 8.3
Where it sits
Hue213° of 360°
Saturation88%
Lightness39%
Temperature
Warm ← → Cool98% 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#0c5abc
RGBrgb(12, 90, 188)
HSLhsl(213, 88%, 39%)
CMYKcmyk(94%, 52%, 0%, 26%)
LABlab(39.6 17.1 -57.4)
LCHlch(39.6 59.9 286.6)
OKLCHoklch(0.485 0.170 257.8)
Decimal809660
Display P3color(display-p3 0.047 0.353 0.737)

Copy-ready code

/* CSS */
color: #0c5abc;
background-color: #0c5abc;
/* Tailwind (arbitrary) */
class="text-[#0c5abc] bg-[#0c5abc]"
/* SCSS */
$brand: #0c5abc;
/* SwiftUI */
Color(red: 0.047, green: 0.353, blue: 0.737)
/* Android */
Color.parseColor("#0c5abc")
/* Flutter */
Color(0xFF0C5ABC)
/* Python / OpenCV (BGR) */
(188, 90, 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 #0c5abc · 6.55:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.55:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.20:1
AA fail · AA large pass · AAA fail
Reading the other direction: #0c5abc as text scores 6.55:1 on white and 3.20:1 on black.

Accessibility — WCAG contrast

Aa
#0c5abc on white: 6.55:1
AA ✓ pass · AA-large · AAA
Aa
#0c5abc on black: 3.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1065C0
deuteranopia · #0056BA
tritanopia · #007282

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #0c5abc is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F2F7FD
#E5EEFA
#C4DBF8
#96C1F8
#61A2F5
#2C84F2
#0F6EE6
#0c5abc
#0A4999
#0C386F
#072345
Base = 700Lightest = 50 · #F2F7FDDarkest = 950 · #072345
:root {
  --brand-50: #F2F7FD;
  --brand-100: #E5EEFA;
  --brand-200: #C4DBF8;
  --brand-300: #96C1F8;
  --brand-400: #61A2F5;
  --brand-500: #2C84F2;
  --brand-600: #0F6EE6;
  --brand-700: #0c5abc;
  --brand-800: #0A4999;
  --brand-900: #0C386F;
  --brand-950: #072345;
  --brand: #0c5abc;
  --brand-ink: #ffffff;
}

Colors that work with #0c5abc

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#F4F7FA
Tinted page background
Border#C0D4ED
Hairlines and dividers
Muted text#4B6E9B
Captions on the surface
Accent#C04008
Second voice, not a rival
Dark variant#083978
Hover, pressed, headers
Light variant#E7F1FD
Selected rows, tints
Dark surface#141B24
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 #0c5abc

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
  • 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#BC6E0C
Analogous left#0CB2BC
Analogous right#160CBC
Split-complement 1#BC160C
Split-complement 2#B2BC0C
Triadic 1#BC0C5A
Triadic 2#5ABC0C
Tetradic#BC0CB2

RGB percentages

Red4.7%
Green35.3%
Blue73.7%

CMYK percentages

Cyan93.6%
Magenta52.1%
Yellow0.0%
Key (black)26.3%

Color previews

#0c5abc text on a black background

contrast 3.20:1

Card sample

#0c5abc text on a white background

contrast 6.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(12, 90, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 90, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0c5abc;
background: linear-gradient(135deg, #0c5abc, #330CBC);

Monochromatic scale

Palettes built from #0c5abc

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.

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

#0c5abc, answered

What color is #0c5abc?

#0c5abc is a dark electric blue, closest to Royal Blue (ΔE2000 8.3). It sits at 213° on the hue wheel with 88% saturation and 39% lightness, which reads as cool.

What is the RGB value of #0c5abc?

rgb(12, 90, 188) — 12 red, 90 green and 188 blue out of 255, or 4.7% / 35.3% / 73.7% by channel.

Is #0c5abc a light or a dark color?

It is a dark color. Relative luminance is 0.1102 and perceived brightness is 37%, so white text on it reaches 6.55:1.

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

White. It scores 6.55:1 against #0c5abc, versus 3.20:1 for black — AA at any size.

What is the complementary color of #0c5abc?

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

What colors go well with #0c5abc?

For interface work: #F4F7FA as the surface, #C0D4ED for borders, #4B6E9B for secondary text, #C04008 as an accent and #083978 for hover and pressed states. For a palette, the analogous pair #0CB2BC and #160CBC stays calm, while #BC6E0C is the loudest partner.

What is #0c5abc in CMYK for printing?

cmyk(94%, 52%, 0%, 26%). 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 #0c5abc warm or cool?

Cool — it scores 98 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #0C19BC; nudged cooler, #0951A6.

Work with #0c5abc in the Color Lab