Skip to content

#2f7cb4

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

RGB
47, 124, 180
HSL
205°, 59%, 45%
CMYK
74, 31, 0, 29
Luminance
0.1831

At a glance

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

Hex
#2f7cb4
Hue
205°
blue
Saturation
59%
vivid
Lightness
45%
dark
Brightness
71%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1831
WCAG relative
Temperature
Cool
98/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
4.66:1
Closest name
Steel Blue
ΔE2000 3
Where it sits
Hue205° of 360°
Saturation59%
Lightness45%
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#2f7cb4
RGBrgb(47, 124, 180)
HSLhsl(205, 59%, 45%)
CMYKcmyk(74%, 31%, 0%, 29%)
LABlab(49.9 -4.4 -36.3)
LCHlch(49.9 36.6 263.1)
OKLCHoklch(0.565 0.114 244.1)
Decimal3112116
Display P3color(display-p3 0.184 0.486 0.706)

Copy-ready code

/* CSS */
color: #2f7cb4;
background-color: #2f7cb4;
/* Tailwind (arbitrary) */
class="text-[#2f7cb4] bg-[#2f7cb4]"
/* SCSS */
$brand: #2f7cb4;
/* SwiftUI */
Color(red: 0.184, green: 0.486, blue: 0.706)
/* Android */
Color.parseColor("#2f7cb4")
/* Flutter */
Color(0xFF2F7CB4)
/* Python / OpenCV (BGR) */
(180, 124, 47)

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 #2f7cb4 · 4.66:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.50: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: #2f7cb4 as text scores 4.50:1 on white and 4.66:1 on black.

Accessibility — WCAG contrast

Aa
#2f7cb4 on white: 4.50:1
AA ✓ pass · AA-large · AAA
Aa
#2f7cb4 on black: 4.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #627EB6
deuteranopia · #5071B3
tritanopia · #008A90

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2f7cb4 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
#E9F1F7
#CDE1EF
#A6CCE8
#7AB3DC
#4D99D1
#2f7cb4
#2A6FA2
#225981
#1C425E
#12293B
Base = 600Lightest = 50 · #F4F8FBDarkest = 950 · #12293B
:root {
  --brand-50: #F4F8FB;
  --brand-100: #E9F1F7;
  --brand-200: #CDE1EF;
  --brand-300: #A6CCE8;
  --brand-400: #7AB3DC;
  --brand-500: #4D99D1;
  --brand-600: #2f7cb4;
  --brand-700: #2A6FA2;
  --brand-800: #225981;
  --brand-900: #1C425E;
  --brand-950: #12293B;
  --brand: #2f7cb4;
  --brand-ink: #000000;
}

Colors that work with #2f7cb4

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#C0DAED
Hairlines and dividers
Muted text#4B799B
Captions on the surface
Accent#B9432A
Second voice, not a rival
Dark variant#1A4665
Hover, pressed, headers
Light variant#EBF3FA
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 #2f7cb4

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • 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#B4672F
Analogous left#2FB4AA
Analogous right#2F39B4
Split-complement 1#B42F39
Split-complement 2#B4AA2F
Triadic 1#B42F7C
Triadic 2#7CB42F
Tetradic#AA2FB4

RGB percentages

Red18.4%
Green48.6%
Blue70.6%

CMYK percentages

Cyan73.9%
Magenta31.1%
Yellow0.0%
Key (black)29.4%

Color previews

#2f7cb4 text on a black background

contrast 4.66:1

Card sample

#2f7cb4 text on a white background

contrast 4.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 124, 180, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 124, 180, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f7cb4;
background: linear-gradient(135deg, #2f7cb4, #3B2FB4);

Monochromatic scale

Palettes built from #2f7cb4

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.

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

#2f7cb4, answered

What color is #2f7cb4?

#2f7cb4 is a dark vivid blue, closest to Steel Blue (ΔE2000 3). It sits at 205° on the hue wheel with 59% saturation and 45% lightness, which reads as cool.

What is the RGB value of #2f7cb4?

rgb(47, 124, 180) — 47 red, 124 green and 180 blue out of 255, or 18.4% / 48.6% / 70.6% by channel.

Is #2f7cb4 a light or a dark color?

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

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

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

What is the complementary color of #2f7cb4?

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

What colors go well with #2f7cb4?

For interface work: #F4F8FA as the surface, #C0DAED for borders, #4B799B for secondary text, #B9432A as an accent and #1A4665 for hover and pressed states. For a palette, the analogous pair #2FB4AA and #2F39B4 stays calm, while #B4672F is the loudest partner.

What is #2f7cb4 in CMYK for printing?

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

Is #2f7cb4 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 #2FADB4; nudged cooler, #2867A2.

Work with #2f7cb4 in the Color Lab