Skip to content

#050df4

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

RGB
5, 13, 244
HSL
238°, 96%, 49%
CMYK
98, 95, 0, 4
Luminance
0.0685

At a glance

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

Hex
#050df4
Hue
238°
blue
Saturation
96%
electric
Lightness
49%
balanced
Brightness
96%
HSV value
Perceived
33%
weighted brightness
Luminance
0.0685
WCAG relative
Temperature
Cool
84/100 cool
Color family
Blue
Tone
Electric
Best ink
White
8.86:1
Closest name
Blue
ΔE2000 1.2
Where it sits
Hue238° of 360°
Saturation96%
Lightness49%
Temperature
Warm ← → Cool84% 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#050df4
RGBrgb(5, 13, 244)
HSLhsl(238, 96%, 49%)
CMYKcmyk(98%, 95%, 0%, 4%)
LABlab(31.5 74.5 -103.1)
LCHlch(31.5 127.2 305.9)
OKLCHoklch(0.442 0.299 264.5)
Decimal331252
Display P3color(display-p3 0.020 0.051 0.957)

Copy-ready code

/* CSS */
color: #050df4;
background-color: #050df4;
/* Tailwind (arbitrary) */
class="text-[#050df4] bg-[#050df4]"
/* SCSS */
$brand: #050df4;
/* SwiftUI */
Color(red: 0.020, green: 0.051, blue: 0.957)
/* Android */
Color.parseColor("#050df4")
/* Flutter */
Color(0xFF050DF4)
/* Python / OpenCV (BGR) */
(244, 13, 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 #050df4 · 8.86:1
Use #ffffffAAA at every size.
Aa
White text · 8.86:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.37:1
AA fail · AA large fail · AAA fail
Reading the other direction: #050df4 as text scores 8.86:1 on white and 2.37:1 on black.

Accessibility — WCAG contrast

Aa
#050df4 on white: 8.86:1
AA ✓ pass · AA-large · AAA
Aa
#050df4 on black: 2.37:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0056F9
deuteranopia · #003DF1
tritanopia · #006890

Color scale — 50 to 950

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

#F1F2FD
#E4E5FC
#C1C3FA
#9195FD
#5A5FFC
#232AFB
#050df4
#040BC8
#0308A0
#070B73
#040748
Base = 600Lightest = 50 · #F1F2FDDarkest = 950 · #040748
:root {
  --brand-50: #F1F2FD;
  --brand-100: #E4E5FC;
  --brand-200: #C1C3FA;
  --brand-300: #9195FD;
  --brand-400: #5A5FFC;
  --brand-500: #232AFB;
  --brand-600: #050df4;
  --brand-700: #040BC8;
  --brand-800: #0308A0;
  --brand-900: #070B73;
  --brand-950: #040748;
  --brand: #050df4;
  --brand-ink: #ffffff;
}

Colors that work with #050df4

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#F4F4FA
Tinted page background
Border#C0C1ED
Hairlines and dividers
Muted text#4B4D9B
Captions on the surface
Accent#CC9200
Second voice, not a rival
Dark variant#03077D
Hover, pressed, headers
Light variant#E6E7FE
Selected rows, tints
Dark surface#141424
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 #050df4

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
  • Text on black or near-black surfaces
  • 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#F4EC05
Analogous left#0584F4
Analogous right#7405F4
Split-complement 1#F47405
Split-complement 2#84F405
Triadic 1#F4050D
Triadic 2#0DF405
Tetradic#F40584

RGB percentages

Red2.0%
Green5.1%
Blue95.7%

CMYK percentages

Cyan98.0%
Magenta94.7%
Yellow0.0%
Key (black)4.3%

Color previews

#050df4 text on a black background

contrast 2.37:1

Card sample

#050df4 text on a white background

contrast 8.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #050df4;
Background color
Panel with #050df4 background
background-color: #050df4;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(5, 13, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(5, 13, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #050df4;
background: linear-gradient(135deg, #050df4, #9C05F4);

Monochromatic scale

Palettes built from #050df4

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.

#050df4 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.

#050df4, answered

What color is #050df4?

#050df4 is a balanced electric blue, closest to Blue (ΔE2000 1.2). It sits at 238° on the hue wheel with 96% saturation and 49% lightness, which reads as cool.

What is the RGB value of #050df4?

rgb(5, 13, 244) — 5 red, 13 green and 244 blue out of 255, or 2% / 5.1% / 95.7% by channel.

Is #050df4 a light or a dark color?

It is a dark color. Relative luminance is 0.0685 and perceived brightness is 33%, so white text on it reaches 8.86:1.

Should I use black or white text on #050df4?

White. It scores 8.86:1 against #050df4, versus 2.37:1 for black — AAA at any size.

What is the complementary color of #050df4?

#F4EC05 sits directly opposite on the wheel. Softer options are the split-complements #F47405 and #84F405, which give the same contrast with far less vibration.

What colors go well with #050df4?

For interface work: #F4F4FA as the surface, #C0C1ED for borders, #4B4D9B for secondary text, #CC9200 as an accent and #03077D for hover and pressed states. For a palette, the analogous pair #0584F4 and #7405F4 stays calm, while #F4EC05 is the loudest partner.

What is #050df4 in CMYK for printing?

cmyk(98%, 95%, 0%, 4%). 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 #050df4 warm or cool?

Cool — it scores 84 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5505F4; nudged cooler, #023AF6.

Work with #050df4 in the Color Lab