Skip to content

#2c40c2

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

RGB
44, 64, 194
HSL
232°, 63%, 47%
CMYK
77, 67, 0, 24
Luminance
0.0810

At a glance

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

Hex
#2c40c2
Hue
232°
blue
Saturation
63%
vivid
Lightness
47%
balanced
Brightness
76%
HSV value
Perceived
33%
weighted brightness
Luminance
0.0810
WCAG relative
Temperature
Cool
88/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
8.02:1
Closest name
Dark Slate Blue
ΔE2000 9.1
Where it sits
Hue232° of 360°
Saturation63%
Lightness47%
Temperature
Warm ← → Cool88% 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#2c40c2
RGBrgb(44, 64, 194)
HSLhsl(232, 63%, 47%)
CMYKcmyk(77%, 67%, 0%, 24%)
LABlab(34.2 38.7 -69.7)
LCHlch(34.2 79.8 299.0)
OKLCHoklch(0.448 0.202 269.2)
Decimal2900162
Display P3color(display-p3 0.173 0.251 0.761)

Copy-ready code

/* CSS */
color: #2c40c2;
background-color: #2c40c2;
/* Tailwind (arbitrary) */
class="text-[#2c40c2] bg-[#2c40c2]"
/* SCSS */
$brand: #2c40c2;
/* SwiftUI */
Color(red: 0.173, green: 0.251, blue: 0.761)
/* Android */
Color.parseColor("#2c40c2")
/* Flutter */
Color(0xFF2C40C2)
/* Python / OpenCV (BGR) */
(194, 64, 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 #2c40c2 · 8.02:1
Use #ffffffAAA at every size.
Aa
White text · 8.02:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.62:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2c40c2 as text scores 8.02:1 on white and 2.62:1 on black.

Accessibility — WCAG contrast

Aa
#2c40c2 on white: 8.02:1
AA ✓ pass · AA-large · AAA
Aa
#2c40c2 on black: 2.62:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0058C6
deuteranopia · #0049C0
tritanopia · #00637B

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2c40c2 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
#E8EAF7
#CBD0F0
#A4ADEA
#7684E0
#485BD5
#2c40c2
#2637A6
#1E2C85
#1A2361
#10163C
Base = 600Lightest = 50 · #F4F5FBDarkest = 950 · #10163C
:root {
  --brand-50: #F4F5FB;
  --brand-100: #E8EAF7;
  --brand-200: #CBD0F0;
  --brand-300: #A4ADEA;
  --brand-400: #7684E0;
  --brand-500: #485BD5;
  --brand-600: #2c40c2;
  --brand-700: #2637A6;
  --brand-800: #1E2C85;
  --brand-900: #1A2361;
  --brand-950: #10163C;
  --brand: #2c40c2;
  --brand-ink: #ffffff;
}

Colors that work with #2c40c2

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#C0C6ED
Hairlines and dividers
Muted text#4B559B
Captions on the surface
Accent#AB7621
Second voice, not a rival
Dark variant#182268
Hover, pressed, headers
Light variant#EAECFA
Selected rows, tints
Dark surface#141624
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 #2c40c2

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
  • Text on black or near-black surfaces
  • 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#C2AE2C
Analogous left#2C8BC2
Analogous right#632CC2
Split-complement 1#C2632C
Split-complement 2#8BC22C
Triadic 1#C22C40
Triadic 2#40C22C
Tetradic#C22C8B

RGB percentages

Red17.3%
Green25.1%
Blue76.1%

CMYK percentages

Cyan77.3%
Magenta67.0%
Yellow0.0%
Key (black)23.9%

Color previews

#2c40c2 text on a black background

contrast 2.62:1

Card sample

#2c40c2 text on a white background

contrast 8.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(44, 64, 194, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(44, 64, 194, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2c40c2;
background: linear-gradient(135deg, #2c40c2, #7C2CC2);

Monochromatic scale

Palettes built from #2c40c2

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.

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

#2c40c2, answered

What color is #2c40c2?

#2c40c2 is a balanced vivid blue, closest to Dark Slate Blue (ΔE2000 9.1). It sits at 232° on the hue wheel with 63% saturation and 47% lightness, which reads as cool.

What is the RGB value of #2c40c2?

rgb(44, 64, 194) — 44 red, 64 green and 194 blue out of 255, or 17.3% / 25.1% / 76.1% by channel.

Is #2c40c2 a light or a dark color?

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

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

White. It scores 8.02:1 against #2c40c2, versus 2.62:1 for black — AAA at any size.

What is the complementary color of #2c40c2?

#C2AE2C sits directly opposite on the wheel. Softer options are the split-complements #C2632C and #8BC22C, which give the same contrast with far less vibration.

What colors go well with #2c40c2?

For interface work: #F4F5FA as the surface, #C0C6ED for borders, #4B559B for secondary text, #AB7621 as an accent and #182268 for hover and pressed states. For a palette, the analogous pair #2C8BC2 and #632CC2 stays calm, while #C2AE2C is the loudest partner.

What is #2c40c2 in CMYK for printing?

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

Is #2c40c2 warm or cool?

Cool — it scores 88 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #4F2CC2; nudged cooler, #2A5CC4.

Work with #2c40c2 in the Color Lab