Skip to content

#2a7bbc

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

RGB
42, 123, 188
HSL
207°, 64%, 45%
CMYK
78, 35, 0, 26
Luminance
0.1829

At a glance

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

Hex
#2a7bbc
Hue
207°
blue
Saturation
64%
vivid
Lightness
45%
balanced
Brightness
74%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1829
WCAG relative
Temperature
Cool
99/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
4.66:1
Closest name
Steel Blue
ΔE2000 3.4
Where it sits
Hue207° of 360°
Saturation64%
Lightness45%
Temperature
Warm ← → Cool99% 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#2a7bbc
RGBrgb(42, 123, 188)
HSLhsl(207, 64%, 45%)
CMYKcmyk(78%, 35%, 0%, 26%)
LABlab(49.8 -1.5 -41.0)
LCHlch(49.8 41.0 267.9)
OKLCHoklch(0.566 0.127 247.0)
Decimal2784188
Display P3color(display-p3 0.165 0.482 0.737)

Copy-ready code

/* CSS */
color: #2a7bbc;
background-color: #2a7bbc;
/* Tailwind (arbitrary) */
class="text-[#2a7bbc] bg-[#2a7bbc]"
/* SCSS */
$brand: #2a7bbc;
/* SwiftUI */
Color(red: 0.165, green: 0.482, blue: 0.737)
/* Android */
Color.parseColor("#2a7bbc")
/* Flutter */
Color(0xFF2A7BBC)
/* Python / OpenCV (BGR) */
(188, 123, 42)

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

Accessibility — WCAG contrast

Aa
#2a7bbc on white: 4.51:1
AA ✓ pass · AA-large · AAA
Aa
#2a7bbc on black: 4.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5D7EBF
deuteranopia · #4870BB
tritanopia · #008B93

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2a7bbc 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
#CBE0F0
#A3CBEB
#75B1E0
#4897D6
#2a7bbc
#256DA7
#1E5785
#194161
#10293D
Base = 600Lightest = 50 · #F4F8FBDarkest = 950 · #10293D
:root {
  --brand-50: #F4F8FB;
  --brand-100: #E8F1F7;
  --brand-200: #CBE0F0;
  --brand-300: #A3CBEB;
  --brand-400: #75B1E0;
  --brand-500: #4897D6;
  --brand-600: #2a7bbc;
  --brand-700: #256DA7;
  --brand-800: #1E5785;
  --brand-900: #194161;
  --brand-950: #10293D;
  --brand: #2a7bbc;
  --brand-ink: #000000;
}

Colors that work with #2a7bbc

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#4B779B
Captions on the surface
Accent#C14425
Second voice, not a rival
Dark variant#174468
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 #2a7bbc

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

Works well for
  • Body text and links 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
  • 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#BC6B2A
Analogous left#2ABCB4
Analogous right#2A32BC
Split-complement 1#BC2A32
Split-complement 2#BCB42A
Triadic 1#BC2A7B
Triadic 2#7BBC2A
Tetradic#B42ABC

RGB percentages

Red16.5%
Green48.2%
Blue73.7%

CMYK percentages

Cyan77.7%
Magenta34.6%
Yellow0.0%
Key (black)26.3%

Color previews

#2a7bbc text on a black background

contrast 4.66:1

Card sample

#2a7bbc text on a white background

contrast 4.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2a7bbc

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.

#2a7bbc 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.

#2a7bbc, answered

What color is #2a7bbc?

#2a7bbc is a balanced vivid blue, closest to Steel Blue (ΔE2000 3.4). It sits at 207° on the hue wheel with 64% saturation and 45% lightness, which reads as cool.

What is the RGB value of #2a7bbc?

rgb(42, 123, 188) — 42 red, 123 green and 188 blue out of 255, or 16.5% / 48.2% / 73.7% by channel.

Is #2a7bbc a light or a dark color?

It is a mid-tone. Relative luminance is 0.1829 and perceived brightness is 45%, so black text on it reaches 4.66:1.

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

Black. It scores 4.66:1 against #2a7bbc, versus 4.51:1 for white — AA at any size.

What is the complementary color of #2a7bbc?

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

What colors go well with #2a7bbc?

For interface work: #F4F8FA as the surface, #C0D9ED for borders, #4B779B for secondary text, #C14425 as an accent and #174468 for hover and pressed states. For a palette, the analogous pair #2ABCB4 and #2A32BC stays calm, while #BC6B2A is the loudest partner.

What is #2a7bbc in CMYK for printing?

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

Is #2a7bbc warm or cool?

Cool — it scores 99 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2A45BC; nudged cooler, #2367A9.

Work with #2a7bbc in the Color Lab