Skip to content

#2d4eb8

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

RGB
45, 78, 184
HSL
226°, 61%, 45%
CMYK
76, 58, 0, 28
Luminance
0.0947

At a glance

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

Hex
#2d4eb8
Hue
226°
blue
Saturation
61%
vivid
Lightness
45%
dark
Brightness
72%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0947
WCAG relative
Temperature
Cool
91/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
7.26:1
Closest name
Slate Blue
ΔE2000 10
Where it sits
Hue226° of 360°
Saturation61%
Lightness45%
Temperature
Warm ← → Cool91% 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#2d4eb8
RGBrgb(45, 78, 184)
HSLhsl(226, 61%, 45%)
CMYKcmyk(76%, 58%, 0%, 28%)
LABlab(36.9 26.1 -59.5)
LCHlch(36.9 64.9 293.7)
OKLCHoklch(0.466 0.172 266.5)
Decimal2969272
Display P3color(display-p3 0.176 0.306 0.722)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d4eb8 on white: 7.26:1
AA ✓ pass · AA-large · AAA
Aa
#2d4eb8 on black: 2.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005DBC
deuteranopia · #0051B6
tritanopia · #00687B

Color scale — 50 to 950

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

#F4F5FB
#E8ECF7
#CCD5F0
#A5B5E9
#7890DE
#4B6BD3
#2d4eb8
#2845A4
#203883
#1B2B5F
#111B3C
Base = 600Lightest = 50 · #F4F5FBDarkest = 950 · #111B3C
:root {
  --brand-50: #F4F5FB;
  --brand-100: #E8ECF7;
  --brand-200: #CCD5F0;
  --brand-300: #A5B5E9;
  --brand-400: #7890DE;
  --brand-500: #4B6BD3;
  --brand-600: #2d4eb8;
  --brand-700: #2845A4;
  --brand-800: #203883;
  --brand-900: #1B2B5F;
  --brand-950: #111B3C;
  --brand: #2d4eb8;
  --brand-ink: #ffffff;
}

Colors that work with #2d4eb8

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#C0CAED
Hairlines and dividers
Muted text#4B5E9B
Captions on the surface
Accent#BD7428
Second voice, not a rival
Dark variant#192B66
Hover, pressed, headers
Light variant#EBEEFA
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 #2d4eb8

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#B8972D
Analogous left#2D93B8
Analogous right#522DB8
Split-complement 1#B8522D
Split-complement 2#93B82D
Triadic 1#B82D4E
Triadic 2#4EB82D
Tetradic#B82D93

RGB percentages

Red17.6%
Green30.6%
Blue72.2%

CMYK percentages

Cyan75.5%
Magenta57.6%
Yellow0.0%
Key (black)27.8%

Color previews

#2d4eb8 text on a black background

contrast 2.89:1

Card sample

#2d4eb8 text on a white background

contrast 7.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 78, 184, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 78, 184, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d4eb8;
background: linear-gradient(135deg, #2d4eb8, #692DB8);

Monochromatic scale

Palettes built from #2d4eb8

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.

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

#2d4eb8, answered

What color is #2d4eb8?

#2d4eb8 is a dark vivid blue, closest to Slate Blue (ΔE2000 10). It sits at 226° on the hue wheel with 61% saturation and 45% lightness, which reads as cool.

What is the RGB value of #2d4eb8?

rgb(45, 78, 184) — 45 red, 78 green and 184 blue out of 255, or 17.6% / 30.6% / 72.2% by channel.

Is #2d4eb8 a light or a dark color?

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

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

White. It scores 7.26:1 against #2d4eb8, versus 2.89:1 for black — AAA at any size.

What is the complementary color of #2d4eb8?

#B8972D sits directly opposite on the wheel. Softer options are the split-complements #B8522D and #93B82D, which give the same contrast with far less vibration.

What colors go well with #2d4eb8?

For interface work: #F4F6FA as the surface, #C0CAED for borders, #4B5E9B for secondary text, #BD7428 as an accent and #192B66 for hover and pressed states. For a palette, the analogous pair #2D93B8 and #522DB8 stays calm, while #B8972D is the loudest partner.

What is #2d4eb8 in CMYK for printing?

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

Is #2d4eb8 warm or cool?

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

Work with #2d4eb8 in the Color Lab