Skip to content

#2f74f8

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

RGB
47, 116, 248
HSL
219°, 94%, 58%
CMYK
81, 53, 0, 3
Luminance
0.1987

At a glance

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

Hex
#2f74f8
Hue
219°
blue
Saturation
94%
electric
Lightness
58%
balanced
Brightness
97%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1987
WCAG relative
Temperature
Cool
95/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
4.97:1
Closest name
Royal Blue
ΔE2000 4.9
Where it sits
Hue219° of 360°
Saturation94%
Lightness58%
Temperature
Warm ← → Cool95% 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#2f74f8
RGBrgb(47, 116, 248)
HSLhsl(219, 94%, 58%)
CMYKcmyk(81%, 53%, 0%, 3%)
LABlab(51.7 25.8 -71.9)
LCHlch(51.7 76.4 289.7)
OKLCHoklch(0.592 0.210 261.7)
Decimal3110136
Display P3color(display-p3 0.184 0.455 0.973)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f74f8 on white: 4.22:1
AA ✗ fail · AA-large · AAA
Aa
#2f74f8 on black: 4.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0085FD
deuteranopia · #0073F5
tritanopia · #0095AB

Color scale — 50 to 950

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

#F2F6FD
#E4ECFB
#C2D5FA
#92B6FB
#5C92FA
#2f74f8
#0857ED
#0748C5
#053A9E
#092D72
#051C47
Base = 500Lightest = 50 · #F2F6FDDarkest = 950 · #051C47
:root {
  --brand-50: #F2F6FD;
  --brand-100: #E4ECFB;
  --brand-200: #C2D5FA;
  --brand-300: #92B6FB;
  --brand-400: #5C92FA;
  --brand-500: #2f74f8;
  --brand-600: #0857ED;
  --brand-700: #0748C5;
  --brand-800: #053A9E;
  --brand-900: #092D72;
  --brand-950: #051C47;
  --brand: #2f74f8;
  --brand-ink: #000000;
}

Colors that work with #2f74f8

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#C0CFED
Hairlines and dividers
Muted text#4B669B
Captions on the surface
Accent#C95403
Second voice, not a rival
Dark variant#042D7B
Hover, pressed, headers
Light variant#E6EFFE
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 #2f74f8

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#F8B32F
Analogous left#2FD8F8
Analogous right#4E2FF8
Split-complement 1#F84E2F
Split-complement 2#D8F82F
Triadic 1#F82F74
Triadic 2#74F82F
Tetradic#F82FD8

RGB percentages

Red18.4%
Green45.5%
Blue97.3%

CMYK percentages

Cyan81.0%
Magenta53.2%
Yellow0.0%
Key (black)2.7%

Color previews

#2f74f8 text on a black background

contrast 4.97:1

Card sample

#2f74f8 text on a white background

contrast 4.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 116, 248, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 116, 248, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f74f8;
background: linear-gradient(135deg, #2f74f8, #702FF8);

Monochromatic scale

Palettes built from #2f74f8

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.

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

#2f74f8, answered

What color is #2f74f8?

#2f74f8 is a balanced electric blue, closest to Royal Blue (ΔE2000 4.9). It sits at 219° on the hue wheel with 94% saturation and 58% lightness, which reads as cool.

What is the RGB value of #2f74f8?

rgb(47, 116, 248) — 47 red, 116 green and 248 blue out of 255, or 18.4% / 45.5% / 97.3% by channel.

Is #2f74f8 a light or a dark color?

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

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

Black. It scores 4.97:1 against #2f74f8, versus 4.22:1 for white — AA at any size.

What is the complementary color of #2f74f8?

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

What colors go well with #2f74f8?

For interface work: #F4F6FA as the surface, #C0CFED for borders, #4B669B for secondary text, #C95403 as an accent and #042D7B for hover and pressed states. For a palette, the analogous pair #2FD8F8 and #4E2FF8 stays calm, while #F8B32F is the loudest partner.

What is #2f74f8 in CMYK for printing?

cmyk(81%, 53%, 0%, 3%). 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 #2f74f8 warm or cool?

Cool — it scores 95 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #332FF8; nudged cooler, #1471FA.

Work with #2f74f8 in the Color Lab