Skip to content

#2d5877

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

RGB
45, 88, 119
HSL
205°, 45%, 32%
CMYK
62, 26, 0, 53
Luminance
0.0887

At a glance

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

Hex
#2d5877
Hue
205°
blue
Saturation
45%
vivid
Lightness
32%
dark
Brightness
47%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0887
WCAG relative
Temperature
Cool
98/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
7.57:1
Closest name
Royal Blue
ΔE2000 13.9
Where it sits
Hue205° of 360°
Saturation45%
Lightness32%
Temperature
Warm ← → Cool98% 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#2d5877
RGBrgb(45, 88, 119)
HSLhsl(205, 45%, 32%)
CMYKcmyk(62%, 26%, 0%, 53%)
LABlab(35.7 -4.8 -22.1)
LCHlch(35.7 22.6 257.8)
OKLCHoklch(0.444 0.070 242.0)
Decimal2971767
Display P3color(display-p3 0.176 0.345 0.467)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d5877 on white: 7.57:1
AA ✓ pass · AA-large · AAA
Aa
#2d5877 on black: 2.77:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4A5878
deuteranopia · #405176
tritanopia · #006063

Color scale — 50 to 950

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

#F5F8FA
#EAF1F5
#D1E0EB
#AECBE0
#85B1D1
#5C97C1
#4383B2
#386E94
#2d5877
#244157
#162936
Base = 800Lightest = 50 · #F5F8FADarkest = 950 · #162936
:root {
  --brand-50: #F5F8FA;
  --brand-100: #EAF1F5;
  --brand-200: #D1E0EB;
  --brand-300: #AECBE0;
  --brand-400: #85B1D1;
  --brand-500: #5C97C1;
  --brand-600: #4383B2;
  --brand-700: #386E94;
  --brand-800: #2d5877;
  --brand-900: #244157;
  --brand-950: #162936;
  --brand: #2d5877;
  --brand-ink: #ffffff;
}

Colors that work with #2d5877

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#F4F8FA
Tinted page background
Border#C4D9E9
Hairlines and dividers
Muted text#4B799B
Captions on the surface
Accent#7A372A
Second voice, not a rival
Dark variant#23445D
Hover, pressed, headers
Light variant#ECF3F8
Selected rows, tints
Dark surface#141D24
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 #2d5877

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#774C2D
Analogous left#2D7771
Analogous right#2D3377
Split-complement 1#772D33
Split-complement 2#77712D
Triadic 1#772D58
Triadic 2#58772D
Tetradic#712D77

RGB percentages

Red17.6%
Green34.5%
Blue46.7%

CMYK percentages

Cyan62.2%
Magenta26.1%
Yellow0.0%
Key (black)53.3%

Color previews

#2d5877 text on a black background

contrast 2.77:1

Card sample

#2d5877 text on a white background

contrast 7.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 88, 119, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 88, 119, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d5877;
background: linear-gradient(135deg, #2d5877, #332D77);

Monochromatic scale

Palettes built from #2d5877

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.

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

#2d5877, answered

What color is #2d5877?

#2d5877 is a dark vivid blue, closest to Royal Blue (ΔE2000 13.9). It sits at 205° on the hue wheel with 45% saturation and 32% lightness, which reads as cool.

What is the RGB value of #2d5877?

rgb(45, 88, 119) — 45 red, 88 green and 119 blue out of 255, or 17.6% / 34.5% / 46.7% by channel.

Is #2d5877 a light or a dark color?

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

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

White. It scores 7.57:1 against #2d5877, versus 2.77:1 for black — AAA at any size.

What is the complementary color of #2d5877?

#774C2D sits directly opposite on the wheel. Softer options are the split-complements #772D33 and #77712D, which give the same contrast with far less vibration.

What colors go well with #2d5877?

For interface work: #F4F8FA as the surface, #C4D9E9 for borders, #4B799B for secondary text, #7A372A as an accent and #23445D for hover and pressed states. For a palette, the analogous pair #2D7771 and #2D3377 stays calm, while #774C2D is the loudest partner.

What is #2d5877 in CMYK for printing?

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

Is #2d5877 warm or cool?

Cool — it scores 98 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2D7377; nudged cooler, #254566.

Work with #2d5877 in the Color Lab