Skip to content

#0c2bdf

a balanced, electric blue · cool · closest name: Blue

RGB
12, 43, 223
HSL
231°, 90%, 46%
CMYK
95, 81, 0, 13
Luminance
0.0713

At a glance

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

Hex
#0c2bdf
Hue
231°
blue
Saturation
90%
electric
Lightness
46%
balanced
Brightness
87%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0713
WCAG relative
Temperature
Cool
88/100 cool
Color family
Blue
Tone
Electric
Best ink
White
8.65:1
Closest name
Blue
ΔE2000 4.6
Where it sits
Hue231° of 360°
Saturation90%
Lightness46%
Temperature
Warm ← → Cool88% 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#0c2bdf
RGBrgb(12, 43, 223)
HSLhsl(231, 90%, 46%)
CMYKcmyk(95%, 81%, 0%, 13%)
LABlab(32.1 58.8 -90.0)
LCHlch(32.1 107.5 303.1)
OKLCHoklch(0.440 0.262 265.0)
Decimal797663
Display P3color(display-p3 0.047 0.169 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0c2bdf on white: 8.65:1
AA ✓ pass · AA-large · AAA
Aa
#0c2bdf on black: 2.43:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0056E4
deuteranopia · #0041DC
tritanopia · #006587

Color scale — 50 to 950

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

#F2F3FD
#E5E8FB
#C3CBF8
#95A3F9
#5F75F6
#2A48F4
#0c2bdf
#0A25C2
#081E9B
#0B1970
#071046
Base = 600Lightest = 50 · #F2F3FDDarkest = 950 · #071046
:root {
  --brand-50: #F2F3FD;
  --brand-100: #E5E8FB;
  --brand-200: #C3CBF8;
  --brand-300: #95A3F9;
  --brand-400: #5F75F6;
  --brand-500: #2A48F4;
  --brand-600: #0c2bdf;
  --brand-700: #0A25C2;
  --brand-800: #081E9B;
  --brand-900: #0B1970;
  --brand-950: #071046;
  --brand: #0c2bdf;
  --brand-ink: #ffffff;
}

Colors that work with #0c2bdf

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#F4F5FA
Tinted page background
Border#C0C6ED
Hairlines and dividers
Muted text#4B569B
Captions on the surface
Accent#C67906
Second voice, not a rival
Dark variant#071779
Hover, pressed, headers
Light variant#E7EAFE
Selected rows, tints
Dark surface#141624
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 #0c2bdf

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
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • 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#DFC00C
Analogous left#0C95DF
Analogous right#570CDF
Split-complement 1#DF570C
Split-complement 2#95DF0C
Triadic 1#DF0C2B
Triadic 2#2BDF0C
Tetradic#DF0C95

RGB percentages

Red4.7%
Green16.9%
Blue87.5%

CMYK percentages

Cyan94.6%
Magenta80.7%
Yellow0.0%
Key (black)12.5%

Color previews

#0c2bdf text on a black background

contrast 2.43:1

Card sample

#0c2bdf text on a white background

contrast 8.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(12, 43, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 43, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0c2bdf;
background: linear-gradient(135deg, #0c2bdf, #7A0CDF);

Monochromatic scale

Palettes built from #0c2bdf

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.

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

#0c2bdf, answered

What color is #0c2bdf?

#0c2bdf is a balanced electric blue, closest to Blue (ΔE2000 4.6). It sits at 231° on the hue wheel with 90% saturation and 46% lightness, which reads as cool.

What is the RGB value of #0c2bdf?

rgb(12, 43, 223) — 12 red, 43 green and 223 blue out of 255, or 4.7% / 16.9% / 87.5% by channel.

Is #0c2bdf a light or a dark color?

It is a dark color. Relative luminance is 0.0713 and perceived brightness is 32%, so white text on it reaches 8.65:1.

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

White. It scores 8.65:1 against #0c2bdf, versus 2.43:1 for black — AAA at any size.

What is the complementary color of #0c2bdf?

#DFC00C sits directly opposite on the wheel. Softer options are the split-complements #DF570C and #95DF0C, which give the same contrast with far less vibration.

What colors go well with #0c2bdf?

For interface work: #F4F5FA as the surface, #C0C6ED for borders, #4B569B for secondary text, #C67906 as an accent and #071779 for hover and pressed states. For a palette, the analogous pair #0C95DF and #570CDF stays calm, while #DFC00C is the loudest partner.

What is #0c2bdf in CMYK for printing?

cmyk(95%, 81%, 0%, 13%). 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 #0c2bdf warm or cool?

Cool — it scores 88 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #3A0CDF; nudged cooler, #0A4BE1.

Work with #0c2bdf in the Color Lab