Skip to content

#2d4da4

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

RGB
45, 77, 164
HSL
224°, 57%, 41%
CMYK
73, 53, 0, 36
Luminance
0.0855

At a glance

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

Hex
#2d4da4
Hue
224°
blue
Saturation
57%
vivid
Lightness
41%
dark
Brightness
64%
HSV value
Perceived
33%
weighted brightness
Luminance
0.0855
WCAG relative
Temperature
Cool
92/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
7.75:1
Closest name
Dark Slate Blue
ΔE2000 9
Where it sits
Hue224° of 360°
Saturation57%
Lightness41%
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#2d4da4
RGBrgb(45, 77, 164)
HSLhsl(224, 57%, 41%)
CMYKcmyk(73%, 53%, 0%, 36%)
LABlab(35.1 19.2 -50.5)
LCHlch(35.1 54.0 290.8)
OKLCHoklch(0.447 0.146 265.6)
Decimal2968996
Display P3color(display-p3 0.176 0.302 0.643)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d4da4 on white: 7.75:1
AA ✓ pass · AA-large · AAA
Aa
#2d4da4 on black: 2.71:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1258A7
deuteranopia · #004DA2
tritanopia · #006271

Color scale — 50 to 950

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

#F4F6FB
#E9EDF6
#CDD6EE
#A7B8E7
#7B95DB
#4F71CF
#355AC0
#2d4da4
#233C80
#1D2E5D
#121D3A
Base = 700Lightest = 50 · #F4F6FBDarkest = 950 · #121D3A
:root {
  --brand-50: #F4F6FB;
  --brand-100: #E9EDF6;
  --brand-200: #CDD6EE;
  --brand-300: #A7B8E7;
  --brand-400: #7B95DB;
  --brand-500: #4F71CF;
  --brand-600: #355AC0;
  --brand-700: #2d4da4;
  --brand-800: #233C80;
  --brand-900: #1D2E5D;
  --brand-950: #121D3A;
  --brand: #2d4da4;
  --brand-ink: #ffffff;
}

Colors that work with #2d4da4

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#A86629
Second voice, not a rival
Dark variant#1B2F64
Hover, pressed, headers
Light variant#EBEFFA
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 #2d4da4

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#A4842D
Analogous left#2D88A4
Analogous right#492DA4
Split-complement 1#A4492D
Split-complement 2#88A42D
Triadic 1#A42D4D
Triadic 2#4DA42D
Tetradic#A42D88

RGB percentages

Red17.6%
Green30.2%
Blue64.3%

CMYK percentages

Cyan72.6%
Magenta53.0%
Yellow0.0%
Key (black)35.7%

Color previews

#2d4da4 text on a black background

contrast 2.71:1

Card sample

#2d4da4 text on a white background

contrast 7.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 77, 164, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 77, 164, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d4da4;
background: linear-gradient(135deg, #2d4da4, #5C2DA4);

Monochromatic scale

Palettes built from #2d4da4

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.

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

#2d4da4, answered

What color is #2d4da4?

#2d4da4 is a dark vivid blue, closest to Dark Slate Blue (ΔE2000 9). It sits at 224° on the hue wheel with 57% saturation and 41% lightness, which reads as cool.

What is the RGB value of #2d4da4?

rgb(45, 77, 164) — 45 red, 77 green and 164 blue out of 255, or 17.6% / 30.2% / 64.3% by channel.

Is #2d4da4 a light or a dark color?

It is a dark color. Relative luminance is 0.0855 and perceived brightness is 33%, so white text on it reaches 7.75:1.

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

White. It scores 7.75:1 against #2d4da4, versus 2.71:1 for black — AAA at any size.

What is the complementary color of #2d4da4?

#A4842D sits directly opposite on the wheel. Softer options are the split-complements #A4492D and #88A42D, which give the same contrast with far less vibration.

What colors go well with #2d4da4?

For interface work: #F4F6FA as the surface, #C0CCED for borders, #4B609B for secondary text, #A86629 as an accent and #1B2F64 for hover and pressed states. For a palette, the analogous pair #2D88A4 and #492DA4 stays calm, while #A4842D is the loudest partner.

What is #2d4da4 in CMYK for printing?

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

Is #2d4da4 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 #392DA4; nudged cooler, #2B5CA6.

Work with #2d4da4 in the Color Lab