Skip to content

#5f72eb

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

RGB
95, 114, 235
HSL
232°, 78%, 65%
CMYK
60, 52, 0, 8
Luminance
0.2047

At a glance

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

Hex
#5f72eb
Hue
232°
blue
Saturation
78%
electric
Lightness
65%
balanced
Brightness
92%
HSV value
Perceived
51%
weighted brightness
Luminance
0.2047
WCAG relative
Temperature
Cool
88/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
5.09:1
Closest name
Royal Blue
ΔE2000 5.1
Where it sits
Hue232° of 360°
Saturation78%
Lightness65%
Temperature
Warm ← → Cool88% 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#5f72eb
RGBrgb(95, 114, 235)
HSLhsl(232, 78%, 65%)
CMYKcmyk(60%, 52%, 0%, 8%)
LABlab(52.4 28.8 -63.5)
LCHlch(52.4 69.7 294.4)
OKLCHoklch(0.600 0.182 273.0)
Decimal6255339
Display P3color(display-p3 0.373 0.447 0.922)

Copy-ready code

/* CSS */
color: #5f72eb;
background-color: #5f72eb;
/* Tailwind (arbitrary) */
class="text-[#5f72eb] bg-[#5f72eb]"
/* SCSS */
$brand: #5f72eb;
/* SwiftUI */
Color(red: 0.373, green: 0.447, blue: 0.922)
/* Android */
Color.parseColor("#5f72eb")
/* Flutter */
Color(0xFF5F72EB)
/* Python / OpenCV (BGR) */
(235, 114, 95)

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

Accessibility — WCAG contrast

Aa
#5f72eb on white: 4.12:1
AA ✗ fail · AA-large · AAA
Aa
#5f72eb on black: 5.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #2B83EF
deuteranopia · #0077E8
tritanopia · #008EA4

Color scale — 50 to 950

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

#F3F4FC
#E6E9F9
#C7CDF5
#9BA7F3
#5f72eb
#384FE6
#1B35DA
#172CB5
#122391
#111D69
#0B1242
Base = 400Lightest = 50 · #F3F4FCDarkest = 950 · #0B1242
:root {
  --brand-50: #F3F4FC;
  --brand-100: #E6E9F9;
  --brand-200: #C7CDF5;
  --brand-300: #9BA7F3;
  --brand-400: #5f72eb;
  --brand-500: #384FE6;
  --brand-600: #1B35DA;
  --brand-700: #172CB5;
  --brand-800: #122391;
  --brand-900: #111D69;
  --brand-950: #0B1242;
  --brand: #5f72eb;
  --brand-ink: #000000;
}

Colors that work with #5f72eb

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#F4F5FA
Tinted page background
Border#C0C6ED
Hairlines and dividers
Muted text#4B559B
Captions on the surface
Accent#BA7912
Second voice, not a rival
Dark variant#0E1C71
Hover, pressed, headers
Light variant#E8EBFC
Selected rows, tints
Dark surface#141624
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 #5f72eb

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#EBD85F
Analogous left#5FB8EB
Analogous right#925FEB
Split-complement 1#EB925F
Split-complement 2#B8EB5F
Triadic 1#EB5F72
Triadic 2#72EB5F
Tetradic#EB5FB8

RGB percentages

Red37.3%
Green44.7%
Blue92.2%

CMYK percentages

Cyan59.6%
Magenta51.5%
Yellow0.0%
Key (black)7.8%

Color previews

#5f72eb text on a black background

contrast 5.09:1

Card sample

#5f72eb text on a white background

contrast 4.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5f72eb;
Background color
Panel with #5f72eb background
background-color: #5f72eb;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5f72eb;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(95, 114, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(95, 114, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5f72eb;
background: linear-gradient(135deg, #5f72eb, #A95FEB);

Monochromatic scale

Palettes built from #5f72eb

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.

#5f72eb 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.

#5f72eb, answered

What color is #5f72eb?

#5f72eb is a balanced electric blue, closest to Royal Blue (ΔE2000 5.1). It sits at 232° on the hue wheel with 78% saturation and 65% lightness, which reads as cool.

What is the RGB value of #5f72eb?

rgb(95, 114, 235) — 95 red, 114 green and 235 blue out of 255, or 37.3% / 44.7% / 92.2% by channel.

Is #5f72eb a light or a dark color?

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

Should I use black or white text on #5f72eb?

Black. It scores 5.09:1 against #5f72eb, versus 4.12:1 for white — AA at any size.

What is the complementary color of #5f72eb?

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

What colors go well with #5f72eb?

For interface work: #F4F5FA as the surface, #C0C6ED for borders, #4B559B for secondary text, #BA7912 as an accent and #0E1C71 for hover and pressed states. For a palette, the analogous pair #5FB8EB and #925FEB stays calm, while #EBD85F is the loudest partner.

What is #5f72eb in CMYK for printing?

cmyk(60%, 52%, 0%, 8%). 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 #5f72eb warm or cool?

Cool — it scores 88 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7F5FEB; nudged cooler, #5D8DED.

Work with #5f72eb in the Color Lab