Skip to content

#1d52ba

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

RGB
29, 82, 186
HSL
220°, 73%, 42%
CMYK
84, 56, 0, 27
Luminance
0.0984

At a glance

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

Hex
#1d52ba
Hue
220°
blue
Saturation
73%
vivid
Lightness
42%
dark
Brightness
73%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0984
WCAG relative
Temperature
Cool
95/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
7.08:1
Closest name
Royal Blue
ΔE2000 9.5
Where it sits
Hue220° of 360°
Saturation73%
Lightness42%
Temperature
Warm ← → Cool95% 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#1d52ba
RGBrgb(29, 82, 186)
HSLhsl(220, 73%, 42%)
CMYKcmyk(84%, 56%, 0%, 27%)
LABlab(37.5 22.6 -59.6)
LCHlch(37.5 63.7 290.8)
OKLCHoklch(0.470 0.174 261.9)
Decimal1921722
Display P3color(display-p3 0.114 0.322 0.729)

Copy-ready code

/* CSS */
color: #1d52ba;
background-color: #1d52ba;
/* Tailwind (arbitrary) */
class="text-[#1d52ba] bg-[#1d52ba]"
/* SCSS */
$brand: #1d52ba;
/* SwiftUI */
Color(red: 0.114, green: 0.322, blue: 0.729)
/* Android */
Color.parseColor("#1d52ba")
/* Flutter */
Color(0xFF1D52BA)
/* Python / OpenCV (BGR) */
(186, 82, 29)

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

Accessibility — WCAG contrast

Aa
#1d52ba on white: 7.08:1
AA ✓ pass · AA-large · AAA
Aa
#1d52ba on black: 2.97:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0060BE
deuteranopia · #0052B8
tritanopia · #006C7E

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #1d52ba is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F3F6FC
#E7EDF8
#C9D7F3
#9EBAF0
#6D97E8
#3D74E1
#215ED4
#1d52ba
#163E8D
#143066
#0D1E40
Base = 700Lightest = 50 · #F3F6FCDarkest = 950 · #0D1E40
:root {
  --brand-50: #F3F6FC;
  --brand-100: #E7EDF8;
  --brand-200: #C9D7F3;
  --brand-300: #9EBAF0;
  --brand-400: #6D97E8;
  --brand-500: #3D74E1;
  --brand-600: #215ED4;
  --brand-700: #1d52ba;
  --brand-800: #163E8D;
  --brand-900: #143066;
  --brand-950: #0D1E40;
  --brand: #1d52ba;
  --brand-ink: #ffffff;
}

Colors that work with #1d52ba

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#C0CFED
Hairlines and dividers
Muted text#4B669B
Captions on the surface
Accent#BE5D19
Second voice, not a rival
Dark variant#11316E
Hover, pressed, headers
Light variant#E9EFFC
Selected rows, tints
Dark surface#141924
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 #1d52ba

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#BA851D
Analogous left#1DA1BA
Analogous right#361DBA
Split-complement 1#BA361D
Split-complement 2#A1BA1D
Triadic 1#BA1D52
Triadic 2#52BA1D
Tetradic#BA1DA1

RGB percentages

Red11.4%
Green32.2%
Blue72.9%

CMYK percentages

Cyan84.4%
Magenta55.9%
Yellow0.0%
Key (black)27.1%

Color previews

#1d52ba text on a black background

contrast 2.97:1

Card sample

#1d52ba text on a white background

contrast 7.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1d52ba

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.

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

#1d52ba, answered

What color is #1d52ba?

#1d52ba is a dark vivid blue, closest to Royal Blue (ΔE2000 9.5). It sits at 220° on the hue wheel with 73% saturation and 42% lightness, which reads as cool.

What is the RGB value of #1d52ba?

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

Is #1d52ba a light or a dark color?

It is a dark color. Relative luminance is 0.0984 and perceived brightness is 35%, so white text on it reaches 7.08:1.

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

White. It scores 7.08:1 against #1d52ba, versus 2.97:1 for black — AAA at any size.

What is the complementary color of #1d52ba?

#BA851D sits directly opposite on the wheel. Softer options are the split-complements #BA361D and #A1BA1D, which give the same contrast with far less vibration.

What colors go well with #1d52ba?

For interface work: #F4F6FA as the surface, #C0CFED for borders, #4B669B for secondary text, #BE5D19 as an accent and #11316E for hover and pressed states. For a palette, the analogous pair #1DA1BA and #361DBA stays calm, while #BA851D is the loudest partner.

What is #1d52ba in CMYK for printing?

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

Is #1d52ba warm or cool?

Cool — it scores 95 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #221DBA; nudged cooler, #1852A6.

Work with #1d52ba in the Color Lab