Skip to content

#0cb2f3

a balanced, electric cyan · cool · closest name: Deep Sky Blue

RGB
12, 178, 243
HSL
197°, 91%, 50%
CMYK
95, 27, 0, 5
Luminance
0.3839

At a glance

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

Hex
#0cb2f3
Hue
197°
cyan
Saturation
91%
electric
Lightness
50%
balanced
Brightness
95%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3839
WCAG relative
Temperature
Cool
95/100 cool
Color family
Cyan
Tone
Electric
Best ink
Black
8.68:1
Closest name
Deep Sky Blue
ΔE2000 3.6
Where it sits
Hue197° of 360°
Saturation91%
Lightness50%
Temperature
Warm ← → Cool95% 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#0cb2f3
RGBrgb(12, 178, 243)
HSLhsl(197, 91%, 50%)
CMYKcmyk(95%, 27%, 0%, 5%)
LABlab(68.3 -14.7 -42.7)
LCHlch(68.3 45.1 251.0)
OKLCHoklch(0.720 0.149 234.1)
Decimal832243
Display P3color(display-p3 0.047 0.698 0.953)

Copy-ready code

/* CSS */
color: #0cb2f3;
background-color: #0cb2f3;
/* Tailwind (arbitrary) */
class="text-[#0cb2f3] bg-[#0cb2f3]"
/* SCSS */
$brand: #0cb2f3;
/* SwiftUI */
Color(red: 0.047, green: 0.698, blue: 0.953)
/* Android */
Color.parseColor("#0cb2f3")
/* Flutter */
Color(0xFF0CB2F3)
/* Python / OpenCV (BGR) */
(243, 178, 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#000000 on #0cb2f3 · 8.68:1
Use #000000AAA at every size.
Aa
White text · 2.42:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.68:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #0cb2f3 as text scores 2.42:1 on white and 8.68:1 on black.

Accessibility — WCAG contrast

Aa
#0cb2f3 on white: 2.42:1
AA ✗ fail · AA-large · AAA
Aa
#0cb2f3 on black: 8.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #92B1F6
deuteranopia · #769EF2
tritanopia · #00C3C8

Color scale — 50 to 950

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

#F2FAFD
#E5F5FB
#C3EAF9
#94DDFA
#5FCCF7
#29BBF4
#0cb2f3
#0A8EC2
#08729C
#0A5370
#063446
Base = 600Lightest = 50 · #F2FAFDDarkest = 950 · #063446
:root {
  --brand-50: #F2FAFD;
  --brand-100: #E5F5FB;
  --brand-200: #C3EAF9;
  --brand-300: #94DDFA;
  --brand-400: #5FCCF7;
  --brand-500: #29BBF4;
  --brand-600: #0cb2f3;
  --brand-700: #0A8EC2;
  --brand-800: #08729C;
  --brand-900: #0A5370;
  --brand-950: #063446;
  --brand: #0cb2f3;
  --brand-ink: #000000;
}

Colors that work with #0cb2f3

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F4F9FA
Tinted page background
Border#C0E0ED
Hairlines and dividers
Muted text#4B849B
Captions on the surface
Accent#F80F07
Second voice, not a rival
Dark variant#06597A
Hover, pressed, headers
Light variant#E7F7FE
Selected rows, tints
Dark surface#142024
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 #0cb2f3

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • Thin strokes and 1px borders — they disappear on light UI
  • 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#F34D0C
Analogous left#0CF3C1
Analogous right#0C3EF3
Split-complement 1#F30C3E
Split-complement 2#F3C10C
Triadic 1#F30CB2
Triadic 2#B2F30C
Tetradic#C10CF3

RGB percentages

Red4.7%
Green69.8%
Blue95.3%

CMYK percentages

Cyan95.1%
Magenta26.7%
Yellow0.0%
Key (black)4.7%

Color previews

#0cb2f3 text on a black background

contrast 8.68:1

Card sample

#0cb2f3 text on a white background

contrast 2.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0cb2f3

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.

#0cb2f3 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyTravelHealthcareMedia
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#0cb2f3, answered

What color is #0cb2f3?

#0cb2f3 is a balanced electric cyan, closest to Deep Sky Blue (ΔE2000 3.6). It sits at 197° on the hue wheel with 91% saturation and 50% lightness, which reads as cool.

What is the RGB value of #0cb2f3?

rgb(12, 178, 243) — 12 red, 178 green and 243 blue out of 255, or 4.7% / 69.8% / 95.3% by channel.

Is #0cb2f3 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3839 and perceived brightness is 62%, so black text on it reaches 8.68:1.

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

Black. It scores 8.68:1 against #0cb2f3, versus 2.42:1 for white — AAA at any size.

What is the complementary color of #0cb2f3?

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

What colors go well with #0cb2f3?

For interface work: #F4F9FA as the surface, #C0E0ED for borders, #4B849B for secondary text, #F80F07 as an accent and #06597A for hover and pressed states. For a palette, the analogous pair #0CF3C1 and #0C3EF3 stays calm, while #F34D0C is the loudest partner.

What is #0cb2f3 in CMYK for printing?

cmyk(95%, 27%, 0%, 5%). 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 #0cb2f3 warm or cool?

Cool — it scores 95 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #0CF3DF; nudged cooler, #0999F6.

Work with #0cb2f3 in the Color Lab