Skip to content

#050fdf

a dark, electric blue · cool · closest name: Medium Blue

RGB
5, 15, 223
HSL
237°, 96%, 45%
CMYK
98, 93, 0, 13
Luminance
0.0570

At a glance

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

Hex
#050fdf
Hue
237°
blue
Saturation
96%
electric
Lightness
45%
dark
Brightness
87%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0570
WCAG relative
Temperature
Cool
85/100 cool
Color family
Blue
Tone
Electric
Best ink
White
9.81:1
Closest name
Medium Blue
ΔE2000 2.9
Where it sits
Hue237° of 360°
Saturation96%
Lightness45%
Temperature
Warm ← → Cool85% 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#050fdf
RGBrgb(5, 15, 223)
HSLhsl(237, 96%, 45%)
CMYKcmyk(98%, 93%, 0%, 13%)
LABlab(28.6 68.8 -95.8)
LCHlch(28.6 117.9 305.7)
OKLCHoklch(0.415 0.278 264.6)
Decimal331743
Display P3color(display-p3 0.020 0.059 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#050fdf on white: 9.81:1
AA ✓ pass · AA-large · AAA
Aa
#050fdf on black: 2.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004EE4
deuteranopia · #0037DC
tritanopia · #005F83

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #050fdf 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
#C1C4FA
#9196FD
#5A62FB
#242EFA
#050fdf
#040EC8
#040BA0
#070C73
#050848
Base = 600Lightest = 50 · #F1F2FDDarkest = 950 · #050848
:root {
  --brand-50: #F1F2FD;
  --brand-100: #E4E5FC;
  --brand-200: #C1C4FA;
  --brand-300: #9196FD;
  --brand-400: #5A62FB;
  --brand-500: #242EFA;
  --brand-600: #050fdf;
  --brand-700: #040EC8;
  --brand-800: #040BA0;
  --brand-900: #070C73;
  --brand-950: #050848;
  --brand: #050fdf;
  --brand-ink: #ffffff;
}

Colors that work with #050fdf

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#F4F5FA
Tinted page background
Border#C0C2ED
Hairlines and dividers
Muted text#4B4E9B
Captions on the surface
Accent#CC8F00
Second voice, not a rival
Dark variant#03087D
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 #050fdf

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#DFD505
Analogous left#057CDF
Analogous right#6805DF
Split-complement 1#DF6805
Split-complement 2#7CDF05
Triadic 1#DF050F
Triadic 2#0FDF05
Tetradic#DF057C

RGB percentages

Red2.0%
Green5.9%
Blue87.5%

CMYK percentages

Cyan97.8%
Magenta93.3%
Yellow0.0%
Key (black)12.5%

Color previews

#050fdf text on a black background

contrast 2.14:1

Card sample

#050fdf text on a white background

contrast 9.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(5, 15, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(5, 15, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #050fdf;
background: linear-gradient(135deg, #050fdf, #8C05DF);

Monochromatic scale

Palettes built from #050fdf

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.

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

#050fdf, answered

What color is #050fdf?

#050fdf is a dark electric blue, closest to Medium Blue (ΔE2000 2.9). It sits at 237° on the hue wheel with 96% saturation and 45% lightness, which reads as cool.

What is the RGB value of #050fdf?

rgb(5, 15, 223) — 5 red, 15 green and 223 blue out of 255, or 2% / 5.9% / 87.5% by channel.

Is #050fdf a light or a dark color?

It is a dark color. Relative luminance is 0.0570 and perceived brightness is 30%, so white text on it reaches 9.81:1.

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

White. It scores 9.81:1 against #050fdf, versus 2.14:1 for black — AAA at any size.

What is the complementary color of #050fdf?

#DFD505 sits directly opposite on the wheel. Softer options are the split-complements #DF6805 and #7CDF05, which give the same contrast with far less vibration.

What colors go well with #050fdf?

For interface work: #F4F5FA as the surface, #C0C2ED for borders, #4B4E9B for secondary text, #CC8F00 as an accent and #03087D for hover and pressed states. For a palette, the analogous pair #057CDF and #6805DF stays calm, while #DFD505 is the loudest partner.

What is #050fdf in CMYK for printing?

cmyk(98%, 93%, 0%, 13%). 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 #050fdf warm or cool?

Cool — it scores 85 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #4B05DF; nudged cooler, #0339E1.

Work with #050fdf in the Color Lab