Skip to content

#2f28bf

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

RGB
47, 40, 191
HSL
243°, 65%, 45%
CMYK
75, 79, 0, 25
Luminance
0.0588

At a glance

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

Hex
#2f28bf
Hue
243°
blue
Saturation
65%
vivid
Lightness
45%
balanced
Brightness
75%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0588
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.65:1
Closest name
Medium Blue
ΔE2000 5
Where it sits
Hue243° 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#2f28bf
RGBrgb(47, 40, 191)
HSLhsl(243, 65%, 45%)
CMYKcmyk(75%, 79%, 0%, 25%)
LABlab(29.1 51.6 -76.3)
LCHlch(29.1 92.2 304.1)
OKLCHoklch(0.411 0.221 272.9)
Decimal3090623
Display P3color(display-p3 0.184 0.157 0.749)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#2f28bf on white: 9.65:1
AA ✓ pass · AA-large · AAA
Aa
#2f28bf on black: 2.18: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. #2f28bf 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
#E9E8F8
#CDCBF1
#A6A2EC
#7974E2
#4C45D8
#2f28bf
#2A23A9
#211C87
#1C1862
#110F3D
Base = 600Lightest = 50 · #F4F3FBDarkest = 950 · #110F3D
:root {
  --brand-50: #F4F3FB;
  --brand-100: #E9E8F8;
  --brand-200: #CDCBF1;
  --brand-300: #A6A2EC;
  --brand-400: #7974E2;
  --brand-500: #4C45D8;
  --brand-600: #2f28bf;
  --brand-700: #2A23A9;
  --brand-800: #211C87;
  --brand-900: #1C1862;
  --brand-950: #110F3D;
  --brand: #2f28bf;
  --brand-ink: #ffffff;
}

Colors that work with #2f28bf

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#C2C0ED
Hairlines and dividers
Muted text#4E4B9B
Captions on the surface
Accent#AD901F
Second voice, not a rival
Dark variant#1A1669
Hover, pressed, headers
Light variant#EBEAFB
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 #2f28bf

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#B8BF28
Analogous left#286CBF
Analogous right#7B28BF
Split-complement 1#BF7B28
Split-complement 2#6CBF28
Triadic 1#BF2F28
Triadic 2#28BF2F
Tetradic#BF286C

RGB percentages

Red18.4%
Green15.7%
Blue74.9%

CMYK percentages

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

Color previews

#2f28bf text on a black background

contrast 2.18:1

Card sample

#2f28bf text on a white background

contrast 9.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f28bf

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.

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

#2f28bf, answered

What color is #2f28bf?

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

What is the RGB value of #2f28bf?

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

Is #2f28bf a light or a dark color?

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

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

White. It scores 9.65:1 against #2f28bf, versus 2.18:1 for black — AAA at any size.

What is the complementary color of #2f28bf?

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

What colors go well with #2f28bf?

For interface work: #F5F4FA as the surface, #C2C0ED for borders, #4E4B9B for secondary text, #AD901F as an accent and #1A1669 for hover and pressed states. For a palette, the analogous pair #286CBF and #7B28BF stays calm, while #B8BF28 is the loudest partner.

What is #2f28bf in CMYK for printing?

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

Is #2f28bf 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 #6628BF; nudged cooler, #264DC1.

Work with #2f28bf in the Color Lab