Skip to content

#2d28cd

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

RGB
45, 40, 205
HSL
242°, 67%, 48%
CMYK
78, 81, 0, 20
Luminance
0.0648

At a glance

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

Hex
#2d28cd
Hue
242°
blue
Saturation
67%
vivid
Lightness
48%
balanced
Brightness
80%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0648
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.14:1
Closest name
Medium Blue
ΔE2000 5.1
Where it sits
Hue242° of 360°
Saturation67%
Lightness48%
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#2d28cd
RGBrgb(45, 40, 205)
HSLhsl(242, 67%, 48%)
CMYKcmyk(78%, 81%, 0%, 20%)
LABlab(30.6 55.8 -82.1)
LCHlch(30.6 99.3 304.2)
OKLCHoklch(0.426 0.238 271.4)
Decimal2959565
Display P3color(display-p3 0.176 0.157 0.804)

Copy-ready code

/* CSS */
color: #2d28cd;
background-color: #2d28cd;
/* Tailwind (arbitrary) */
class="text-[#2d28cd] bg-[#2d28cd]"
/* SCSS */
$brand: #2d28cd;
/* SwiftUI */
Color(red: 0.176, green: 0.157, blue: 0.804)
/* Android */
Color.parseColor("#2d28cd")
/* Flutter */
Color(0xFF2D28CD)
/* Python / OpenCV (BGR) */
(205, 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 #2d28cd · 9.14:1
Use #ffffffAAA at every size.
Aa
White text · 9.14:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.30:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2d28cd as text scores 9.14:1 on white and 2.30:1 on black.

Accessibility — WCAG contrast

Aa
#2d28cd on white: 9.14:1
AA ✓ pass · AA-large · AAA
Aa
#2d28cd on black: 2.30:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0050D2
deuteranopia · #0040CA
tritanopia · #005C7C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2d28cd 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
#CBCAF1
#A3A1ED
#7672E3
#4843DA
#2d28cd
#2521AB
#1E1B89
#1A1763
#100F3E
Base = 600Lightest = 50 · #F4F3FBDarkest = 950 · #100F3E
:root {
  --brand-50: #F4F3FB;
  --brand-100: #E8E8F8;
  --brand-200: #CBCAF1;
  --brand-300: #A3A1ED;
  --brand-400: #7672E3;
  --brand-500: #4843DA;
  --brand-600: #2d28cd;
  --brand-700: #2521AB;
  --brand-800: #1E1B89;
  --brand-900: #1A1763;
  --brand-950: #100F3E;
  --brand: #2d28cd;
  --brand-ink: #ffffff;
}

Colors that work with #2d28cd

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#AF8E1D
Second voice, not a rival
Dark variant#17156B
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 #2d28cd

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#C8CD28
Analogous left#2875CD
Analogous right#7F28CD
Split-complement 1#CD7F28
Split-complement 2#75CD28
Triadic 1#CD2D28
Triadic 2#28CD2D
Tetradic#CD2875

RGB percentages

Red17.6%
Green15.7%
Blue80.4%

CMYK percentages

Cyan78.0%
Magenta80.5%
Yellow0.0%
Key (black)19.6%

Color previews

#2d28cd text on a black background

contrast 2.30:1

Card sample

#2d28cd text on a white background

contrast 9.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d28cd

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.

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

#2d28cd, answered

What color is #2d28cd?

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

What is the RGB value of #2d28cd?

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

Is #2d28cd a light or a dark color?

It is a dark color. Relative luminance is 0.0648 and perceived brightness is 31%, so white text on it reaches 9.14:1.

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

White. It scores 9.14:1 against #2d28cd, versus 2.30:1 for black — AAA at any size.

What is the complementary color of #2d28cd?

#C8CD28 sits directly opposite on the wheel. Softer options are the split-complements #CD7F28 and #75CD28, which give the same contrast with far less vibration.

What colors go well with #2d28cd?

For interface work: #F4F4FA as the surface, #C1C0ED for borders, #4D4B9B for secondary text, #AF8E1D as an accent and #17156B for hover and pressed states. For a palette, the analogous pair #2875CD and #7F28CD stays calm, while #C8CD28 is the loudest partner.

What is #2d28cd in CMYK for printing?

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

Is #2d28cd 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 #6928CD; nudged cooler, #264FCF.

Work with #2d28cd in the Color Lab