Skip to content

#2f72fc

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

RGB
47, 114, 252
HSL
220°, 97%, 59%
CMYK
81, 55, 0, 1
Luminance
0.1967

At a glance

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

Hex
#2f72fc
Hue
220°
blue
Saturation
97%
electric
Lightness
59%
balanced
Brightness
99%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1967
WCAG relative
Temperature
Cool
94/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
4.93:1
Closest name
Royal Blue
ΔE2000 4.6
Where it sits
Hue220° of 360°
Saturation97%
Lightness59%
Temperature
Warm ← → Cool94% 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#2f72fc
RGBrgb(47, 114, 252)
HSLhsl(220, 97%, 59%)
CMYKcmyk(81%, 55%, 0%, 1%)
LABlab(51.5 28.6 -74.5)
LCHlch(51.5 79.8 291.0)
OKLCHoklch(0.592 0.217 262.4)
Decimal3109628
Display P3color(display-p3 0.184 0.447 0.988)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f72fc on white: 4.26:1
AA ✗ fail · AA-large · AAA
Aa
#2f72fc on black: 4.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0084FF
deuteranopia · #0072F9
tritanopia · #0094AC

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2f72fc is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F1F5FD
#E4EBFC
#C1D4FB
#90B4FD
#598EFD
#2f72fc
#0351F1
#0344C9
#0236A1
#062A74
#041A48
Base = 500Lightest = 50 · #F1F5FDDarkest = 950 · #041A48
:root {
  --brand-50: #F1F5FD;
  --brand-100: #E4EBFC;
  --brand-200: #C1D4FB;
  --brand-300: #90B4FD;
  --brand-400: #598EFD;
  --brand-500: #2f72fc;
  --brand-600: #0351F1;
  --brand-700: #0344C9;
  --brand-800: #0236A1;
  --brand-900: #062A74;
  --brand-950: #041A48;
  --brand: #2f72fc;
  --brand-ink: #000000;
}

Colors that work with #2f72fc

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#F4F6FA
Tinted page background
Border#C0CEED
Hairlines and dividers
Muted text#4B659B
Captions on the surface
Accent#CC5600
Second voice, not a rival
Dark variant#022A7E
Hover, pressed, headers
Light variant#E6EEFF
Selected rows, tints
Dark surface#141924
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 #2f72fc

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#FCB92F
Analogous left#2FD8FC
Analogous right#522FFC
Split-complement 1#FC522F
Split-complement 2#D8FC2F
Triadic 1#FC2F72
Triadic 2#72FC2F
Tetradic#FC2FD8

RGB percentages

Red18.4%
Green44.7%
Blue98.8%

CMYK percentages

Cyan81.3%
Magenta54.8%
Yellow0.0%
Key (black)1.2%

Color previews

#2f72fc text on a black background

contrast 4.93:1

Card sample

#2f72fc text on a white background

contrast 4.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 114, 252, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 114, 252, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f72fc;
background: linear-gradient(135deg, #2f72fc, #752FFC);

Monochromatic scale

Palettes built from #2f72fc

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.

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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#2f72fc, answered

What color is #2f72fc?

#2f72fc is a balanced electric blue, closest to Royal Blue (ΔE2000 4.6). It sits at 220° on the hue wheel with 97% saturation and 59% lightness, which reads as cool.

What is the RGB value of #2f72fc?

rgb(47, 114, 252) — 47 red, 114 green and 252 blue out of 255, or 18.4% / 44.7% / 98.8% by channel.

Is #2f72fc a light or a dark color?

It is a mid-tone. Relative luminance is 0.1967 and perceived brightness is 49%, so black text on it reaches 4.93:1.

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

Black. It scores 4.93:1 against #2f72fc, versus 4.26:1 for white — AA at any size.

What is the complementary color of #2f72fc?

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

What colors go well with #2f72fc?

For interface work: #F4F6FA as the surface, #C0CEED for borders, #4B659B for secondary text, #CC5600 as an accent and #022A7E for hover and pressed states. For a palette, the analogous pair #2FD8FC and #522FFC stays calm, while #FCB92F is the loudest partner.

What is #2f72fc in CMYK for printing?

cmyk(81%, 55%, 0%, 1%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #2f72fc warm or cool?

Cool — it scores 94 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #372FFC; nudged cooler, #1370FE.

Work with #2f72fc in the Color Lab