Skip to content

#5f6dfb

a light, electric blue · cool · closest name: Medium Slate Blue

RGB
95, 109, 251
HSL
235°, 95%, 68%
CMYK
62, 57, 0, 2
Luminance
0.2034

At a glance

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

Hex
#5f6dfb
Hue
235°
blue
Saturation
95%
electric
Lightness
68%
light
Brightness
98%
HSV value
Perceived
51%
weighted brightness
Luminance
0.2034
WCAG relative
Temperature
Cool
86/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
5.07:1
Closest name
Medium Slate Blue
ΔE2000 5.1
Where it sits
Hue235° of 360°
Saturation95%
Lightness68%
Temperature
Warm ← → Cool86% 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#5f6dfb
RGBrgb(95, 109, 251)
HSLhsl(235, 95%, 68%)
CMYKcmyk(62%, 57%, 0%, 2%)
LABlab(52.2 37.1 -72.6)
LCHlch(52.2 81.5 297.0)
OKLCHoklch(0.603 0.209 274.0)
Decimal6254075
Display P3color(display-p3 0.373 0.427 0.984)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5f6dfb on white: 4.14:1
AA ✗ fail · AA-large · AAA
Aa
#5f6dfb on black: 5.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0084FF
deuteranopia · #0076F8
tritanopia · #008FAA

Color scale — 50 to 950

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

#F1F3FD
#E4E6FB
#C2C7FA
#929BFC
#5f6dfb
#2437FA
#061BEF
#0516C7
#04129F
#081173
#050B48
Base = 400Lightest = 50 · #F1F3FDDarkest = 950 · #050B48
:root {
  --brand-50: #F1F3FD;
  --brand-100: #E4E6FB;
  --brand-200: #C2C7FA;
  --brand-300: #929BFC;
  --brand-400: #5f6dfb;
  --brand-500: #2437FA;
  --brand-600: #061BEF;
  --brand-700: #0516C7;
  --brand-800: #04129F;
  --brand-900: #081173;
  --brand-950: #050B48;
  --brand: #5f6dfb;
  --brand-ink: #000000;
}

Colors that work with #5f6dfb

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#C0C4ED
Hairlines and dividers
Muted text#4B529B
Captions on the surface
Accent#CB8601
Second voice, not a rival
Dark variant#030E7C
Hover, pressed, headers
Light variant#E6E8FE
Selected rows, tints
Dark surface#141524
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 #5f6dfb

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
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • White 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#FBED5F
Analogous left#5FBBFB
Analogous right#9F5FFB
Split-complement 1#FB9F5F
Split-complement 2#BBFB5F
Triadic 1#FB5F6D
Triadic 2#6DFB5F
Tetradic#FB5FBB

RGB percentages

Red37.3%
Green42.7%
Blue98.4%

CMYK percentages

Cyan62.2%
Magenta56.6%
Yellow0.0%
Key (black)1.6%

Color previews

#5f6dfb text on a black background

contrast 5.07:1

Card sample

#5f6dfb text on a white background

contrast 4.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f6dfb

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.

#5f6dfb 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
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#5f6dfb, answered

What color is #5f6dfb?

#5f6dfb is a light electric blue, closest to Medium Slate Blue (ΔE2000 5.1). It sits at 235° on the hue wheel with 95% saturation and 68% lightness, which reads as cool.

What is the RGB value of #5f6dfb?

rgb(95, 109, 251) — 95 red, 109 green and 251 blue out of 255, or 37.3% / 42.7% / 98.4% by channel.

Is #5f6dfb a light or a dark color?

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

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

Black. It scores 5.07:1 against #5f6dfb, versus 4.14:1 for white — AA at any size.

What is the complementary color of #5f6dfb?

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

What colors go well with #5f6dfb?

For interface work: #F4F5FA as the surface, #C0C4ED for borders, #4B529B for secondary text, #CB8601 as an accent and #030E7C for hover and pressed states. For a palette, the analogous pair #5FBBFB and #9F5FFB stays calm, while #FBED5F is the loudest partner.

What is #5f6dfb in CMYK for printing?

cmyk(62%, 57%, 0%, 2%). 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 #5f6dfb warm or cool?

Cool — it scores 86 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8A5FFB; nudged cooler, #5D8DFD.

Work with #5f6dfb in the Color Lab