Skip to content

#4081df

a balanced, vivid blue · cool · closest name: Steel Blue

RGB
64, 129, 223
HSL
216°, 71%, 56%
CMYK
71, 42, 0, 13
Luminance
0.2212

At a glance

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

Hex
#4081df
Hue
216°
blue
Saturation
71%
vivid
Lightness
56%
balanced
Brightness
87%
HSV value
Perceived
51%
weighted brightness
Luminance
0.2212
WCAG relative
Temperature
Cool
97/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
5.42:1
Closest name
Steel Blue
ΔE2000 5.2
Where it sits
Hue216° of 360°
Saturation71%
Lightness56%
Temperature
Warm ← → Cool97% 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#4081df
RGBrgb(64, 129, 223)
HSLhsl(216, 71%, 56%)
CMYKcmyk(71%, 42%, 0%, 13%)
LABlab(54.1 10.5 -54.0)
LCHlch(54.1 55.0 281.0)
OKLCHoklch(0.608 0.158 257.9)
Decimal4227551
Display P3color(display-p3 0.251 0.506 0.875)

Copy-ready code

/* CSS */
color: #4081df;
background-color: #4081df;
/* Tailwind (arbitrary) */
class="text-[#4081df] bg-[#4081df]"
/* SCSS */
$brand: #4081df;
/* SwiftUI */
Color(red: 0.251, green: 0.506, blue: 0.875)
/* Android */
Color.parseColor("#4081df")
/* Flutter */
Color(0xFF4081DF)
/* Python / OpenCV (BGR) */
(223, 129, 64)

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

Accessibility — WCAG contrast

Aa
#4081df on white: 3.87:1
AA ✗ fail · AA-large · AAA
Aa
#4081df on black: 5.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5489E3
deuteranopia · #387BDD
tritanopia · #0097A5

Color scale — 50 to 950

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

#F3F7FC
#E7EEF8
#C9DAF3
#9FC0EF
#6FA0E7
#4081df
#236AD2
#1D59AF
#17478C
#153665
#0D223F
Base = 500Lightest = 50 · #F3F7FCDarkest = 950 · #0D223F
:root {
  --brand-50: #F3F7FC;
  --brand-100: #E7EEF8;
  --brand-200: #C9DAF3;
  --brand-300: #9FC0EF;
  --brand-400: #6FA0E7;
  --brand-500: #4081df;
  --brand-600: #236AD2;
  --brand-700: #1D59AF;
  --brand-800: #17478C;
  --brand-900: #153665;
  --brand-950: #0D223F;
  --brand: #4081df;
  --brand-ink: #000000;
}

Colors that work with #4081df

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#F4F7FA
Tinted page background
Border#C0D2ED
Hairlines and dividers
Muted text#4B6B9B
Captions on the surface
Accent#B24E1A
Second voice, not a rival
Dark variant#12376D
Hover, pressed, headers
Light variant#E9F1FB
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 #4081df

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#DF9E40
Analogous left#40D0DF
Analogous right#4F40DF
Split-complement 1#DF4F40
Split-complement 2#D0DF40
Triadic 1#DF4081
Triadic 2#81DF40
Tetradic#DF40D0

RGB percentages

Red25.1%
Green50.6%
Blue87.5%

CMYK percentages

Cyan71.3%
Magenta42.2%
Yellow0.0%
Key (black)12.5%

Color previews

#4081df text on a black background

contrast 5.42:1

Card sample

#4081df text on a white background

contrast 3.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4081df;
Background color
Panel with #4081df background
background-color: #4081df;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #4081df;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(64, 129, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 129, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4081df;
background: linear-gradient(135deg, #4081df, #6940DF);

Monochromatic scale

Palettes built from #4081df

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.

#4081df 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

Converts to four-color process without much drama. Proof it anyway.

#4081df, answered

What color is #4081df?

#4081df is a balanced vivid blue, closest to Steel Blue (ΔE2000 5.2). It sits at 216° on the hue wheel with 71% saturation and 56% lightness, which reads as cool.

What is the RGB value of #4081df?

rgb(64, 129, 223) — 64 red, 129 green and 223 blue out of 255, or 25.1% / 50.6% / 87.5% by channel.

Is #4081df a light or a dark color?

It is a mid-tone. Relative luminance is 0.2212 and perceived brightness is 51%, so black text on it reaches 5.42:1.

Should I use black or white text on #4081df?

Black. It scores 5.42:1 against #4081df, versus 3.87:1 for white — AA at any size.

What is the complementary color of #4081df?

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

What colors go well with #4081df?

For interface work: #F4F7FA as the surface, #C0D2ED for borders, #4B6B9B for secondary text, #B24E1A as an accent and #12376D for hover and pressed states. For a palette, the analogous pair #40D0DF and #4F40DF stays calm, while #DF9E40 is the loudest partner.

What is #4081df in CMYK for printing?

cmyk(71%, 42%, 0%, 13%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #4081df warm or cool?

Cool — it scores 97 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #4047DF; nudged cooler, #2878DE.

Work with #4081df in the Color Lab