Skip to content

#2c4ba4

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

RGB
44, 75, 164
HSL
225°, 58%, 41%
CMYK
73, 54, 0, 36
Luminance
0.0825

At a glance

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

Hex
#2c4ba4
Hue
225°
blue
Saturation
58%
vivid
Lightness
41%
dark
Brightness
64%
HSV value
Perceived
33%
weighted brightness
Luminance
0.0825
WCAG relative
Temperature
Cool
92/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
7.93:1
Closest name
Dark Slate Blue
ΔE2000 8.5
Where it sits
Hue225° of 360°
Saturation58%
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#2c4ba4
RGBrgb(44, 75, 164)
HSLhsl(225, 58%, 41%)
CMYKcmyk(73%, 54%, 0%, 36%)
LABlab(34.5 20.4 -51.5)
LCHlch(34.5 55.3 291.6)
OKLCHoklch(0.443 0.148 266.0)
Decimal2902948
Display P3color(display-p3 0.173 0.294 0.643)

Copy-ready code

/* CSS */
color: #2c4ba4;
background-color: #2c4ba4;
/* Tailwind (arbitrary) */
class="text-[#2c4ba4] bg-[#2c4ba4]"
/* SCSS */
$brand: #2c4ba4;
/* SwiftUI */
Color(red: 0.173, green: 0.294, blue: 0.643)
/* Android */
Color.parseColor("#2c4ba4")
/* Flutter */
Color(0xFF2C4BA4)
/* Python / OpenCV (BGR) */
(164, 75, 44)

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 #2c4ba4 · 7.93:1
Use #ffffffAAA at every size.
Aa
White text · 7.93:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.65:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2c4ba4 as text scores 7.93:1 on white and 2.65:1 on black.

Accessibility — WCAG contrast

Aa
#2c4ba4 on white: 7.93:1
AA ✓ pass · AA-large · AAA
Aa
#2c4ba4 on black: 2.65:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0657A7
deuteranopia · #004CA2
tritanopia · #006170

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2c4ba4 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
#E9ECF7
#CDD6EF
#A7B7E7
#7A93DB
#4E70D0
#3458C1
#2c4ba4
#233B81
#1D2D5E
#121C3B
Base = 700Lightest = 50 · #F4F6FBDarkest = 950 · #121C3B
:root {
  --brand-50: #F4F6FB;
  --brand-100: #E9ECF7;
  --brand-200: #CDD6EF;
  --brand-300: #A7B7E7;
  --brand-400: #7A93DB;
  --brand-500: #4E70D0;
  --brand-600: #3458C1;
  --brand-700: #2c4ba4;
  --brand-800: #233B81;
  --brand-900: #1D2D5E;
  --brand-950: #121C3B;
  --brand: #2c4ba4;
  --brand-ink: #ffffff;
}

Colors that work with #2c4ba4

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#C0CBED
Hairlines and dividers
Muted text#4B5F9B
Captions on the surface
Accent#A86728
Second voice, not a rival
Dark variant#1B2E65
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 #2c4ba4

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#A4852C
Analogous left#2C87A4
Analogous right#492CA4
Split-complement 1#A4492C
Split-complement 2#87A42C
Triadic 1#A42C4B
Triadic 2#4BA42C
Tetradic#A42C87

RGB percentages

Red17.3%
Green29.4%
Blue64.3%

CMYK percentages

Cyan73.2%
Magenta54.3%
Yellow0.0%
Key (black)35.7%

Color previews

#2c4ba4 text on a black background

contrast 2.65:1

Card sample

#2c4ba4 text on a white background

contrast 7.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c4ba4

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.

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

#2c4ba4, answered

What color is #2c4ba4?

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

What is the RGB value of #2c4ba4?

rgb(44, 75, 164) — 44 red, 75 green and 164 blue out of 255, or 17.3% / 29.4% / 64.3% by channel.

Is #2c4ba4 a light or a dark color?

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

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

White. It scores 7.93:1 against #2c4ba4, versus 2.65:1 for black — AAA at any size.

What is the complementary color of #2c4ba4?

#A4852C sits directly opposite on the wheel. Softer options are the split-complements #A4492C and #87A42C, which give the same contrast with far less vibration.

What colors go well with #2c4ba4?

For interface work: #F4F6FA as the surface, #C0CBED for borders, #4B5F9B for secondary text, #A86728 as an accent and #1B2E65 for hover and pressed states. For a palette, the analogous pair #2C87A4 and #492CA4 stays calm, while #A4852C is the loudest partner.

What is #2c4ba4 in CMYK for printing?

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

Is #2c4ba4 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 #392CA4; nudged cooler, #2A5AA6.

Work with #2c4ba4 in the Color Lab