Skip to content

#2d4f8f

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

RGB
45, 79, 143
HSL
219°, 52%, 37%
CMYK
69, 45, 0, 44
Luminance
0.0813

At a glance

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

Hex
#2d4f8f
Hue
219°
blue
Saturation
52%
vivid
Lightness
37%
dark
Brightness
56%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0813
WCAG relative
Temperature
Cool
95/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
8.00:1
Closest name
Dark Slate Blue
ΔE2000 9.9
Where it sits
Hue219° of 360°
Saturation52%
Lightness37%
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#2d4f8f
RGBrgb(45, 79, 143)
HSLhsl(219, 52%, 37%)
CMYKcmyk(69%, 45%, 0%, 44%)
LABlab(34.3 9.9 -39.1)
LCHlch(34.3 40.4 284.2)
OKLCHoklch(0.436 0.113 261.8)
Decimal2969487
Display P3color(display-p3 0.176 0.310 0.561)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d4f8f on white: 8.00:1
AA ✓ pass · AA-large · AAA
Aa
#2d4f8f on black: 2.63:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #305591
deuteranopia · #204C8E
tritanopia · #005E68

Color scale — 50 to 950

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

#F4F6FA
#E9EEF6
#CFD9ED
#AABEE4
#7F9DD7
#547DC9
#3B67BA
#2d4f8f
#27457C
#20345B
#142139
Base = 700Lightest = 50 · #F4F6FADarkest = 950 · #142139
:root {
  --brand-50: #F4F6FA;
  --brand-100: #E9EEF6;
  --brand-200: #CFD9ED;
  --brand-300: #AABEE4;
  --brand-400: #7F9DD7;
  --brand-500: #547DC9;
  --brand-600: #3B67BA;
  --brand-700: #2d4f8f;
  --brand-800: #27457C;
  --brand-900: #20345B;
  --brand-950: #142139;
  --brand: #2d4f8f;
  --brand-ink: #ffffff;
}

Colors that work with #2d4f8f

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#C1D0EB
Hairlines and dividers
Muted text#4B669B
Captions on the surface
Accent#935429
Second voice, not a rival
Dark variant#1F3661
Hover, pressed, headers
Light variant#ECF0F9
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 #2d4f8f

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#8F6D2D
Analogous left#2D808F
Analogous right#3C2D8F
Split-complement 1#8F3C2D
Split-complement 2#808F2D
Triadic 1#8F2D4F
Triadic 2#4F8F2D
Tetradic#8F2D80

RGB percentages

Red17.6%
Green31.0%
Blue56.1%

CMYK percentages

Cyan68.5%
Magenta44.8%
Yellow0.0%
Key (black)43.9%

Color previews

#2d4f8f text on a black background

contrast 2.63:1

Card sample

#2d4f8f text on a white background

contrast 8.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 79, 143, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 79, 143, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d4f8f;
background: linear-gradient(135deg, #2d4f8f, #4C2D8F);

Monochromatic scale

Palettes built from #2d4f8f

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.

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

#2d4f8f, answered

What color is #2d4f8f?

#2d4f8f is a dark vivid blue, closest to Dark Slate Blue (ΔE2000 9.9). It sits at 219° on the hue wheel with 52% saturation and 37% lightness, which reads as cool.

What is the RGB value of #2d4f8f?

rgb(45, 79, 143) — 45 red, 79 green and 143 blue out of 255, or 17.6% / 31% / 56.1% by channel.

Is #2d4f8f a light or a dark color?

It is a dark color. Relative luminance is 0.0813 and perceived brightness is 32%, so white text on it reaches 8.00:1.

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

White. It scores 8.00:1 against #2d4f8f, versus 2.63:1 for black — AAA at any size.

What is the complementary color of #2d4f8f?

#8F6D2D sits directly opposite on the wheel. Softer options are the split-complements #8F3C2D and #808F2D, which give the same contrast with far less vibration.

What colors go well with #2d4f8f?

For interface work: #F4F6FA as the surface, #C1D0EB for borders, #4B669B for secondary text, #935429 as an accent and #1F3661 for hover and pressed states. For a palette, the analogous pair #2D808F and #3C2D8F stays calm, while #8F6D2D is the loudest partner.

What is #2d4f8f in CMYK for printing?

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

Is #2d4f8f 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 #2F2D8F; nudged cooler, #254B7D.

Work with #2d4f8f in the Color Lab