Skip to content

#0b2ecf

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

RGB
11, 46, 207
HSL
229°, 90%, 43%
CMYK
95, 78, 0, 19
Luminance
0.0653

At a glance

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

Hex
#0b2ecf
Hue
229°
blue
Saturation
90%
electric
Lightness
43%
dark
Brightness
81%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0653
WCAG relative
Temperature
Cool
89/100 cool
Color family
Blue
Tone
Electric
Best ink
White
9.11:1
Closest name
Medium Blue
ΔE2000 6.1
Where it sits
Hue229° of 360°
Saturation90%
Lightness43%
Temperature
Warm ← → Cool89% 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#0b2ecf
RGBrgb(11, 46, 207)
HSLhsl(229, 90%, 43%)
CMYKcmyk(95%, 78%, 0%, 19%)
LABlab(30.7 52.1 -83.1)
LCHlch(30.7 98.1 302.1)
OKLCHoklch(0.424 0.242 264.9)
Decimal732879
Display P3color(display-p3 0.043 0.180 0.812)

Copy-ready code

/* CSS */
color: #0b2ecf;
background-color: #0b2ecf;
/* Tailwind (arbitrary) */
class="text-[#0b2ecf] bg-[#0b2ecf]"
/* SCSS */
$brand: #0b2ecf;
/* SwiftUI */
Color(red: 0.043, green: 0.180, blue: 0.812)
/* Android */
Color.parseColor("#0b2ecf")
/* Flutter */
Color(0xFF0B2ECF)
/* Python / OpenCV (BGR) */
(207, 46, 11)

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 #0b2ecf · 9.11:1
Use #ffffffAAA at every size.
Aa
White text · 9.11:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.31:1
AA fail · AA large fail · AAA fail
Reading the other direction: #0b2ecf as text scores 9.11:1 on white and 2.31:1 on black.

Accessibility — WCAG contrast

Aa
#0b2ecf on white: 9.11:1
AA ✓ pass · AA-large · AAA
Aa
#0b2ecf on black: 2.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0052D4
deuteranopia · #003ECC
tritanopia · #00607E

Color scale — 50 to 950

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

#F2F4FD
#E5E9FB
#C3CDF8
#94A6F9
#5F7AF7
#2A4EF4
#0C34E8
#0b2ecf
#08229B
#0B1D70
#071246
Base = 700Lightest = 50 · #F2F4FDDarkest = 950 · #071246
:root {
  --brand-50: #F2F4FD;
  --brand-100: #E5E9FB;
  --brand-200: #C3CDF8;
  --brand-300: #94A6F9;
  --brand-400: #5F7AF7;
  --brand-500: #2A4EF4;
  --brand-600: #0C34E8;
  --brand-700: #0b2ecf;
  --brand-800: #08229B;
  --brand-900: #0B1D70;
  --brand-950: #071246;
  --brand: #0b2ecf;
  --brand-ink: #ffffff;
}

Colors that work with #0b2ecf

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#C0C8ED
Hairlines and dividers
Muted text#4B599B
Captions on the surface
Accent#C57407
Second voice, not a rival
Dark variant#061B79
Hover, pressed, headers
Light variant#E7EBFE
Selected rows, tints
Dark surface#141724
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 #0b2ecf

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#CFAC0B
Analogous left#0B90CF
Analogous right#4A0BCF
Split-complement 1#CF4A0B
Split-complement 2#90CF0B
Triadic 1#CF0B2E
Triadic 2#2ECF0B
Tetradic#CF0B90

RGB percentages

Red4.3%
Green18.0%
Blue81.2%

CMYK percentages

Cyan94.7%
Magenta77.8%
Yellow0.0%
Key (black)18.8%

Color previews

#0b2ecf text on a black background

contrast 2.31:1

Card sample

#0b2ecf text on a white background

contrast 9.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(11, 46, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(11, 46, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0b2ecf;
background: linear-gradient(135deg, #0b2ecf, #6B0BCF);

Monochromatic scale

Palettes built from #0b2ecf

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.

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

#0b2ecf, answered

What color is #0b2ecf?

#0b2ecf is a dark electric blue, closest to Medium Blue (ΔE2000 6.1). It sits at 229° on the hue wheel with 90% saturation and 43% lightness, which reads as cool.

What is the RGB value of #0b2ecf?

rgb(11, 46, 207) — 11 red, 46 green and 207 blue out of 255, or 4.3% / 18% / 81.2% by channel.

Is #0b2ecf a light or a dark color?

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

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

White. It scores 9.11:1 against #0b2ecf, versus 2.31:1 for black — AAA at any size.

What is the complementary color of #0b2ecf?

#CFAC0B sits directly opposite on the wheel. Softer options are the split-complements #CF4A0B and #90CF0B, which give the same contrast with far less vibration.

What colors go well with #0b2ecf?

For interface work: #F4F5FA as the surface, #C0C8ED for borders, #4B599B for secondary text, #C57407 as an accent and #061B79 for hover and pressed states. For a palette, the analogous pair #0B90CF and #4A0BCF stays calm, while #CFAC0B is the loudest partner.

What is #0b2ecf in CMYK for printing?

cmyk(95%, 78%, 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 #0b2ecf warm or cool?

Cool — it scores 89 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #300BCF; nudged cooler, #094AD1.

Work with #0b2ecf in the Color Lab