Skip to content

#5134ad

a dark, vivid blue · cool · closest name: Rebecca Purple

RGB
81, 52, 173
HSL
254°, 54%, 44%
CMYK
53, 70, 0, 32
Luminance
0.0722

At a glance

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

Hex
#5134ad
Hue
254°
blue
Saturation
54%
vivid
Lightness
44%
dark
Brightness
68%
HSV value
Perceived
33%
weighted brightness
Luminance
0.0722
WCAG relative
Temperature
Cool
75/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
8.59:1
Closest name
Rebecca Purple
ΔE2000 5.6
Where it sits
Hue254° of 360°
Saturation54%
Lightness44%
Temperature
Warm ← → Cool75% 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#5134ad
RGBrgb(81, 52, 173)
HSLhsl(254, 54%, 44%)
CMYKcmyk(53%, 70%, 0%, 32%)
LABlab(32.3 43.7 -60.3)
LCHlch(32.3 74.5 306.0)
OKLCHoklch(0.435 0.181 287.3)
Decimal5321901
Display P3color(display-p3 0.318 0.204 0.678)

Copy-ready code

/* CSS */
color: #5134ad;
background-color: #5134ad;
/* Tailwind (arbitrary) */
class="text-[#5134ad] bg-[#5134ad]"
/* SCSS */
$brand: #5134ad;
/* SwiftUI */
Color(red: 0.318, green: 0.204, blue: 0.678)
/* Android */
Color.parseColor("#5134ad")
/* Flutter */
Color(0xFF5134AD)
/* Python / OpenCV (BGR) */
(173, 52, 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 #5134ad · 8.59:1
Use #ffffffAAA at every size.
Aa
White text · 8.59:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.44:1
AA fail · AA large fail · AAA fail
Reading the other direction: #5134ad as text scores 8.59:1 on white and 2.44:1 on black.

Accessibility — WCAG contrast

Aa
#5134ad on white: 8.59:1
AA ✓ pass · AA-large · AAA
Aa
#5134ad on black: 2.44:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004FB1
deuteranopia · #0049AB
tritanopia · #2D536C

Color scale — 50 to 950

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

#F6F4FB
#ECE9F6
#D6CEEE
#B7A9E5
#937ED8
#6F52CB
#5134ad
#492F9D
#3B267E
#2D1F5B
#1C1339
Base = 600Lightest = 50 · #F6F4FBDarkest = 950 · #1C1339
:root {
  --brand-50: #F6F4FB;
  --brand-100: #ECE9F6;
  --brand-200: #D6CEEE;
  --brand-300: #B7A9E5;
  --brand-400: #937ED8;
  --brand-500: #6F52CB;
  --brand-600: #5134ad;
  --brand-700: #492F9D;
  --brand-800: #3B267E;
  --brand-900: #2D1F5B;
  --brand-950: #1C1339;
  --brand: #5134ad;
  --brand-ink: #ffffff;
}

Colors that work with #5134ad

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#F6F4FA
Tinted page background
Border#CBC0EC
Hairlines and dividers
Muted text#5E4B9B
Captions on the surface
Accent#A1A02B
Second voice, not a rival
Dark variant#2E1D62
Hover, pressed, headers
Light variant#EFEBF9
Selected rows, tints
Dark surface#181424
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 #5134ad

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black 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#90AD34
Analogous left#3453AD
Analogous right#8D34AD
Split-complement 1#AD8D34
Split-complement 2#53AD34
Triadic 1#AD5134
Triadic 2#34AD51
Tetradic#AD3453

RGB percentages

Red31.8%
Green20.4%
Blue67.8%

CMYK percentages

Cyan53.2%
Magenta69.9%
Yellow0.0%
Key (black)32.2%

Color previews

#5134ad text on a black background

contrast 2.44:1

Card sample

#5134ad text on a white background

contrast 8.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5134ad;
Background color
Panel with #5134ad background
background-color: #5134ad;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5134ad;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(81, 52, 173, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 52, 173, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5134ad;
background: linear-gradient(135deg, #5134ad, #A234AD);

Monochromatic scale

Palettes built from #5134ad

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.

#5134ad 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.

#5134ad, answered

What color is #5134ad?

#5134ad is a dark vivid blue, closest to Rebecca Purple (ΔE2000 5.6). It sits at 254° on the hue wheel with 54% saturation and 44% lightness, which reads as cool.

What is the RGB value of #5134ad?

rgb(81, 52, 173) — 81 red, 52 green and 173 blue out of 255, or 31.8% / 20.4% / 67.8% by channel.

Is #5134ad a light or a dark color?

It is a dark color. Relative luminance is 0.0722 and perceived brightness is 33%, so white text on it reaches 8.59:1.

Should I use black or white text on #5134ad?

White. It scores 8.59:1 against #5134ad, versus 2.44:1 for black — AAA at any size.

What is the complementary color of #5134ad?

#90AD34 sits directly opposite on the wheel. Softer options are the split-complements #AD8D34 and #53AD34, which give the same contrast with far less vibration.

What colors go well with #5134ad?

For interface work: #F6F4FA as the surface, #CBC0EC for borders, #5E4B9B for secondary text, #A1A02B as an accent and #2E1D62 for hover and pressed states. For a palette, the analogous pair #3453AD and #8D34AD stays calm, while #90AD34 is the loudest partner.

What is #5134ad in CMYK for printing?

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

Is #5134ad warm or cool?

Cool — it scores 75 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7D34AD; nudged cooler, #3242AF.

Work with #5134ad in the Color Lab