Skip to content

#2828bf

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

RGB
40, 40, 191
HSL
240°, 65%, 45%
CMYK
79, 79, 0, 25
Luminance
0.0573

At a glance

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

Hex
#2828bf
Hue
240°
blue
Saturation
65%
vivid
Lightness
45%
balanced
Brightness
75%
HSV value
Perceived
29%
weighted brightness
Luminance
0.0573
WCAG relative
Temperature
Cool
83/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.79:1
Closest name
Medium Blue
ΔE2000 4.9
Where it sits
Hue240° of 360°
Saturation65%
Lightness45%
Temperature
Warm ← → Cool83% 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#2828bf
RGBrgb(40, 40, 191)
HSLhsl(240, 65%, 45%)
CMYKcmyk(79%, 79%, 0%, 25%)
LABlab(28.7 51.2 -77.0)
LCHlch(28.7 92.5 303.6)
OKLCHoklch(0.408 0.223 270.8)
Decimal2631871
Display P3color(display-p3 0.157 0.157 0.749)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#2828bf on white: 9.79:1
AA ✓ pass · AA-large · AAA
Aa
#2828bf on black: 2.15:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004BC3
deuteranopia · #003CBC
tritanopia · #005774

Color scale — 50 to 950

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

#F3F3FB
#E8E8F8
#CBCBF1
#A2A2EC
#7474E2
#4545D8
#2828bf
#2323A9
#1C1C87
#181862
#0F0F3D
Base = 600Lightest = 50 · #F3F3FBDarkest = 950 · #0F0F3D
:root {
  --brand-50: #F3F3FB;
  --brand-100: #E8E8F8;
  --brand-200: #CBCBF1;
  --brand-300: #A2A2EC;
  --brand-400: #7474E2;
  --brand-500: #4545D8;
  --brand-600: #2828bf;
  --brand-700: #2323A9;
  --brand-800: #1C1C87;
  --brand-900: #181862;
  --brand-950: #0F0F3D;
  --brand: #2828bf;
  --brand-ink: #ffffff;
}

Colors that work with #2828bf

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#C0C0ED
Hairlines and dividers
Muted text#4B4B9B
Captions on the surface
Accent#AD8A1F
Second voice, not a rival
Dark variant#161669
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 #2828bf

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#BFBF28
Analogous left#2874BF
Analogous right#7428BF
Split-complement 1#BF7428
Split-complement 2#74BF28
Triadic 1#BF2828
Triadic 2#28BF28
Tetradic#BF2874

RGB percentages

Red15.7%
Green15.7%
Blue74.9%

CMYK percentages

Cyan79.1%
Magenta79.1%
Yellow0.0%
Key (black)25.1%

Color previews

#2828bf text on a black background

contrast 2.15:1

Card sample

#2828bf text on a white background

contrast 9.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2828bf;
Background color
Panel with #2828bf background
background-color: #2828bf;
Text shadow — hex

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2828bf

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.

#2828bf 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.

#2828bf, answered

What color is #2828bf?

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

What is the RGB value of #2828bf?

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

Is #2828bf a light or a dark color?

It is a dark color. Relative luminance is 0.0573 and perceived brightness is 29%, so white text on it reaches 9.79:1.

Should I use black or white text on #2828bf?

White. It scores 9.79:1 against #2828bf, versus 2.15:1 for black — AAA at any size.

What is the complementary color of #2828bf?

#BFBF28 sits directly opposite on the wheel. Softer options are the split-complements #BF7428 and #74BF28, which give the same contrast with far less vibration.

What colors go well with #2828bf?

For interface work: #F4F4FA as the surface, #C0C0ED for borders, #4B4B9B for secondary text, #AD8A1F as an accent and #161669 for hover and pressed states. For a palette, the analogous pair #2874BF and #7428BF stays calm, while #BFBF28 is the loudest partner.

What is #2828bf in CMYK for printing?

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

Is #2828bf warm or cool?

Cool — it scores 83 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5F28BF; nudged cooler, #264FC1.

Work with #2828bf in the Color Lab