Skip to content

#2c4ecc

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

RGB
44, 78, 204
HSL
227°, 65%, 49%
CMYK
78, 62, 0, 20
Luminance
0.1034

At a glance

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

Hex
#2c4ecc
Hue
227°
blue
Saturation
65%
vivid
Lightness
49%
balanced
Brightness
80%
HSV value
Perceived
37%
weighted brightness
Luminance
0.1034
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
6.84:1
Closest name
Slate Blue
ΔE2000 8.7
Where it sits
Hue227° of 360°
Saturation65%
Lightness49%
Temperature
Warm ← → Cool90% 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#2c4ecc
RGBrgb(44, 78, 204)
HSLhsl(227, 65%, 49%)
CMYKcmyk(78%, 62%, 0%, 20%)
LABlab(38.5 33.4 -68.6)
LCHlch(38.5 76.3 296.0)
OKLCHoklch(0.482 0.199 266.8)
Decimal2903756
Display P3color(display-p3 0.173 0.306 0.800)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c4ecc on white: 6.84:1
AA ✓ pass · AA-large · AAA
Aa
#2c4ecc on black: 3.07:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0062D0
deuteranopia · #0053CA
tritanopia · #006F85

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2c4ecc 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
#E8EBF7
#CBD3F1
#A3B2EB
#758CE1
#4665D7
#2c4ecc
#2440A8
#1D3386
#192862
#10193D
Base = 600Lightest = 50 · #F4F5FBDarkest = 950 · #10193D
:root {
  --brand-50: #F4F5FB;
  --brand-100: #E8EBF7;
  --brand-200: #CBD3F1;
  --brand-300: #A3B2EB;
  --brand-400: #758CE1;
  --brand-500: #4665D7;
  --brand-600: #2c4ecc;
  --brand-700: #2440A8;
  --brand-800: #1D3386;
  --brand-900: #192862;
  --brand-950: #10193D;
  --brand: #2c4ecc;
  --brand-ink: #ffffff;
}

Colors that work with #2c4ecc

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#C0C9ED
Hairlines and dividers
Muted text#4B5C9B
Captions on the surface
Accent#AC6B20
Second voice, not a rival
Dark variant#172869
Hover, pressed, headers
Light variant#EAEEFA
Selected rows, tints
Dark surface#141724
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 #2c4ecc

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
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • 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#CCAA2C
Analogous left#2C9ECC
Analogous right#5A2CCC
Split-complement 1#CC5A2C
Split-complement 2#9ECC2C
Triadic 1#CC2C4E
Triadic 2#4ECC2C
Tetradic#CC2C9E

RGB percentages

Red17.3%
Green30.6%
Blue80.0%

CMYK percentages

Cyan78.4%
Magenta61.8%
Yellow0.0%
Key (black)20.0%

Color previews

#2c4ecc text on a black background

contrast 3.07:1

Card sample

#2c4ecc text on a white background

contrast 6.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(44, 78, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(44, 78, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2c4ecc;
background: linear-gradient(135deg, #2c4ecc, #752CCC);

Monochromatic scale

Palettes built from #2c4ecc

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.

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

#2c4ecc, answered

What color is #2c4ecc?

#2c4ecc is a balanced vivid blue, closest to Slate Blue (ΔE2000 8.7). It sits at 227° on the hue wheel with 65% saturation and 49% lightness, which reads as cool.

What is the RGB value of #2c4ecc?

rgb(44, 78, 204) — 44 red, 78 green and 204 blue out of 255, or 17.3% / 30.6% / 80% by channel.

Is #2c4ecc a light or a dark color?

It is a dark color. Relative luminance is 0.1034 and perceived brightness is 37%, so white text on it reaches 6.84:1.

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

White. It scores 6.84:1 against #2c4ecc, versus 3.07:1 for black — AA at any size.

What is the complementary color of #2c4ecc?

#CCAA2C sits directly opposite on the wheel. Softer options are the split-complements #CC5A2C and #9ECC2C, which give the same contrast with far less vibration.

What colors go well with #2c4ecc?

For interface work: #F4F6FA as the surface, #C0C9ED for borders, #4B5C9B for secondary text, #AC6B20 as an accent and #172869 for hover and pressed states. For a palette, the analogous pair #2C9ECC and #5A2CCC stays calm, while #CCAA2C is the loudest partner.

What is #2c4ecc in CMYK for printing?

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

Is #2c4ecc warm or cool?

Cool — it scores 90 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #452CCC; nudged cooler, #2A64CE.

Work with #2c4ecc in the Color Lab