Skip to content

#5281df

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

RGB
82, 129, 223
HSL
220°, 69%, 60%
CMYK
63, 42, 0, 13
Luminance
0.2282

At a glance

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

Hex
#5281df
Hue
220°
blue
Saturation
69%
vivid
Lightness
60%
balanced
Brightness
87%
HSV value
Perceived
52%
weighted brightness
Luminance
0.2282
WCAG relative
Temperature
Cool
94/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
5.56:1
Closest name
Cornflower Blue
ΔE2000 6.5
Where it sits
Hue220° of 360°
Saturation69%
Lightness60%
Temperature
Warm ← → Cool94% 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#5281df
RGBrgb(82, 129, 223)
HSLhsl(220, 69%, 60%)
CMYKcmyk(63%, 42%, 0%, 13%)
LABlab(54.9 13.3 -52.8)
LCHlch(54.9 54.4 284.1)
OKLCHoklch(0.615 0.152 262.7)
Decimal5407199
Display P3color(display-p3 0.322 0.506 0.875)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#5281df on white: 3.77:1
AA ✗ fail · AA-large · AAA
Aa
#5281df on black: 5.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #568AE3
deuteranopia · #407DDD
tritanopia · #0096A5

Color scale — 50 to 950

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

#F3F6FB
#E7EDF8
#CAD7F2
#A0BAED
#7198E5
#5281df
#265ECF
#204FAC
#193F8A
#163064
#0E1E3E
Base = 500Lightest = 50 · #F3F6FBDarkest = 950 · #0E1E3E
:root {
  --brand-50: #F3F6FB;
  --brand-100: #E7EDF8;
  --brand-200: #CAD7F2;
  --brand-300: #A0BAED;
  --brand-400: #7198E5;
  --brand-500: #5281df;
  --brand-600: #265ECF;
  --brand-700: #204FAC;
  --brand-800: #193F8A;
  --brand-900: #163064;
  --brand-950: #0E1E3E;
  --brand: #5281df;
  --brand-ink: #000000;
}

Colors that work with #5281df

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#F4F6FA
Tinted page background
Border#C0CFED
Hairlines and dividers
Muted text#4B659B
Captions on the surface
Accent#B05A1C
Second voice, not a rival
Dark variant#14316C
Hover, pressed, headers
Light variant#E9EFFB
Selected rows, tints
Dark surface#141924
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 #5281df

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#DFB052
Analogous left#52C8DF
Analogous right#6952DF
Split-complement 1#DF6952
Split-complement 2#C8DF52
Triadic 1#DF5281
Triadic 2#81DF52
Tetradic#DF52C8

RGB percentages

Red32.2%
Green50.6%
Blue87.5%

CMYK percentages

Cyan63.2%
Magenta42.2%
Yellow0.0%
Key (black)12.5%

Color previews

#5281df text on a black background

contrast 5.56:1

Card sample

#5281df text on a white background

contrast 3.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5281df

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.

#5281df 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.

#5281df, answered

What color is #5281df?

#5281df is a balanced vivid blue, closest to Cornflower Blue (ΔE2000 6.5). It sits at 220° on the hue wheel with 69% saturation and 60% lightness, which reads as cool.

What is the RGB value of #5281df?

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

Is #5281df a light or a dark color?

It is a mid-tone. Relative luminance is 0.2282 and perceived brightness is 52%, so black text on it reaches 5.56:1.

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

Black. It scores 5.56:1 against #5281df, versus 3.77:1 for white — AA at any size.

What is the complementary color of #5281df?

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

What colors go well with #5281df?

For interface work: #F4F6FA as the surface, #C0CFED for borders, #4B659B for secondary text, #B05A1C as an accent and #14316C for hover and pressed states. For a palette, the analogous pair #52C8DF and #6952DF stays calm, while #DFB052 is the loudest partner.

What is #5281df in CMYK for printing?

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

Is #5281df warm or cool?

Cool — it scores 94 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5752DF; nudged cooler, #3A7EDD.

Work with #5281df in the Color Lab