Skip to content

#2d28bf

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

RGB
45, 40, 191
HSL
242°, 65%, 45%
CMYK
76, 79, 0, 25
Luminance
0.0584

At a glance

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

Hex
#2d28bf
Hue
242°
blue
Saturation
65%
vivid
Lightness
45%
balanced
Brightness
75%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0584
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.69:1
Closest name
Medium Blue
ΔE2000 4.9
Where it sits
Hue242° of 360°
Saturation65%
Lightness45%
Temperature
Warm ← → Cool82% 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#2d28bf
RGBrgb(45, 40, 191)
HSLhsl(242, 65%, 45%)
CMYKcmyk(76%, 79%, 0%, 25%)
LABlab(29.0 51.5 -76.5)
LCHlch(29.0 92.2 303.9)
OKLCHoklch(0.410 0.222 272.3)
Decimal2959551
Display P3color(display-p3 0.176 0.157 0.749)

Copy-ready code

/* CSS */
color: #2d28bf;
background-color: #2d28bf;
/* Tailwind (arbitrary) */
class="text-[#2d28bf] bg-[#2d28bf]"
/* SCSS */
$brand: #2d28bf;
/* SwiftUI */
Color(red: 0.176, green: 0.157, blue: 0.749)
/* Android */
Color.parseColor("#2d28bf")
/* Flutter */
Color(0xFF2D28BF)
/* Python / OpenCV (BGR) */
(191, 40, 45)

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

Accessibility — WCAG contrast

Aa
#2d28bf on white: 9.69:1
AA ✓ pass · AA-large · AAA
Aa
#2d28bf on black: 2.17:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004CC3
deuteranopia · #003DBC
tritanopia · #005774

Color scale — 50 to 950

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

#F4F3FB
#E8E8F8
#CCCBF1
#A5A2EC
#7774E2
#4A45D8
#2d28bf
#2823A9
#201C87
#1B1862
#110F3D
Base = 600Lightest = 50 · #F4F3FBDarkest = 950 · #110F3D
:root {
  --brand-50: #F4F3FB;
  --brand-100: #E8E8F8;
  --brand-200: #CCCBF1;
  --brand-300: #A5A2EC;
  --brand-400: #7774E2;
  --brand-500: #4A45D8;
  --brand-600: #2d28bf;
  --brand-700: #2823A9;
  --brand-800: #201C87;
  --brand-900: #1B1862;
  --brand-950: #110F3D;
  --brand: #2d28bf;
  --brand-ink: #ffffff;
}

Colors that work with #2d28bf

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#4D4B9B
Captions on the surface
Accent#AD8E1F
Second voice, not a rival
Dark variant#191669
Hover, pressed, headers
Light variant#EAEAFB
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 #2d28bf

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#BABF28
Analogous left#286EBF
Analogous right#7928BF
Split-complement 1#BF7928
Split-complement 2#6EBF28
Triadic 1#BF2D28
Triadic 2#28BF2D
Tetradic#BF286E

RGB percentages

Red17.6%
Green15.7%
Blue74.9%

CMYK percentages

Cyan76.4%
Magenta79.1%
Yellow0.0%
Key (black)25.1%

Color previews

#2d28bf text on a black background

contrast 2.17:1

Card sample

#2d28bf text on a white background

contrast 9.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2d28bf;
Background color
Panel with #2d28bf background
background-color: #2d28bf;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 40, 191, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 40, 191, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d28bf;
background: linear-gradient(135deg, #2d28bf, #9228BF);

Monochromatic scale

Palettes built from #2d28bf

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.

#2d28bf 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.

#2d28bf, answered

What color is #2d28bf?

#2d28bf is a balanced vivid blue, closest to Medium Blue (ΔE2000 4.9). It sits at 242° on the hue wheel with 65% saturation and 45% lightness, which reads as cool.

What is the RGB value of #2d28bf?

rgb(45, 40, 191) — 45 red, 40 green and 191 blue out of 255, or 17.6% / 15.7% / 74.9% by channel.

Is #2d28bf a light or a dark color?

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

Should I use black or white text on #2d28bf?

White. It scores 9.69:1 against #2d28bf, versus 2.17:1 for black — AAA at any size.

What is the complementary color of #2d28bf?

#BABF28 sits directly opposite on the wheel. Softer options are the split-complements #BF7928 and #6EBF28, which give the same contrast with far less vibration.

What colors go well with #2d28bf?

For interface work: #F4F4FA as the surface, #C1C0ED for borders, #4D4B9B for secondary text, #AD8E1F as an accent and #191669 for hover and pressed states. For a palette, the analogous pair #286EBF and #7928BF stays calm, while #BABF28 is the loudest partner.

What is #2d28bf in CMYK for printing?

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

Is #2d28bf warm or cool?

Cool — it scores 82 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6428BF; nudged cooler, #264DC1.

Work with #2d28bf in the Color Lab