Skip to content

#2c0df4

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

RGB
44, 13, 244
HSL
248°, 91%, 50%
CMYK
82, 95, 0, 4
Luminance
0.0735

At a glance

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

Hex
#2c0df4
Hue
248°
blue
Saturation
91%
electric
Lightness
50%
balanced
Brightness
96%
HSV value
Perceived
34%
weighted brightness
Luminance
0.0735
WCAG relative
Temperature
Cool
79/100 cool
Color family
Blue
Tone
Electric
Best ink
White
8.50:1
Closest name
Blue
ΔE2000 1.3
Where it sits
Hue248° of 360°
Saturation91%
Lightness50%
Temperature
Warm ← → Cool79% 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#2c0df4
RGBrgb(44, 13, 244)
HSLhsl(248, 91%, 50%)
CMYKcmyk(82%, 95%, 0%, 4%)
LABlab(32.6 75.0 -101.1)
LCHlch(32.6 125.9 306.6)
OKLCHoklch(0.453 0.292 269.6)
Decimal2887156
Display P3color(display-p3 0.173 0.051 0.957)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c0df4 on white: 8.50:1
AA ✓ pass · AA-large · AAA
Aa
#2c0df4 on black: 2.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0057F9
deuteranopia · #0041F1
tritanopia · #006790

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2c0df4 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.

#F3F2FD
#E8E4FB
#CAC3F9
#A294FA
#735EF8
#4428F5
#2c0df4
#2209C3
#1B079C
#180A71
#0F0646
Base = 600Lightest = 50 · #F3F2FDDarkest = 950 · #0F0646
:root {
  --brand-50: #F3F2FD;
  --brand-100: #E8E4FB;
  --brand-200: #CAC3F9;
  --brand-300: #A294FA;
  --brand-400: #735EF8;
  --brand-500: #4428F5;
  --brand-600: #2c0df4;
  --brand-700: #2209C3;
  --brand-800: #1B079C;
  --brand-900: #180A71;
  --brand-950: #0F0646;
  --brand: #2c0df4;
  --brand-ink: #ffffff;
}

Colors that work with #2c0df4

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#F5F4FA
Tinted page background
Border#C6C0ED
Hairlines and dividers
Muted text#554B9B
Captions on the surface
Accent#C7B105
Second voice, not a rival
Dark variant#15067A
Hover, pressed, headers
Light variant#EAE7FE
Selected rows, tints
Dark surface#161424
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 #2c0df4

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#D5F40D
Analogous left#0D61F4
Analogous right#A00DF4
Split-complement 1#F4A00D
Split-complement 2#61F40D
Triadic 1#F42C0D
Triadic 2#0DF42C
Tetradic#F40D61

RGB percentages

Red17.3%
Green5.1%
Blue95.7%

CMYK percentages

Cyan82.0%
Magenta94.7%
Yellow0.0%
Key (black)4.3%

Color previews

#2c0df4 text on a black background

contrast 2.47:1

Card sample

#2c0df4 text on a white background

contrast 8.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c0df4

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.

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

#2c0df4, answered

What color is #2c0df4?

#2c0df4 is a balanced electric blue, closest to Blue (ΔE2000 1.3). It sits at 248° on the hue wheel with 91% saturation and 50% lightness, which reads as cool.

What is the RGB value of #2c0df4?

rgb(44, 13, 244) — 44 red, 13 green and 244 blue out of 255, or 17.3% / 5.1% / 95.7% by channel.

Is #2c0df4 a light or a dark color?

It is a dark color. Relative luminance is 0.0735 and perceived brightness is 34%, so white text on it reaches 8.50:1.

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

White. It scores 8.50:1 against #2c0df4, versus 2.47:1 for black — AAA at any size.

What is the complementary color of #2c0df4?

#D5F40D sits directly opposite on the wheel. Softer options are the split-complements #F4A00D and #61F40D, which give the same contrast with far less vibration.

What colors go well with #2c0df4?

For interface work: #F5F4FA as the surface, #C6C0ED for borders, #554B9B for secondary text, #C7B105 as an accent and #15067A for hover and pressed states. For a palette, the analogous pair #0D61F4 and #A00DF4 stays calm, while #D5F40D is the loudest partner.

What is #2c0df4 in CMYK for printing?

cmyk(82%, 95%, 0%, 4%). 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 #2c0df4 warm or cool?

Cool — it scores 79 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #810DF4; nudged cooler, #0B2FF7.

Work with #2c0df4 in the Color Lab