Skip to content

#5f7fd4

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

RGB
95, 127, 212
HSL
224°, 58%, 60%
CMYK
55, 40, 0, 17
Luminance
0.2237

At a glance

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

Hex
#5f7fd4
Hue
224°
blue
Saturation
58%
vivid
Lightness
60%
balanced
Brightness
83%
HSV value
Perceived
52%
weighted brightness
Luminance
0.2237
WCAG relative
Temperature
Cool
92/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
5.47:1
Closest name
Steel Blue
ΔE2000 7.7
Where it sits
Hue224° of 360°
Saturation58%
Lightness60%
Temperature
Warm ← → Cool92% 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#5f7fd4
RGBrgb(95, 127, 212)
HSLhsl(224, 58%, 60%)
CMYKcmyk(55%, 40%, 0%, 17%)
LABlab(54.4 13.4 -47.3)
LCHlch(54.4 49.1 285.8)
OKLCHoklch(0.612 0.134 266.9)
Decimal6258644
Display P3color(display-p3 0.373 0.498 0.831)

Copy-ready code

/* CSS */
color: #5f7fd4;
background-color: #5f7fd4;
/* Tailwind (arbitrary) */
class="text-[#5f7fd4] bg-[#5f7fd4]"
/* SCSS */
$brand: #5f7fd4;
/* SwiftUI */
Color(red: 0.373, green: 0.498, blue: 0.831)
/* Android */
Color.parseColor("#5f7fd4")
/* Flutter */
Color(0xFF5F7FD4)
/* Python / OpenCV (BGR) */
(212, 127, 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 #5f7fd4 · 5.47:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.84:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.47:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #5f7fd4 as text scores 3.84:1 on white and 5.47:1 on black.

Accessibility — WCAG contrast

Aa
#5f7fd4 on white: 3.84:1
AA ✗ fail · AA-large · AAA
Aa
#5f7fd4 on black: 5.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5C88D7
deuteranopia · #4D7DD2
tritanopia · #19929F

Color scale — 50 to 950

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

#F4F6FB
#E9EDF7
#CDD6EF
#A7B8E7
#7A95DB
#5f7fd4
#345AC1
#2B4BA1
#233C81
#1D2E5E
#121D3B
Base = 500Lightest = 50 · #F4F6FBDarkest = 950 · #121D3B
:root {
  --brand-50: #F4F6FB;
  --brand-100: #E9EDF7;
  --brand-200: #CDD6EF;
  --brand-300: #A7B8E7;
  --brand-400: #7A95DB;
  --brand-500: #5f7fd4;
  --brand-600: #345AC1;
  --brand-700: #2B4BA1;
  --brand-800: #233C81;
  --brand-900: #1D2E5E;
  --brand-950: #121D3B;
  --brand: #5f7fd4;
  --brand-ink: #000000;
}

Colors that work with #5f7fd4

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#C0CCED
Hairlines and dividers
Muted text#4B619B
Captions on the surface
Accent#A56327
Second voice, not a rival
Dark variant#1B2F64
Hover, pressed, headers
Light variant#EBEFFA
Selected rows, tints
Dark surface#141824
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 #5f7fd4

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#D4B45F
Analogous left#5FB9D4
Analogous right#7A5FD4
Split-complement 1#D47A5F
Split-complement 2#B9D45F
Triadic 1#D45F7F
Triadic 2#7FD45F
Tetradic#D45FB9

RGB percentages

Red37.3%
Green49.8%
Blue83.1%

CMYK percentages

Cyan55.2%
Magenta40.1%
Yellow0.0%
Key (black)16.9%

Color previews

#5f7fd4 text on a black background

contrast 5.47:1

Card sample

#5f7fd4 text on a white background

contrast 3.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f7fd4

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.

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

#5f7fd4, answered

What color is #5f7fd4?

#5f7fd4 is a balanced vivid blue, closest to Steel Blue (ΔE2000 7.7). It sits at 224° on the hue wheel with 58% saturation and 60% lightness, which reads as cool.

What is the RGB value of #5f7fd4?

rgb(95, 127, 212) — 95 red, 127 green and 212 blue out of 255, or 37.3% / 49.8% / 83.1% by channel.

Is #5f7fd4 a light or a dark color?

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

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

Black. It scores 5.47:1 against #5f7fd4, versus 3.84:1 for white — AA at any size.

What is the complementary color of #5f7fd4?

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

What colors go well with #5f7fd4?

For interface work: #F4F6FA as the surface, #C0CCED for borders, #4B619B for secondary text, #A56327 as an accent and #1B2F64 for hover and pressed states. For a palette, the analogous pair #5FB9D4 and #7A5FD4 stays calm, while #D4B45F is the loudest partner.

What is #5f7fd4 in CMYK for printing?

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

Is #5f7fd4 warm or cool?

Cool — it scores 92 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6A5FD4; nudged cooler, #5D8DD6.

Work with #5f7fd4 in the Color Lab