Skip to content

#2d7fbc

a balanced, vivid blue · cool · closest name: Steel Blue

RGB
45, 127, 188
HSL
206°, 61%, 46%
CMYK
76, 32, 0, 26
Luminance
0.1937

At a glance

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

Hex
#2d7fbc
Hue
206°
blue
Saturation
61%
vivid
Lightness
46%
balanced
Brightness
74%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1937
WCAG relative
Temperature
Cool
98/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
4.87:1
Closest name
Steel Blue
ΔE2000 2.4
Where it sits
Hue206° of 360°
Saturation61%
Lightness46%
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#2d7fbc
RGBrgb(45, 127, 188)
HSLhsl(206, 61%, 46%)
CMYKcmyk(76%, 32%, 0%, 26%)
LABlab(51.1 -3.5 -39.0)
LCHlch(51.1 39.1 264.9)
OKLCHoklch(0.576 0.122 245.0)
Decimal2981820
Display P3color(display-p3 0.176 0.498 0.737)

Copy-ready code

/* CSS */
color: #2d7fbc;
background-color: #2d7fbc;
/* Tailwind (arbitrary) */
class="text-[#2d7fbc] bg-[#2d7fbc]"
/* SCSS */
$brand: #2d7fbc;
/* SwiftUI */
Color(red: 0.176, green: 0.498, blue: 0.737)
/* Android */
Color.parseColor("#2d7fbc")
/* Flutter */
Color(0xFF2D7FBC)
/* Python / OpenCV (BGR) */
(188, 127, 45)

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 #2d7fbc · 4.87:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.31:1
AA fail · AA large pass · AAA fail
Aa
Black text · 4.87:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #2d7fbc as text scores 4.31:1 on white and 4.87:1 on black.

Accessibility — WCAG contrast

Aa
#2d7fbc on white: 4.31:1
AA ✗ fail · AA-large · AAA
Aa
#2d7fbc on black: 4.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6381BF
deuteranopia · #4F74BB
tritanopia · #008E95

Color scale — 50 to 950

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

#F4F8FB
#E8F1F7
#CCE0F0
#A4CCE9
#77B2DF
#4A99D4
#2d7fbc
#276FA5
#1F5984
#1B4260
#11293C
Base = 600Lightest = 50 · #F4F8FBDarkest = 950 · #11293C
:root {
  --brand-50: #F4F8FB;
  --brand-100: #E8F1F7;
  --brand-200: #CCE0F0;
  --brand-300: #A4CCE9;
  --brand-400: #77B2DF;
  --brand-500: #4A99D4;
  --brand-600: #2d7fbc;
  --brand-700: #276FA5;
  --brand-800: #1F5984;
  --brand-900: #1B4260;
  --brand-950: #11293C;
  --brand: #2d7fbc;
  --brand-ink: #000000;
}

Colors that work with #2d7fbc

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#F4F8FA
Tinted page background
Border#C0D9ED
Hairlines and dividers
Muted text#4B799B
Captions on the surface
Accent#C14328
Second voice, not a rival
Dark variant#194567
Hover, pressed, headers
Light variant#EAF3FA
Selected rows, tints
Dark surface#141D24
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 #2d7fbc

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

Works well for
  • Headings from 24px up on white
  • 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
  • Small text on white — under 4.5:1
  • 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#BC6A2D
Analogous left#2DBCB2
Analogous right#2D37BC
Split-complement 1#BC2D37
Split-complement 2#BCB22D
Triadic 1#BC2D7F
Triadic 2#7FBC2D
Tetradic#B22DBC

RGB percentages

Red17.6%
Green49.8%
Blue73.7%

CMYK percentages

Cyan76.1%
Magenta32.4%
Yellow0.0%
Key (black)26.3%

Color previews

#2d7fbc text on a black background

contrast 4.87:1

Card sample

#2d7fbc text on a white background

contrast 4.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2d7fbc;
Background color
Panel with #2d7fbc background
background-color: #2d7fbc;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 127, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 127, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d7fbc;
background: linear-gradient(135deg, #2d7fbc, #3A2DBC);

Monochromatic scale

Palettes built from #2d7fbc

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.

#2d7fbc 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

Converts to four-color process without much drama. Proof it anyway.

#2d7fbc, answered

What color is #2d7fbc?

#2d7fbc is a balanced vivid blue, closest to Steel Blue (ΔE2000 2.4). It sits at 206° on the hue wheel with 61% saturation and 46% lightness, which reads as cool.

What is the RGB value of #2d7fbc?

rgb(45, 127, 188) — 45 red, 127 green and 188 blue out of 255, or 17.6% / 49.8% / 73.7% by channel.

Is #2d7fbc a light or a dark color?

It is a mid-tone. Relative luminance is 0.1937 and perceived brightness is 47%, so black text on it reaches 4.87:1.

Should I use black or white text on #2d7fbc?

Black. It scores 4.87:1 against #2d7fbc, versus 4.31:1 for white — AA at any size.

What is the complementary color of #2d7fbc?

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

What colors go well with #2d7fbc?

For interface work: #F4F8FA as the surface, #C0D9ED for borders, #4B799B for secondary text, #C14328 as an accent and #194567 for hover and pressed states. For a palette, the analogous pair #2DBCB2 and #2D37BC stays calm, while #BC6A2D is the loudest partner.

What is #2d7fbc in CMYK for printing?

cmyk(76%, 32%, 0%, 26%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #2d7fbc 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 #2D4BBC; nudged cooler, #266AAA.

Work with #2d7fbc in the Color Lab