Skip to content

#2c4eed

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

RGB
44, 78, 237
HSL
229°, 84%, 55%
CMYK
81, 67, 0, 7
Luminance
0.1210

At a glance

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

Hex
#2c4eed
Hue
229°
blue
Saturation
84%
electric
Lightness
55%
balanced
Brightness
93%
HSV value
Perceived
40%
weighted brightness
Luminance
0.1210
WCAG relative
Temperature
Cool
89/100 cool
Color family
Blue
Tone
Electric
Best ink
White
6.14:1
Closest name
Slate Blue
ΔE2000 8.1
Where it sits
Hue229° of 360°
Saturation84%
Lightness55%
Temperature
Warm ← → Cool89% 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#2c4eed
RGBrgb(44, 78, 237)
HSLhsl(229, 84%, 55%)
CMYKcmyk(81%, 67%, 0%, 7%)
LABlab(41.4 45.3 -82.6)
LCHlch(41.4 94.2 298.7)
OKLCHoklch(0.512 0.240 267.1)
Decimal2903789
Display P3color(display-p3 0.173 0.306 0.929)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c4eed on white: 6.14:1
AA ✓ pass · AA-large · AAA
Aa
#2c4eed on black: 3.42:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006BF2
deuteranopia · #0058EA
tritanopia · #007A97

Color scale — 50 to 950

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

#F2F4FC
#E6E9FA
#C5CEF6
#98A8F6
#647DF2
#2c4eed
#1338E2
#102EBC
#0D2596
#0E1F6D
#091344
Base = 500Lightest = 50 · #F2F4FCDarkest = 950 · #091344
:root {
  --brand-50: #F2F4FC;
  --brand-100: #E6E9FA;
  --brand-200: #C5CEF6;
  --brand-300: #98A8F6;
  --brand-400: #647DF2;
  --brand-500: #2c4eed;
  --brand-600: #1338E2;
  --brand-700: #102EBC;
  --brand-800: #0D2596;
  --brand-900: #0E1F6D;
  --brand-950: #091344;
  --brand: #2c4eed;
  --brand-ink: #ffffff;
}

Colors that work with #2c4eed

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#F4F5FA
Tinted page background
Border#C0C8ED
Hairlines and dividers
Muted text#4B599B
Captions on the surface
Accent#C0730C
Second voice, not a rival
Dark variant#0A1D75
Hover, pressed, headers
Light variant#E8EBFD
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 #2c4eed

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#EDCB2C
Analogous left#2CAFED
Analogous right#6A2CED
Split-complement 1#ED6A2C
Split-complement 2#AFED2C
Triadic 1#ED2C4E
Triadic 2#4EED2C
Tetradic#ED2CAF

RGB percentages

Red17.3%
Green30.6%
Blue92.9%

CMYK percentages

Cyan81.4%
Magenta67.1%
Yellow0.0%
Key (black)7.1%

Color previews

#2c4eed text on a black background

contrast 3.42:1

Card sample

#2c4eed text on a white background

contrast 6.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c4eed

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.

#2c4eed 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#2c4eed, answered

What color is #2c4eed?

#2c4eed is a balanced electric blue, closest to Slate Blue (ΔE2000 8.1). It sits at 229° on the hue wheel with 84% saturation and 55% lightness, which reads as cool.

What is the RGB value of #2c4eed?

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

Is #2c4eed a light or a dark color?

It is a dark color. Relative luminance is 0.1210 and perceived brightness is 40%, so white text on it reaches 6.14:1.

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

White. It scores 6.14:1 against #2c4eed, versus 3.42:1 for black — AA at any size.

What is the complementary color of #2c4eed?

#EDCB2C sits directly opposite on the wheel. Softer options are the split-complements #ED6A2C and #AFED2C, which give the same contrast with far less vibration.

What colors go well with #2c4eed?

For interface work: #F4F5FA as the surface, #C0C8ED for borders, #4B599B for secondary text, #C0730C as an accent and #0A1D75 for hover and pressed states. For a palette, the analogous pair #2CAFED and #6A2CED stays calm, while #EDCB2C is the loudest partner.

What is #2c4eed in CMYK for printing?

cmyk(81%, 67%, 0%, 7%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #2c4eed warm or cool?

Cool — it scores 89 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #512CED; nudged cooler, #2A6AEF.

Work with #2c4eed in the Color Lab