Skip to content

#050baf

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

RGB
5, 11, 175
HSL
238°, 94%, 35%
CMYK
97, 94, 0, 31
Luminance
0.0337

At a glance

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

Hex
#050baf
Hue
238°
blue
Saturation
94%
electric
Lightness
35%
dark
Brightness
69%
HSV value
Perceived
23%
weighted brightness
Luminance
0.0337
WCAG relative
Temperature
Cool
85/100 cool
Color family
Blue
Tone
Electric
Best ink
White
12.55:1
Closest name
Medium Blue
ΔE2000 3.7
Where it sits
Hue238° of 360°
Saturation94%
Lightness35%
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#050baf
RGBrgb(5, 11, 175)
HSLhsl(238, 94%, 35%)
CMYKcmyk(97%, 94%, 0%, 31%)
LABlab(21.4 56.9 -79.6)
LCHlch(21.4 97.8 305.6)
OKLCHoklch(0.348 0.231 264.9)
Decimal330671
Display P3color(display-p3 0.020 0.043 0.686)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#050baf on white: 12.55:1
AA ✓ pass · AA-large · AAA
Aa
#050baf on black: 1.67:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003CB3
deuteranopia · #002AAD
tritanopia · #004966

Color scale — 50 to 950

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

#F2F2FD
#E4E5FB
#C2C4FA
#9296FC
#5B61FA
#252CF9
#070FEE
#060CC6
#050baf
#080C72
#050747
Base = 800Lightest = 50 · #F2F2FDDarkest = 950 · #050747
:root {
  --brand-50: #F2F2FD;
  --brand-100: #E4E5FB;
  --brand-200: #C2C4FA;
  --brand-300: #9296FC;
  --brand-400: #5B61FA;
  --brand-500: #252CF9;
  --brand-600: #070FEE;
  --brand-700: #060CC6;
  --brand-800: #050baf;
  --brand-900: #080C72;
  --brand-950: #050747;
  --brand: #050baf;
  --brand-ink: #ffffff;
}

Colors that work with #050baf

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#C0C1ED
Hairlines and dividers
Muted text#4B4D9B
Captions on the surface
Accent#B38001
Second voice, not a rival
Dark variant#04087C
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 #050baf

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#AFA905
Analogous left#0560AF
Analogous right#5405AF
Split-complement 1#AF5405
Split-complement 2#60AF05
Triadic 1#AF050B
Triadic 2#0BAF05
Tetradic#AF0560

RGB percentages

Red2.0%
Green4.3%
Blue68.6%

CMYK percentages

Cyan97.1%
Magenta93.7%
Yellow0.0%
Key (black)31.4%

Color previews

#050baf text on a black background

contrast 1.67:1

Card sample

#050baf text on a white background

contrast 12.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(5, 11, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(5, 11, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #050baf;
background: linear-gradient(135deg, #050baf, #7005AF);

Monochromatic scale

Palettes built from #050baf

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.

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

#050baf, answered

What color is #050baf?

#050baf is a dark electric blue, closest to Medium Blue (ΔE2000 3.7). It sits at 238° on the hue wheel with 94% saturation and 35% lightness, which reads as cool.

What is the RGB value of #050baf?

rgb(5, 11, 175) — 5 red, 11 green and 175 blue out of 255, or 2% / 4.3% / 68.6% by channel.

Is #050baf a light or a dark color?

It is a dark color. Relative luminance is 0.0337 and perceived brightness is 23%, so white text on it reaches 12.55:1.

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

White. It scores 12.55:1 against #050baf, versus 1.67:1 for black — AAA at any size.

What is the complementary color of #050baf?

#AFA905 sits directly opposite on the wheel. Softer options are the split-complements #AF5405 and #60AF05, which give the same contrast with far less vibration.

What colors go well with #050baf?

For interface work: #F4F5FA as the surface, #C0C1ED for borders, #4B4D9B for secondary text, #B38001 as an accent and #04087C for hover and pressed states. For a palette, the analogous pair #0560AF and #5405AF stays calm, while #AFA905 is the loudest partner.

What is #050baf in CMYK for printing?

cmyk(97%, 94%, 0%, 31%). 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 #050baf 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 #3D05AF; nudged cooler, #0332B1.

Work with #050baf in the Color Lab