Skip to content

#4d2fd0

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

RGB
77, 47, 208
HSL
251°, 63%, 50%
CMYK
63, 77, 0, 18
Luminance
0.0816

At a glance

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

Hex
#4d2fd0
Hue
251°
blue
Saturation
63%
vivid
Lightness
50%
balanced
Brightness
82%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0816
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
7.98:1
Closest name
Blue
ΔE2000 6.3
Where it sits
Hue251° of 360°
Saturation63%
Lightness50%
Temperature
Warm ← → Cool77% 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#4d2fd0
RGBrgb(77, 47, 208)
HSLhsl(251, 63%, 50%)
CMYKcmyk(63%, 77%, 0%, 18%)
LABlab(34.3 56.0 -77.6)
LCHlch(34.3 95.7 305.8)
OKLCHoklch(0.459 0.228 281.0)
Decimal5058512
Display P3color(display-p3 0.302 0.184 0.816)

Copy-ready code

/* CSS */
color: #4d2fd0;
background-color: #4d2fd0;
/* Tailwind (arbitrary) */
class="text-[#4d2fd0] bg-[#4d2fd0]"
/* SCSS */
$brand: #4d2fd0;
/* SwiftUI */
Color(red: 0.302, green: 0.184, blue: 0.816)
/* Android */
Color.parseColor("#4d2fd0")
/* Flutter */
Color(0xFF4D2FD0)
/* Python / OpenCV (BGR) */
(208, 47, 77)

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 #4d2fd0 · 7.98:1
Use #ffffffAAA at every size.
Aa
White text · 7.98:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.63:1
AA fail · AA large fail · AAA fail
Reading the other direction: #4d2fd0 as text scores 7.98:1 on white and 2.63:1 on black.

Accessibility — WCAG contrast

Aa
#4d2fd0 on white: 7.98:1
AA ✓ pass · AA-large · AAA
Aa
#4d2fd0 on black: 2.63:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0056D5
deuteranopia · #004BCD
tritanopia · #005F7F

Color scale — 50 to 950

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

#F5F4FB
#EBE8F7
#D2CBF0
#B1A4EA
#8A76E0
#6248D6
#4d2fd0
#3E26A6
#311E85
#271A61
#18103C
Base = 600Lightest = 50 · #F5F4FBDarkest = 950 · #18103C
:root {
  --brand-50: #F5F4FB;
  --brand-100: #EBE8F7;
  --brand-200: #D2CBF0;
  --brand-300: #B1A4EA;
  --brand-400: #8A76E0;
  --brand-500: #6248D6;
  --brand-600: #4d2fd0;
  --brand-700: #3E26A6;
  --brand-800: #311E85;
  --brand-900: #271A61;
  --brand-950: #18103C;
  --brand: #4d2fd0;
  --brand-ink: #ffffff;
}

Colors that work with #4d2fd0

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#C8C0ED
Hairlines and dividers
Muted text#5A4B9B
Captions on the surface
Accent#AAA222
Second voice, not a rival
Dark variant#271868
Hover, pressed, headers
Light variant#EDEAFA
Selected rows, tints
Dark surface#171424
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 #4d2fd0

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
  • Text on black or near-black surfaces
  • 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#B2D02F
Analogous left#2F61D0
Analogous right#9E2FD0
Split-complement 1#D09E2F
Split-complement 2#61D02F
Triadic 1#D04D2F
Triadic 2#2FD04D
Tetradic#D02F61

RGB percentages

Red30.2%
Green18.4%
Blue81.6%

CMYK percentages

Cyan63.0%
Magenta77.4%
Yellow0.0%
Key (black)18.4%

Color previews

#4d2fd0 text on a black background

contrast 2.63:1

Card sample

#4d2fd0 text on a white background

contrast 7.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4d2fd0;
Background color
Panel with #4d2fd0 background
background-color: #4d2fd0;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #4d2fd0;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(77, 47, 208, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(77, 47, 208, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4d2fd0;
background: linear-gradient(135deg, #4d2fd0, #B82FD0);

Monochromatic scale

Palettes built from #4d2fd0

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.

#4d2fd0 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.

#4d2fd0, answered

What color is #4d2fd0?

#4d2fd0 is a balanced vivid blue, closest to Blue (ΔE2000 6.3). It sits at 251° on the hue wheel with 63% saturation and 50% lightness, which reads as cool.

What is the RGB value of #4d2fd0?

rgb(77, 47, 208) — 77 red, 47 green and 208 blue out of 255, or 30.2% / 18.4% / 81.6% by channel.

Is #4d2fd0 a light or a dark color?

It is a dark color. Relative luminance is 0.0816 and perceived brightness is 35%, so white text on it reaches 7.98:1.

Should I use black or white text on #4d2fd0?

White. It scores 7.98:1 against #4d2fd0, versus 2.63:1 for black — AAA at any size.

What is the complementary color of #4d2fd0?

#B2D02F sits directly opposite on the wheel. Softer options are the split-complements #D09E2F and #61D02F, which give the same contrast with far less vibration.

What colors go well with #4d2fd0?

For interface work: #F5F4FA as the surface, #C8C0ED for borders, #5A4B9B for secondary text, #AAA222 as an accent and #271868 for hover and pressed states. For a palette, the analogous pair #2F61D0 and #9E2FD0 stays calm, while #B2D02F is the loudest partner.

What is #4d2fd0 in CMYK for printing?

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

Is #4d2fd0 warm or cool?

Cool — it scores 77 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #882FD0; nudged cooler, #2C4AD3.

Work with #4d2fd0 in the Color Lab