Skip to content

#2771df

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

RGB
39, 113, 223
HSL
216°, 74%, 51%
CMYK
83, 49, 0, 13
Luminance
0.1757

At a glance

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

Hex
#2771df
Hue
216°
blue
Saturation
74%
vivid
Lightness
51%
balanced
Brightness
87%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1757
WCAG relative
Temperature
Cool
97/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
4.65:1
Closest name
Royal Blue
ΔE2000 4.6
Where it sits
Hue216° of 360°
Saturation74%
Lightness51%
Temperature
Warm ← → Cool97% 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#2771df
RGBrgb(39, 113, 223)
HSLhsl(216, 74%, 51%)
CMYKcmyk(83%, 49%, 0%, 13%)
LABlab(49.0 17.6 -62.3)
LCHlch(49.0 64.8 285.8)
OKLCHoklch(0.566 0.183 258.8)
Decimal2585055
Display P3color(display-p3 0.153 0.443 0.875)

Copy-ready code

/* CSS */
color: #2771df;
background-color: #2771df;
/* Tailwind (arbitrary) */
class="text-[#2771df] bg-[#2771df]"
/* SCSS */
$brand: #2771df;
/* SwiftUI */
Color(red: 0.153, green: 0.443, blue: 0.875)
/* Android */
Color.parseColor("#2771df")
/* Flutter */
Color(0xFF2771DF)
/* Python / OpenCV (BGR) */
(223, 113, 39)

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

Accessibility — WCAG contrast

Aa
#2771df on white: 4.65:1
AA ✓ pass · AA-large · AAA
Aa
#2771df on black: 4.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #2D7DE3
deuteranopia · #006DDD
tritanopia · #008C9D

Color scale — 50 to 950

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

#F3F6FC
#E7EEF9
#C8DAF3
#9DBFF1
#6C9FE9
#3C7EE2
#2771df
#1A57B2
#15468E
#133567
#0C2140
Base = 600Lightest = 50 · #F3F6FCDarkest = 950 · #0C2140
:root {
  --brand-50: #F3F6FC;
  --brand-100: #E7EEF9;
  --brand-200: #C8DAF3;
  --brand-300: #9DBFF1;
  --brand-400: #6C9FE9;
  --brand-500: #3C7EE2;
  --brand-600: #2771df;
  --brand-700: #1A57B2;
  --brand-800: #15468E;
  --brand-900: #133567;
  --brand-950: #0C2140;
  --brand: #2771df;
  --brand-ink: #ffffff;
}

Colors that work with #2771df

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#F4F7FA
Tinted page background
Border#C0D2ED
Hairlines and dividers
Muted text#4B6B9B
Captions on the surface
Accent#E46622
Second voice, not a rival
Dark variant#10366F
Hover, pressed, headers
Light variant#E9F0FC
Selected rows, tints
Dark surface#141A24
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 #2771df

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#DF9527
Analogous left#27CDDF
Analogous right#3927DF
Split-complement 1#DF3927
Split-complement 2#CDDF27
Triadic 1#DF2771
Triadic 2#71DF27
Tetradic#DF27CD

RGB percentages

Red15.3%
Green44.3%
Blue87.5%

CMYK percentages

Cyan82.5%
Magenta49.3%
Yellow0.0%
Key (black)12.5%

Color previews

#2771df text on a black background

contrast 4.51:1

Card sample

#2771df text on a white background

contrast 4.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2771df;
Background color
Panel with #2771df background
background-color: #2771df;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(39, 113, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(39, 113, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2771df;
background: linear-gradient(135deg, #2771df, #5827DF);

Monochromatic scale

Palettes built from #2771df

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.

#2771df 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.

#2771df, answered

What color is #2771df?

#2771df is a balanced vivid blue, closest to Royal Blue (ΔE2000 4.6). It sits at 216° on the hue wheel with 74% saturation and 51% lightness, which reads as cool.

What is the RGB value of #2771df?

rgb(39, 113, 223) — 39 red, 113 green and 223 blue out of 255, or 15.3% / 44.3% / 87.5% by channel.

Is #2771df a light or a dark color?

It is a dark color. Relative luminance is 0.1757 and perceived brightness is 46%, so white text on it reaches 4.65:1.

Should I use black or white text on #2771df?

White. It scores 4.65:1 against #2771df, versus 4.51:1 for black — AA at any size.

What is the complementary color of #2771df?

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

What colors go well with #2771df?

For interface work: #F4F7FA as the surface, #C0D2ED for borders, #4B6B9B for secondary text, #E46622 as an accent and #10366F for hover and pressed states. For a palette, the analogous pair #27CDDF and #3927DF stays calm, while #DF9527 is the loudest partner.

What is #2771df in CMYK for printing?

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

Is #2771df warm or cool?

Cool — it scores 97 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #272EDF; nudged cooler, #1C6BD0.

Work with #2771df in the Color Lab