Skip to content

#2d52ba

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

RGB
45, 82, 186
HSL
224°, 61%, 45%
CMYK
76, 56, 0, 27
Luminance
0.1014

At a glance

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

Hex
#2d52ba
Hue
224°
blue
Saturation
61%
vivid
Lightness
45%
balanced
Brightness
73%
HSV value
Perceived
36%
weighted brightness
Luminance
0.1014
WCAG relative
Temperature
Cool
92/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
6.94:1
Closest name
Royal Blue
ΔE2000 9.2
Where it sits
Hue224° of 360°
Saturation61%
Lightness45%
Temperature
Warm ← → Cool92% 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#2d52ba
RGBrgb(45, 82, 186)
HSLhsl(224, 61%, 45%)
CMYKcmyk(76%, 56%, 0%, 27%)
LABlab(38.1 24.2 -58.7)
LCHlch(38.1 63.5 292.4)
OKLCHoklch(0.475 0.170 265.5)
Decimal2970298
Display P3color(display-p3 0.176 0.322 0.729)

Copy-ready code

/* CSS */
color: #2d52ba;
background-color: #2d52ba;
/* Tailwind (arbitrary) */
class="text-[#2d52ba] bg-[#2d52ba]"
/* SCSS */
$brand: #2d52ba;
/* SwiftUI */
Color(red: 0.176, green: 0.322, blue: 0.729)
/* Android */
Color.parseColor("#2d52ba")
/* Flutter */
Color(0xFF2D52BA)
/* Python / OpenCV (BGR) */
(186, 82, 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 #2d52ba · 6.94:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.94:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.03:1
AA fail · AA large pass · AAA fail
Reading the other direction: #2d52ba as text scores 6.94:1 on white and 3.03:1 on black.

Accessibility — WCAG contrast

Aa
#2d52ba on white: 6.94:1
AA ✓ pass · AA-large · AAA
Aa
#2d52ba on black: 3.03:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0060BE
deuteranopia · #0053B8
tritanopia · #006C7E

Color scale — 50 to 950

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

#F4F6FB
#E8ECF7
#CCD5F0
#A5B7E9
#7892DE
#4A6ED3
#2d52ba
#2848A4
#203A83
#1B2D60
#111C3C
Base = 600Lightest = 50 · #F4F6FBDarkest = 950 · #111C3C
:root {
  --brand-50: #F4F6FB;
  --brand-100: #E8ECF7;
  --brand-200: #CCD5F0;
  --brand-300: #A5B7E9;
  --brand-400: #7892DE;
  --brand-500: #4A6ED3;
  --brand-600: #2d52ba;
  --brand-700: #2848A4;
  --brand-800: #203A83;
  --brand-900: #1B2D60;
  --brand-950: #111C3C;
  --brand: #2d52ba;
  --brand-ink: #ffffff;
}

Colors that work with #2d52ba

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#F4F6FA
Tinted page background
Border#C0CCED
Hairlines and dividers
Muted text#4B609B
Captions on the surface
Accent#BF7228
Second voice, not a rival
Dark variant#192D67
Hover, pressed, headers
Light variant#EAEFFA
Selected rows, tints
Dark surface#141824
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 #2d52ba

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
  • 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#BA952D
Analogous left#2D98BA
Analogous right#4F2DBA
Split-complement 1#BA4F2D
Split-complement 2#98BA2D
Triadic 1#BA2D52
Triadic 2#52BA2D
Tetradic#BA2D98

RGB percentages

Red17.6%
Green32.2%
Blue72.9%

CMYK percentages

Cyan75.8%
Magenta55.9%
Yellow0.0%
Key (black)27.1%

Color previews

#2d52ba text on a black background

contrast 3.03:1

Card sample

#2d52ba text on a white background

contrast 6.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 82, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 82, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d52ba;
background: linear-gradient(135deg, #2d52ba, #662DBA);

Monochromatic scale

Palettes built from #2d52ba

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.

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

#2d52ba, answered

What color is #2d52ba?

#2d52ba is a balanced vivid blue, closest to Royal Blue (ΔE2000 9.2). It sits at 224° on the hue wheel with 61% saturation and 45% lightness, which reads as cool.

What is the RGB value of #2d52ba?

rgb(45, 82, 186) — 45 red, 82 green and 186 blue out of 255, or 17.6% / 32.2% / 72.9% by channel.

Is #2d52ba a light or a dark color?

It is a dark color. Relative luminance is 0.1014 and perceived brightness is 36%, so white text on it reaches 6.94:1.

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

White. It scores 6.94:1 against #2d52ba, versus 3.03:1 for black — AA at any size.

What is the complementary color of #2d52ba?

#BA952D sits directly opposite on the wheel. Softer options are the split-complements #BA4F2D and #98BA2D, which give the same contrast with far less vibration.

What colors go well with #2d52ba?

For interface work: #F4F6FA as the surface, #C0CCED for borders, #4B609B for secondary text, #BF7228 as an accent and #192D67 for hover and pressed states. For a palette, the analogous pair #2D98BA and #4F2DBA stays calm, while #BA952D is the loudest partner.

What is #2d52ba in CMYK for printing?

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

Is #2d52ba warm or cool?

Cool — it scores 92 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #3C2DBA; nudged cooler, #2B63BC.

Work with #2d52ba in the Color Lab