Skip to content

#056df2

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

RGB
5, 109, 242
HSL
214°, 96%, 48%
CMYK
98, 55, 0, 5
Luminance
0.1738

At a glance

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

Hex
#056df2
Hue
214°
blue
Saturation
96%
electric
Lightness
48%
balanced
Brightness
95%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1738
WCAG relative
Temperature
Cool
98/100 cool
Color family
Blue
Tone
Electric
Best ink
White
4.69:1
Closest name
Royal Blue
ΔE2000 3.8
Where it sits
Hue214° of 360°
Saturation96%
Lightness48%
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#056df2
RGBrgb(5, 109, 242)
HSLhsl(214, 96%, 48%)
CMYKcmyk(98%, 55%, 0%, 5%)
LABlab(48.7 25.9 -73.4)
LCHlch(48.7 77.8 289.4)
OKLCHoklch(0.567 0.216 259.0)
Decimal355826
Display P3color(display-p3 0.020 0.427 0.949)

Copy-ready code

/* CSS */
color: #056df2;
background-color: #056df2;
/* Tailwind (arbitrary) */
class="text-[#056df2] bg-[#056df2]"
/* SCSS */
$brand: #056df2;
/* SwiftUI */
Color(red: 0.020, green: 0.427, blue: 0.949)
/* Android */
Color.parseColor("#056df2")
/* Flutter */
Color(0xFF056DF2)
/* Python / OpenCV (BGR) */
(242, 109, 5)

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

Accessibility — WCAG contrast

Aa
#056df2 on white: 4.69:1
AA ✓ pass · AA-large · AAA
Aa
#056df2 on black: 4.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #007EF7
deuteranopia · #006AEF
tritanopia · #008FA5

Color scale — 50 to 950

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

#F1F7FD
#E4EEFC
#C1DAFA
#91C0FD
#5AA1FC
#2382FB
#056df2
#045AC8
#0348A0
#073773
#042248
Base = 600Lightest = 50 · #F1F7FDDarkest = 950 · #042248
:root {
  --brand-50: #F1F7FD;
  --brand-100: #E4EEFC;
  --brand-200: #C1DAFA;
  --brand-300: #91C0FD;
  --brand-400: #5AA1FC;
  --brand-500: #2382FB;
  --brand-600: #056df2;
  --brand-700: #045AC8;
  --brand-800: #0348A0;
  --brand-900: #073773;
  --brand-950: #042248;
  --brand: #056df2;
  --brand-ink: #ffffff;
}

Colors that work with #056df2

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#C0D3ED
Hairlines and dividers
Muted text#4B6E9B
Captions on the surface
Accent#F74D00
Second voice, not a rival
Dark variant#03387D
Hover, pressed, headers
Light variant#E6F1FE
Selected rows, tints
Dark surface#141B24
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 #056df2

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • 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#F28A05
Analogous left#05E3F2
Analogous right#1405F2
Split-complement 1#F21405
Split-complement 2#E3F205
Triadic 1#F2056D
Triadic 2#6DF205
Tetradic#F205E3

RGB percentages

Red2.0%
Green42.7%
Blue94.9%

CMYK percentages

Cyan97.9%
Magenta55.0%
Yellow0.0%
Key (black)5.1%

Color previews

#056df2 text on a black background

contrast 4.48:1

Card sample

#056df2 text on a white background

contrast 4.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #056df2;
Background color
Panel with #056df2 background
background-color: #056df2;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(5, 109, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(5, 109, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #056df2;
background: linear-gradient(135deg, #056df2, #3B05F2);

Monochromatic scale

Palettes built from #056df2

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.

#056df2 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.

#056df2, answered

What color is #056df2?

#056df2 is a balanced electric blue, closest to Royal Blue (ΔE2000 3.8). It sits at 214° on the hue wheel with 96% saturation and 48% lightness, which reads as cool.

What is the RGB value of #056df2?

rgb(5, 109, 242) — 5 red, 109 green and 242 blue out of 255, or 2% / 42.7% / 94.9% by channel.

Is #056df2 a light or a dark color?

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

Should I use black or white text on #056df2?

White. It scores 4.69:1 against #056df2, versus 4.48:1 for black — AA at any size.

What is the complementary color of #056df2?

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

What colors go well with #056df2?

For interface work: #F4F7FA as the surface, #C0D3ED for borders, #4B6E9B for secondary text, #F74D00 as an accent and #03387D for hover and pressed states. For a palette, the analogous pair #05E3F2 and #1405F2 stays calm, while #F28A05 is the loudest partner.

What is #056df2 in CMYK for printing?

cmyk(98%, 55%, 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 #056df2 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 #0516F2; nudged cooler, #0265DB.

Work with #056df2 in the Color Lab