Skip to content

#5148df

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

RGB
81, 72, 223
HSL
244°, 70%, 58%
CMYK
64, 68, 0, 13
Luminance
0.1171

At a glance

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

Hex
#5148df
Hue
244°
blue
Saturation
70%
vivid
Lightness
58%
balanced
Brightness
87%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1171
WCAG relative
Temperature
Cool
81/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
6.28:1
Closest name
Slate Blue
ΔE2000 6.3
Where it sits
Hue244° of 360°
Saturation70%
Lightness58%
Temperature
Warm ← → Cool81% 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#5148df
RGBrgb(81, 72, 223)
HSLhsl(244, 70%, 58%)
CMYKcmyk(64%, 68%, 0%, 13%)
LABlab(40.8 47.9 -75.6)
LCHlch(40.8 89.5 302.3)
OKLCHoklch(0.509 0.220 277.8)
Decimal5327071
Display P3color(display-p3 0.318 0.282 0.875)

Copy-ready code

/* CSS */
color: #5148df;
background-color: #5148df;
/* Tailwind (arbitrary) */
class="text-[#5148df] bg-[#5148df]"
/* SCSS */
$brand: #5148df;
/* SwiftUI */
Color(red: 0.318, green: 0.282, blue: 0.875)
/* Android */
Color.parseColor("#5148df")
/* Flutter */
Color(0xFF5148DF)
/* Python / OpenCV (BGR) */
(223, 72, 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 #5148df · 6.28:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.28:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.34:1
AA fail · AA large pass · AAA fail
Reading the other direction: #5148df as text scores 6.28:1 on white and 3.34:1 on black.

Accessibility — WCAG contrast

Aa
#5148df on white: 6.28:1
AA ✓ pass · AA-large · AAA
Aa
#5148df on black: 3.34:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0066E4
deuteranopia · #005ADC
tritanopia · #00708E

Color scale — 50 to 950

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

#F4F3FC
#E8E7F8
#CCC9F2
#A4A0EE
#7770E6
#5148df
#2F24D0
#271EAE
#1F188B
#1A1665
#110E3F
Base = 500Lightest = 50 · #F4F3FCDarkest = 950 · #110E3F
:root {
  --brand-50: #F4F3FC;
  --brand-100: #E8E7F8;
  --brand-200: #CCC9F2;
  --brand-300: #A4A0EE;
  --brand-400: #7770E6;
  --brand-500: #5148df;
  --brand-600: #2F24D0;
  --brand-700: #271EAE;
  --brand-800: #1F188B;
  --brand-900: #1A1665;
  --brand-950: #110E3F;
  --brand: #5148df;
  --brand-ink: #ffffff;
}

Colors that work with #5148df

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#F5F4FA
Tinted page background
Border#C2C0ED
Hairlines and dividers
Muted text#4F4B9B
Captions on the surface
Accent#B1951B
Second voice, not a rival
Dark variant#18136D
Hover, pressed, headers
Light variant#EAE9FB
Selected rows, tints
Dark surface#151424
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 #5148df

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#D6DF48
Analogous left#488ADF
Analogous right#9C48DF
Split-complement 1#DF9C48
Split-complement 2#8ADF48
Triadic 1#DF5148
Triadic 2#48DF51
Tetradic#DF488A

RGB percentages

Red31.8%
Green28.2%
Blue87.5%

CMYK percentages

Cyan63.7%
Magenta67.7%
Yellow0.0%
Key (black)12.5%

Color previews

#5148df text on a black background

contrast 3.34:1

Card sample

#5148df text on a white background

contrast 6.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(81, 72, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 72, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5148df;
background: linear-gradient(135deg, #5148df, #B648DF);

Monochromatic scale

Palettes built from #5148df

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.

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

#5148df, answered

What color is #5148df?

#5148df is a balanced vivid blue, closest to Slate Blue (ΔE2000 6.3). It sits at 244° on the hue wheel with 70% saturation and 58% lightness, which reads as cool.

What is the RGB value of #5148df?

rgb(81, 72, 223) — 81 red, 72 green and 223 blue out of 255, or 31.8% / 28.2% / 87.5% by channel.

Is #5148df a light or a dark color?

It is a dark color. Relative luminance is 0.1171 and perceived brightness is 41%, so white text on it reaches 6.28:1.

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

White. It scores 6.28:1 against #5148df, versus 3.34:1 for black — AA at any size.

What is the complementary color of #5148df?

#D6DF48 sits directly opposite on the wheel. Softer options are the split-complements #DF9C48 and #8ADF48, which give the same contrast with far less vibration.

What colors go well with #5148df?

For interface work: #F5F4FA as the surface, #C2C0ED for borders, #4F4B9B for secondary text, #B1951B as an accent and #18136D for hover and pressed states. For a palette, the analogous pair #488ADF and #9C48DF stays calm, while #D6DF48 is the loudest partner.

What is #5148df in CMYK for printing?

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

Is #5148df warm or cool?

Cool — it scores 81 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8848DF; nudged cooler, #466CE1.

Work with #5148df in the Color Lab