Skip to content

#4a7cf2

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

RGB
74, 124, 242
HSL
222°, 87%, 62%
CMYK
69, 49, 0, 5
Luminance
0.2228

At a glance

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

Hex
#4a7cf2
Hue
222°
blue
Saturation
87%
electric
Lightness
62%
balanced
Brightness
95%
HSV value
Perceived
52%
weighted brightness
Luminance
0.2228
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
5.46:1
Closest name
Royal Blue
ΔE2000 6.9
Where it sits
Hue222° of 360°
Saturation87%
Lightness62%
Temperature
Warm ← → Cool93% 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#4a7cf2
RGBrgb(74, 124, 242)
HSLhsl(222, 87%, 62%)
CMYKcmyk(69%, 49%, 0%, 5%)
LABlab(54.3 21.7 -64.3)
LCHlch(54.3 67.8 288.6)
OKLCHoklch(0.614 0.185 264.3)
Decimal4881650
Display P3color(display-p3 0.290 0.486 0.949)

Copy-ready code

/* CSS */
color: #4a7cf2;
background-color: #4a7cf2;
/* Tailwind (arbitrary) */
class="text-[#4a7cf2] bg-[#4a7cf2]"
/* SCSS */
$brand: #4a7cf2;
/* SwiftUI */
Color(red: 0.290, green: 0.486, blue: 0.949)
/* Android */
Color.parseColor("#4a7cf2")
/* Flutter */
Color(0xFF4A7CF2)
/* Python / OpenCV (BGR) */
(242, 124, 74)

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

Accessibility — WCAG contrast

Aa
#4a7cf2 on white: 3.85:1
AA ✗ fail · AA-large · AAA
Aa
#4a7cf2 on black: 5.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #398AF6
deuteranopia · #007BF0
tritanopia · #0098AB

Color scale — 50 to 950

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

#F2F5FD
#E5EBFA
#C4D4F7
#96B3F7
#4a7cf2
#2E68F0
#1050E4
#0E42BE
#0B3598
#0C2A6E
#081A45
Base = 400Lightest = 50 · #F2F5FDDarkest = 950 · #081A45
:root {
  --brand-50: #F2F5FD;
  --brand-100: #E5EBFA;
  --brand-200: #C4D4F7;
  --brand-300: #96B3F7;
  --brand-400: #4a7cf2;
  --brand-500: #2E68F0;
  --brand-600: #1050E4;
  --brand-700: #0E42BE;
  --brand-800: #0B3598;
  --brand-900: #0C2A6E;
  --brand-950: #081A45;
  --brand: #4a7cf2;
  --brand-ink: #000000;
}

Colors that work with #4a7cf2

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#C0CDED
Hairlines and dividers
Muted text#4B639B
Captions on the surface
Accent#C35E09
Second voice, not a rival
Dark variant#092977
Hover, pressed, headers
Light variant#E7EEFD
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 #4a7cf2

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#F2C04A
Analogous left#4AD0F2
Analogous right#6C4AF2
Split-complement 1#F26C4A
Split-complement 2#D0F24A
Triadic 1#F24A7C
Triadic 2#7CF24A
Tetradic#F24AD0

RGB percentages

Red29.0%
Green48.6%
Blue94.9%

CMYK percentages

Cyan69.4%
Magenta48.8%
Yellow0.0%
Key (black)5.1%

Color previews

#4a7cf2 text on a black background

contrast 5.46:1

Card sample

#4a7cf2 text on a white background

contrast 3.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4a7cf2;
Background color
Panel with #4a7cf2 background
background-color: #4a7cf2;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(74, 124, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(74, 124, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4a7cf2;
background: linear-gradient(135deg, #4a7cf2, #884AF2);

Monochromatic scale

Palettes built from #4a7cf2

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.

#4a7cf2 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.

#4a7cf2, answered

What color is #4a7cf2?

#4a7cf2 is a balanced electric blue, closest to Royal Blue (ΔE2000 6.9). It sits at 222° on the hue wheel with 87% saturation and 62% lightness, which reads as cool.

What is the RGB value of #4a7cf2?

rgb(74, 124, 242) — 74 red, 124 green and 242 blue out of 255, or 29% / 48.6% / 94.9% by channel.

Is #4a7cf2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2228 and perceived brightness is 52%, so black text on it reaches 5.46:1.

Should I use black or white text on #4a7cf2?

Black. It scores 5.46:1 against #4a7cf2, versus 3.85:1 for white — AA at any size.

What is the complementary color of #4a7cf2?

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

What colors go well with #4a7cf2?

For interface work: #F4F6FA as the surface, #C0CDED for borders, #4B639B for secondary text, #C35E09 as an accent and #092977 for hover and pressed states. For a palette, the analogous pair #4AD0F2 and #6C4AF2 stays calm, while #F2C04A is the loudest partner.

What is #4a7cf2 in CMYK for printing?

cmyk(69%, 49%, 0%, 5%). 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 #4a7cf2 warm or cool?

Cool — it scores 93 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #564AF2; nudged cooler, #307CF2.

Work with #4a7cf2 in the Color Lab