Skip to content

#2d6ce2

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

RGB
45, 108, 226
HSL
219°, 76%, 53%
CMYK
80, 52, 0, 11
Luminance
0.1677

At a glance

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

Hex
#2d6ce2
Hue
219°
blue
Saturation
76%
electric
Lightness
53%
balanced
Brightness
89%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1677
WCAG relative
Temperature
Cool
95/100 cool
Color family
Blue
Tone
Electric
Best ink
White
4.82:1
Closest name
Royal Blue
ΔE2000 2.5
Where it sits
Hue219° of 360°
Saturation76%
Lightness53%
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#2d6ce2
RGBrgb(45, 108, 226)
HSLhsl(219, 76%, 53%)
CMYKcmyk(80%, 52%, 0%, 11%)
LABlab(48.0 22.5 -65.6)
LCHlch(48.0 69.4 288.9)
OKLCHoklch(0.559 0.191 261.5)
Decimal2976994
Display P3color(display-p3 0.176 0.424 0.886)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d6ce2 on white: 4.82:1
AA ✓ pass · AA-large · AAA
Aa
#2d6ce2 on black: 4.35:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #127BE6
deuteranopia · #006AE0
tritanopia · #00899D

Color scale — 50 to 950

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

#F3F6FC
#E7EDF9
#C8D7F4
#9CBAF1
#6B98EB
#2d6ce2
#1E5ED7
#194FB3
#143F8F
#133068
#0C1E41
Base = 500Lightest = 50 · #F3F6FCDarkest = 950 · #0C1E41
:root {
  --brand-50: #F3F6FC;
  --brand-100: #E7EDF9;
  --brand-200: #C8D7F4;
  --brand-300: #9CBAF1;
  --brand-400: #6B98EB;
  --brand-500: #2d6ce2;
  --brand-600: #1E5ED7;
  --brand-700: #194FB3;
  --brand-800: #143F8F;
  --brand-900: #133068;
  --brand-950: #0C1E41;
  --brand: #2d6ce2;
  --brand-ink: #ffffff;
}

Colors that work with #2d6ce2

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#4B679B
Captions on the surface
Accent#B75615
Second voice, not a rival
Dark variant#0F3170
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 #2d6ce2

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#E2A32D
Analogous left#2DC6E2
Analogous right#482DE2
Split-complement 1#E2482D
Split-complement 2#C6E22D
Triadic 1#E22D6C
Triadic 2#6CE22D
Tetradic#E22DC6

RGB percentages

Red17.6%
Green42.4%
Blue88.6%

CMYK percentages

Cyan80.1%
Magenta52.2%
Yellow0.0%
Key (black)11.4%

Color previews

#2d6ce2 text on a black background

contrast 4.35:1

Card sample

#2d6ce2 text on a white background

contrast 4.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2d6ce2

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.

#2d6ce2 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#2d6ce2, answered

What color is #2d6ce2?

#2d6ce2 is a balanced electric blue, closest to Royal Blue (ΔE2000 2.5). It sits at 219° on the hue wheel with 76% saturation and 53% lightness, which reads as cool.

What is the RGB value of #2d6ce2?

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

Is #2d6ce2 a light or a dark color?

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

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

White. It scores 4.82:1 against #2d6ce2, versus 4.35:1 for black — AA at any size.

What is the complementary color of #2d6ce2?

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

What colors go well with #2d6ce2?

For interface work: #F4F6FA as the surface, #C0CFED for borders, #4B679B for secondary text, #B75615 as an accent and #0F3170 for hover and pressed states. For a palette, the analogous pair #2DC6E2 and #482DE2 stays calm, while #E2A32D is the loudest partner.

What is #2d6ce2 in CMYK for printing?

cmyk(80%, 52%, 0%, 11%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #2d6ce2 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 #302DE2; nudged cooler, #1B6ADA.

Work with #2d6ce2 in the Color Lab