Skip to content

#4d09ba

a dark, electric violet · cool · closest name: Medium Blue

RGB
77, 9, 186
HSL
263°, 91%, 38%
CMYK
59, 95, 0, 27
Luminance
0.0532

At a glance

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

Hex
#4d09ba
Hue
263°
violet
Saturation
91%
electric
Lightness
38%
dark
Brightness
73%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0532
WCAG relative
Temperature
Cool
70/100 cool
Color family
Violet
Tone
Electric
Best ink
White
10.18:1
Closest name
Medium Blue
ΔE2000 4.8
Where it sits
Hue263° of 360°
Saturation91%
Lightness38%
Temperature
Warm ← → Cool70% 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#4d09ba
RGBrgb(77, 9, 186)
HSLhsl(263, 91%, 38%)
CMYKcmyk(59%, 95%, 0%, 27%)
LABlab(27.6 62.9 -75.8)
LCHlch(27.6 98.5 309.7)
OKLCHoklch(0.406 0.228 287.2)
Decimal5048762
Display P3color(display-p3 0.302 0.035 0.729)

Copy-ready code

/* CSS */
color: #4d09ba;
background-color: #4d09ba;
/* Tailwind (arbitrary) */
class="text-[#4d09ba] bg-[#4d09ba]"
/* SCSS */
$brand: #4d09ba;
/* SwiftUI */
Color(red: 0.302, green: 0.035, blue: 0.729)
/* Android */
Color.parseColor("#4d09ba")
/* Flutter */
Color(0xFF4D09BA)
/* Python / OpenCV (BGR) */
(186, 9, 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 #4d09ba · 10.18:1
Use #ffffffAAA at every size.
Aa
White text · 10.18:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.06:1
AA fail · AA large fail · AAA fail
Reading the other direction: #4d09ba as text scores 10.18:1 on white and 2.06:1 on black.

Accessibility — WCAG contrast

Aa
#4d09ba on white: 10.18:1
AA ✓ pass · AA-large · AAA
Aa
#4d09ba on black: 2.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0045BE
deuteranopia · #003CB7
tritanopia · #104A6D

Color scale — 50 to 950

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

#F6F2FD
#EDE5FB
#D8C3F9
#BB94FA
#995EF7
#7729F5
#610BEA
#4d09ba
#41089C
#310A70
#1F0646
Base = 700Lightest = 50 · #F6F2FDDarkest = 950 · #1F0646
:root {
  --brand-50: #F6F2FD;
  --brand-100: #EDE5FB;
  --brand-200: #D8C3F9;
  --brand-300: #BB94FA;
  --brand-400: #995EF7;
  --brand-500: #7729F5;
  --brand-600: #610BEA;
  --brand-700: #4d09ba;
  --brand-800: #41089C;
  --brand-900: #310A70;
  --brand-950: #1F0646;
  --brand: #4d09ba;
  --brand-ink: #ffffff;
}

Colors that work with #4d09ba

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#F7F4FA
Tinted page background
Border#D1C0ED
Hairlines and dividers
Muted text#6A4B9B
Captions on the surface
Accent#ADC705
Second voice, not a rival
Dark variant#32067A
Hover, pressed, headers
Light variant#F0E7FE
Selected rows, tints
Dark surface#1A1424
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 #4d09ba

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#76BA09
Analogous left#091DBA
Analogous right#A609BA
Split-complement 1#BAA609
Split-complement 2#1DBA09
Triadic 1#BA4D09
Triadic 2#09BA4D
Tetradic#BA091D

RGB percentages

Red30.2%
Green3.5%
Blue72.9%

CMYK percentages

Cyan58.6%
Magenta95.2%
Yellow0.0%
Key (black)27.1%

Color previews

#4d09ba text on a black background

contrast 2.06:1

Card sample

#4d09ba text on a white background

contrast 10.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4d09ba

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.

#4d09ba in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#4d09ba, answered

What color is #4d09ba?

#4d09ba is a dark electric violet, closest to Medium Blue (ΔE2000 4.8). It sits at 263° on the hue wheel with 91% saturation and 38% lightness, which reads as cool.

What is the RGB value of #4d09ba?

rgb(77, 9, 186) — 77 red, 9 green and 186 blue out of 255, or 30.2% / 3.5% / 72.9% by channel.

Is #4d09ba a light or a dark color?

It is a dark color. Relative luminance is 0.0532 and perceived brightness is 30%, so white text on it reaches 10.18:1.

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

White. It scores 10.18:1 against #4d09ba, versus 2.06:1 for black — AAA at any size.

What is the complementary color of #4d09ba?

#76BA09 sits directly opposite on the wheel. Softer options are the split-complements #BAA609 and #1DBA09, which give the same contrast with far less vibration.

What colors go well with #4d09ba?

For interface work: #F7F4FA as the surface, #D1C0ED for borders, #6A4B9B for secondary text, #ADC705 as an accent and #32067A for hover and pressed states. For a palette, the analogous pair #091DBA and #A609BA stays calm, while #76BA09 is the loudest partner.

What is #4d09ba in CMYK for printing?

cmyk(59%, 95%, 0%, 27%). 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 #4d09ba warm or cool?

Cool — it scores 70 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8E09BA; nudged cooler, #0A07BC.

Work with #4d09ba in the Color Lab