Skip to content

#2a77cc

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

RGB
42, 119, 204
HSL
212°, 66%, 48%
CMYK
79, 42, 0, 20
Luminance
0.1805

At a glance

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

Hex
#2a77cc
Hue
212°
blue
Saturation
66%
vivid
Lightness
48%
balanced
Brightness
80%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1805
WCAG relative
Temperature
Cool
99/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
4.61:1
Closest name
Steel Blue
ΔE2000 5
Where it sits
Hue212° of 360°
Saturation66%
Lightness48%
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#2a77cc
RGBrgb(42, 119, 204)
HSLhsl(212, 66%, 48%)
CMYKcmyk(79%, 42%, 0%, 20%)
LABlab(49.5 7.0 -50.6)
LCHlch(49.5 51.1 277.8)
OKLCHoklch(0.567 0.151 253.9)
Decimal2783180
Display P3color(display-p3 0.165 0.467 0.800)

Copy-ready code

/* CSS */
color: #2a77cc;
background-color: #2a77cc;
/* Tailwind (arbitrary) */
class="text-[#2a77cc] bg-[#2a77cc]"
/* SCSS */
$brand: #2a77cc;
/* SwiftUI */
Color(red: 0.165, green: 0.467, blue: 0.800)
/* Android */
Color.parseColor("#2a77cc")
/* Flutter */
Color(0xFF2A77CC)
/* Python / OpenCV (BGR) */
(204, 119, 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 #2a77cc · 4.61:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.56:1
AA pass · AA large pass · AAA fail
Aa
Black text · 4.61:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #2a77cc as text scores 4.56:1 on white and 4.61:1 on black.

Accessibility — WCAG contrast

Aa
#2a77cc on white: 4.56:1
AA ✓ pass · AA-large · AAA
Aa
#2a77cc on black: 4.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4D7ECF
deuteranopia · #306FCA
tritanopia · #008B97

Color scale — 50 to 950

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

#F3F7FB
#E8EFF8
#CBDDF1
#A2C5EC
#73A8E2
#458BD9
#2a77cc
#2363A9
#1C4F87
#183B62
#0F253D
Base = 600Lightest = 50 · #F3F7FBDarkest = 950 · #0F253D
:root {
  --brand-50: #F3F7FB;
  --brand-100: #E8EFF8;
  --brand-200: #CBDDF1;
  --brand-300: #A2C5EC;
  --brand-400: #73A8E2;
  --brand-500: #458BD9;
  --brand-600: #2a77cc;
  --brand-700: #2363A9;
  --brand-800: #1C4F87;
  --brand-900: #183B62;
  --brand-950: #0F253D;
  --brand: #2a77cc;
  --brand-ink: #000000;
}

Colors that work with #2a77cc

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#F4F7FA
Tinted page background
Border#C0D5ED
Hairlines and dividers
Muted text#4B719B
Captions on the surface
Accent#D15425
Second voice, not a rival
Dark variant#163E6A
Hover, pressed, headers
Light variant#EAF2FB
Selected rows, tints
Dark surface#141C24
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 #2a77cc

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#CC7F2A
Analogous left#2AC8CC
Analogous right#2E2ACC
Split-complement 1#CC2E2A
Split-complement 2#C8CC2A
Triadic 1#CC2A77
Triadic 2#77CC2A
Tetradic#CC2AC8

RGB percentages

Red16.5%
Green46.7%
Blue80.0%

CMYK percentages

Cyan79.4%
Magenta41.7%
Yellow0.0%
Key (black)20.0%

Color previews

#2a77cc text on a black background

contrast 4.61:1

Card sample

#2a77cc text on a white background

contrast 4.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 119, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 119, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2a77cc;
background: linear-gradient(135deg, #2a77cc, #492ACC);

Monochromatic scale

Palettes built from #2a77cc

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.

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

#2a77cc, answered

What color is #2a77cc?

#2a77cc is a balanced vivid blue, closest to Steel Blue (ΔE2000 5). It sits at 212° on the hue wheel with 66% saturation and 48% lightness, which reads as cool.

What is the RGB value of #2a77cc?

rgb(42, 119, 204) — 42 red, 119 green and 204 blue out of 255, or 16.5% / 46.7% / 80% by channel.

Is #2a77cc a light or a dark color?

It is a mid-tone. Relative luminance is 0.1805 and perceived brightness is 46%, so black text on it reaches 4.61:1.

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

Black. It scores 4.61:1 against #2a77cc, versus 4.56:1 for white — AA at any size.

What is the complementary color of #2a77cc?

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

What colors go well with #2a77cc?

For interface work: #F4F7FA as the surface, #C0D5ED for borders, #4B719B for secondary text, #D15425 as an accent and #163E6A for hover and pressed states. For a palette, the analogous pair #2AC8CC and #2E2ACC stays calm, while #CC7F2A is the loudest partner.

What is #2a77cc in CMYK for printing?

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

Is #2a77cc 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 #2A3BCC; nudged cooler, #236AB9.

Work with #2a77cc in the Color Lab