Skip to content

#2d6cdb

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

RGB
45, 108, 219
HSL
218°, 71%, 52%
CMYK
80, 51, 0, 14
Luminance
0.1640

At a glance

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

Hex
#2d6cdb
Hue
218°
blue
Saturation
71%
vivid
Lightness
52%
balanced
Brightness
86%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1640
WCAG relative
Temperature
Cool
95/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
4.91:1
Closest name
Royal Blue
ΔE2000 3.1
Where it sits
Hue218° of 360°
Saturation71%
Lightness52%
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#2d6cdb
RGBrgb(45, 108, 219)
HSLhsl(218, 71%, 52%)
CMYKcmyk(80%, 51%, 0%, 14%)
LABlab(47.5 19.9 -62.5)
LCHlch(47.5 65.5 287.6)
OKLCHoklch(0.554 0.182 260.8)
Decimal2976987
Display P3color(display-p3 0.176 0.424 0.859)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d6cdb on white: 4.91:1
AA ✓ pass · AA-large · AAA
Aa
#2d6cdb on black: 4.28:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2379DF
deuteranopia · #0069D9
tritanopia · #008799

Color scale — 50 to 950

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

#F3F6FC
#E7EDF8
#C9D8F2
#9FBCEF
#6F9AE6
#3F79DE
#2d6cdb
#1E52AE
#18428B
#153265
#0D1F3F
Base = 600Lightest = 50 · #F3F6FCDarkest = 950 · #0D1F3F
:root {
  --brand-50: #F3F6FC;
  --brand-100: #E7EDF8;
  --brand-200: #C9D8F2;
  --brand-300: #9FBCEF;
  --brand-400: #6F9AE6;
  --brand-500: #3F79DE;
  --brand-600: #2d6cdb;
  --brand-700: #1E52AE;
  --brand-800: #18428B;
  --brand-900: #153265;
  --brand-950: #0D1F3F;
  --brand: #2d6cdb;
  --brand-ink: #ffffff;
}

Colors that work with #2d6cdb

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#F4F7FA
Tinted page background
Border#C0D0ED
Hairlines and dividers
Muted text#4B689B
Captions on the surface
Accent#E07028
Second voice, not a rival
Dark variant#13336D
Hover, pressed, headers
Light variant#E9F0FB
Selected rows, tints
Dark surface#141A24
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 #2d6cdb

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#DB9C2D
Analogous left#2DC3DB
Analogous right#452DDB
Split-complement 1#DB452D
Split-complement 2#C3DB2D
Triadic 1#DB2D6C
Triadic 2#6CDB2D
Tetradic#DB2DC3

RGB percentages

Red17.6%
Green42.4%
Blue85.9%

CMYK percentages

Cyan79.5%
Magenta50.7%
Yellow0.0%
Key (black)14.1%

Color previews

#2d6cdb text on a black background

contrast 4.28:1

Card sample

#2d6cdb text on a white background

contrast 4.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 108, 219, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 108, 219, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d6cdb;
background: linear-gradient(135deg, #2d6cdb, #622DDB);

Monochromatic scale

Palettes built from #2d6cdb

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.

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

#2d6cdb, answered

What color is #2d6cdb?

#2d6cdb is a balanced vivid blue, closest to Royal Blue (ΔE2000 3.1). It sits at 218° on the hue wheel with 71% saturation and 52% lightness, which reads as cool.

What is the RGB value of #2d6cdb?

rgb(45, 108, 219) — 45 red, 108 green and 219 blue out of 255, or 17.6% / 42.4% / 85.9% by channel.

Is #2d6cdb a light or a dark color?

It is a dark color. Relative luminance is 0.1640 and perceived brightness is 45%, so white text on it reaches 4.91:1.

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

White. It scores 4.91:1 against #2d6cdb, versus 4.28:1 for black — AA at any size.

What is the complementary color of #2d6cdb?

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

What colors go well with #2d6cdb?

For interface work: #F4F7FA as the surface, #C0D0ED for borders, #4B689B for secondary text, #E07028 as an accent and #13336D for hover and pressed states. For a palette, the analogous pair #2DC3DB and #452DDB stays calm, while #DB9C2D is the loudest partner.

What is #2d6cdb in CMYK for printing?

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

Is #2d6cdb 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 #2E2DDB; nudged cooler, #2169CE.

Work with #2d6cdb in the Color Lab