Skip to content

#0c48cf

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

RGB
12, 72, 207
HSL
222°, 89%, 43%
CMYK
94, 65, 0, 19
Luminance
0.0922

At a glance

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

Hex
#0c48cf
Hue
222°
blue
Saturation
89%
electric
Lightness
43%
dark
Brightness
81%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0922
WCAG relative
Temperature
Cool
94/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.39:1
Closest name
Slate Blue
ΔE2000 10.5
Where it sits
Hue222° of 360°
Saturation89%
Lightness43%
Temperature
Warm ← → Cool94% 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#0c48cf
RGBrgb(12, 72, 207)
HSLhsl(222, 89%, 43%)
CMYKcmyk(94%, 65%, 0%, 19%)
LABlab(36.4 36.5 -73.7)
LCHlch(36.4 82.2 296.3)
OKLCHoklch(0.466 0.215 263.0)
Decimal805071
Display P3color(display-p3 0.047 0.282 0.812)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0c48cf on white: 7.39:1
AA ✓ pass · AA-large · AAA
Aa
#0c48cf on black: 2.84:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005FD3
deuteranopia · #004DCD
tritanopia · #006D85

Color scale — 50 to 950

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

#F2F5FD
#E5ECFB
#C4D4F8
#95B4F9
#608EF6
#2B69F3
#0D51E7
#0c48cf
#09369A
#0B2A6F
#071A46
Base = 700Lightest = 50 · #F2F5FDDarkest = 950 · #071A46
:root {
  --brand-50: #F2F5FD;
  --brand-100: #E5ECFB;
  --brand-200: #C4D4F8;
  --brand-300: #95B4F9;
  --brand-400: #608EF6;
  --brand-500: #2B69F3;
  --brand-600: #0D51E7;
  --brand-700: #0c48cf;
  --brand-800: #09369A;
  --brand-900: #0B2A6F;
  --brand-950: #071A46;
  --brand: #0c48cf;
  --brand-ink: #ffffff;
}

Colors that work with #0c48cf

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#F4F6FA
Tinted page background
Border#C0CEED
Hairlines and dividers
Muted text#4B639B
Captions on the surface
Accent#D36208
Second voice, not a rival
Dark variant#072A78
Hover, pressed, headers
Light variant#E7EEFE
Selected rows, tints
Dark surface#141924
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 #0c48cf

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#CF930C
Analogous left#0CA9CF
Analogous right#310CCF
Split-complement 1#CF310C
Split-complement 2#A9CF0C
Triadic 1#CF0C48
Triadic 2#48CF0C
Tetradic#CF0CA9

RGB percentages

Red4.7%
Green28.2%
Blue81.2%

CMYK percentages

Cyan94.2%
Magenta65.2%
Yellow0.0%
Key (black)18.8%

Color previews

#0c48cf text on a black background

contrast 2.84:1

Card sample

#0c48cf text on a white background

contrast 7.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(12, 72, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 72, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0c48cf;
background: linear-gradient(135deg, #0c48cf, #520CCF);

Monochromatic scale

Palettes built from #0c48cf

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.

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

#0c48cf, answered

What color is #0c48cf?

#0c48cf is a dark electric blue, closest to Slate Blue (ΔE2000 10.5). It sits at 222° on the hue wheel with 89% saturation and 43% lightness, which reads as cool.

What is the RGB value of #0c48cf?

rgb(12, 72, 207) — 12 red, 72 green and 207 blue out of 255, or 4.7% / 28.2% / 81.2% by channel.

Is #0c48cf a light or a dark color?

It is a dark color. Relative luminance is 0.0922 and perceived brightness is 35%, so white text on it reaches 7.39:1.

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

White. It scores 7.39:1 against #0c48cf, versus 2.84:1 for black — AAA at any size.

What is the complementary color of #0c48cf?

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

What colors go well with #0c48cf?

For interface work: #F4F6FA as the surface, #C0CEED for borders, #4B639B for secondary text, #D36208 as an accent and #072A78 for hover and pressed states. For a palette, the analogous pair #0CA9CF and #310CCF stays calm, while #CF930C is the loudest partner.

What is #0c48cf in CMYK for printing?

cmyk(94%, 65%, 0%, 19%). 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 #0c48cf warm or cool?

Cool — it scores 94 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #170CCF; nudged cooler, #094DB9.

Work with #0c48cf in the Color Lab