Skip to content

#514dfb

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

RGB
81, 77, 251
HSL
241°, 96%, 64%
CMYK
68, 69, 0, 2
Luminance
0.1402

At a glance

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

Hex
#514dfb
Hue
241°
blue
Saturation
96%
electric
Lightness
64%
balanced
Brightness
98%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1402
WCAG relative
Temperature
Cool
83/100 cool
Color family
Blue
Tone
Electric
Best ink
White
5.52:1
Closest name
Slate Blue
ΔE2000 6.9
Where it sits
Hue241° of 360°
Saturation96%
Lightness64%
Temperature
Warm ← → Cool83% 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#514dfb
RGBrgb(81, 77, 251)
HSLhsl(241, 96%, 64%)
CMYKcmyk(68%, 69%, 0%, 2%)
LABlab(44.3 53.9 -85.7)
LCHlch(44.3 101.2 302.2)
OKLCHoklch(0.542 0.249 275.2)
Decimal5328379
Display P3color(display-p3 0.318 0.302 0.984)

Copy-ready code

/* CSS */
color: #514dfb;
background-color: #514dfb;
/* Tailwind (arbitrary) */
class="text-[#514dfb] bg-[#514dfb]"
/* SCSS */
$brand: #514dfb;
/* SwiftUI */
Color(red: 0.318, green: 0.302, blue: 0.984)
/* Android */
Color.parseColor("#514dfb")
/* Flutter */
Color(0xFF514DFB)
/* Python / OpenCV (BGR) */
(251, 77, 81)

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#ffffff on #514dfb · 5.52:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.52:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.80:1
AA fail · AA large pass · AAA fail
Reading the other direction: #514dfb as text scores 5.52:1 on white and 3.80:1 on black.

Accessibility — WCAG contrast

Aa
#514dfb on white: 5.52:1
AA ✓ pass · AA-large · AAA
Aa
#514dfb on black: 3.80:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0070FF
deuteranopia · #0061F8
tritanopia · #007D9F

Color scale — 50 to 950

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

#F2F1FD
#E4E4FC
#C3C1FA
#9491FD
#514dfb
#2924FA
#0B05EF
#0904C8
#0704A0
#0A0773
#060548
Base = 400Lightest = 50 · #F2F1FDDarkest = 950 · #060548
:root {
  --brand-50: #F2F1FD;
  --brand-100: #E4E4FC;
  --brand-200: #C3C1FA;
  --brand-300: #9491FD;
  --brand-400: #514dfb;
  --brand-500: #2924FA;
  --brand-600: #0B05EF;
  --brand-700: #0904C8;
  --brand-800: #0704A0;
  --brand-900: #0A0773;
  --brand-950: #060548;
  --brand: #514dfb;
  --brand-ink: #ffffff;
}

Colors that work with #514dfb

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F4F4FA
Tinted page background
Border#C1C0ED
Hairlines and dividers
Muted text#4C4B9B
Captions on the surface
Accent#CC9E00
Second voice, not a rival
Dark variant#06037D
Hover, pressed, headers
Light variant#E7E6FE
Selected rows, tints
Dark surface#141424
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 #514dfb

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • 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#F7FB4D
Analogous left#4DA0FB
Analogous right#A84DFB
Split-complement 1#FBA84D
Split-complement 2#A0FB4D
Triadic 1#FB514D
Triadic 2#4DFB51
Tetradic#FB4DA0

RGB percentages

Red31.8%
Green30.2%
Blue98.4%

CMYK percentages

Cyan67.7%
Magenta69.3%
Yellow0.0%
Key (black)1.6%

Color previews

#514dfb text on a black background

contrast 3.80:1

Card sample

#514dfb text on a white background

contrast 5.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #514dfb;
Background color
Panel with #514dfb background
background-color: #514dfb;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #514dfb;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(81, 77, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 77, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #514dfb;
background: linear-gradient(135deg, #514dfb, #C54DFB);

Monochromatic scale

Palettes built from #514dfb

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.

#514dfb 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.

#514dfb, answered

What color is #514dfb?

#514dfb is a balanced electric blue, closest to Slate Blue (ΔE2000 6.9). It sits at 241° on the hue wheel with 96% saturation and 64% lightness, which reads as cool.

What is the RGB value of #514dfb?

rgb(81, 77, 251) — 81 red, 77 green and 251 blue out of 255, or 31.8% / 30.2% / 98.4% by channel.

Is #514dfb a light or a dark color?

It is a dark color. Relative luminance is 0.1402 and perceived brightness is 44%, so white text on it reaches 5.52:1.

Should I use black or white text on #514dfb?

White. It scores 5.52:1 against #514dfb, versus 3.80:1 for black — AA at any size.

What is the complementary color of #514dfb?

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

What colors go well with #514dfb?

For interface work: #F4F4FA as the surface, #C1C0ED for borders, #4C4B9B for secondary text, #CC9E00 as an accent and #06037D for hover and pressed states. For a palette, the analogous pair #4DA0FB and #A84DFB stays calm, while #F7FB4D is the loudest partner.

What is #514dfb in CMYK for printing?

cmyk(68%, 69%, 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 #514dfb warm or cool?

Cool — it scores 83 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #914DFB; nudged cooler, #4B76FD.

Work with #514dfb in the Color Lab