Skip to content

#2c6dfe

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

RGB
44, 109, 254
HSL
221°, 99%, 58%
CMYK
83, 57, 0, 0
Luminance
0.1863

At a glance

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

Hex
#2c6dfe
Hue
221°
blue
Saturation
99%
electric
Lightness
58%
balanced
Brightness
100%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1863
WCAG relative
Temperature
Cool
94/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
4.73:1
Closest name
Royal Blue
ΔE2000 3.7
Where it sits
Hue221° of 360°
Saturation99%
Lightness58%
Temperature
Warm ← → Cool94% 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#2c6dfe
RGBrgb(44, 109, 254)
HSLhsl(221, 99%, 58%)
CMYKcmyk(83%, 57%, 0%, 0%)
LABlab(50.3 32.2 -77.6)
LCHlch(50.3 84.0 292.5)
OKLCHoklch(0.583 0.226 263.0)
Decimal2911742
Display P3color(display-p3 0.173 0.427 0.996)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c6dfe on white: 4.44:1
AA ✗ fail · AA-large · AAA
Aa
#2c6dfe on black: 4.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0082FF
deuteranopia · #006EFB
tritanopia · #0092AB

Color scale — 50 to 950

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

#F1F5FE
#E3EBFC
#C0D3FB
#8FB2FE
#578BFE
#2c6dfe
#014CF4
#0140CB
#0133A2
#052875
#031949
Base = 500Lightest = 50 · #F1F5FEDarkest = 950 · #031949
:root {
  --brand-50: #F1F5FE;
  --brand-100: #E3EBFC;
  --brand-200: #C0D3FB;
  --brand-300: #8FB2FE;
  --brand-400: #578BFE;
  --brand-500: #2c6dfe;
  --brand-600: #014CF4;
  --brand-700: #0140CB;
  --brand-800: #0133A2;
  --brand-900: #052875;
  --brand-950: #031949;
  --brand: #2c6dfe;
  --brand-ink: #000000;
}

Colors that work with #2c6dfe

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F4F6FA
Tinted page background
Border#C0CEED
Hairlines and dividers
Muted text#4B639B
Captions on the surface
Accent#CC5900
Second voice, not a rival
Dark variant#01287F
Hover, pressed, headers
Light variant#E6EDFF
Selected rows, tints
Dark surface#141924
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 #2c6dfe

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#FEBD2C
Analogous left#2CD6FE
Analogous right#542CFE
Split-complement 1#FE542C
Split-complement 2#D6FE2C
Triadic 1#FE2C6D
Triadic 2#6DFE2C
Tetradic#FE2CD6

RGB percentages

Red17.3%
Green42.7%
Blue99.6%

CMYK percentages

Cyan82.7%
Magenta57.1%
Yellow0.0%
Key (black)0.4%

Color previews

#2c6dfe text on a black background

contrast 4.73:1

Card sample

#2c6dfe text on a white background

contrast 4.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(44, 109, 254, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(44, 109, 254, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2c6dfe;
background: linear-gradient(135deg, #2c6dfe, #772CFE);

Monochromatic scale

Palettes built from #2c6dfe

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.

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

#2c6dfe, answered

What color is #2c6dfe?

#2c6dfe is a balanced electric blue, closest to Royal Blue (ΔE2000 3.7). It sits at 221° on the hue wheel with 99% saturation and 58% lightness, which reads as cool.

What is the RGB value of #2c6dfe?

rgb(44, 109, 254) — 44 red, 109 green and 254 blue out of 255, or 17.3% / 42.7% / 99.6% by channel.

Is #2c6dfe a light or a dark color?

It is a mid-tone. Relative luminance is 0.1863 and perceived brightness is 48%, so black text on it reaches 4.73:1.

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

Black. It scores 4.73:1 against #2c6dfe, versus 4.44:1 for white — AA at any size.

What is the complementary color of #2c6dfe?

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

What colors go well with #2c6dfe?

For interface work: #F4F6FA as the surface, #C0CEED for borders, #4B639B for secondary text, #CC5900 as an accent and #01287F for hover and pressed states. For a palette, the analogous pair #2CD6FE and #542CFE stays calm, while #FEBD2C is the loudest partner.

What is #2c6dfe in CMYK for printing?

cmyk(83%, 57%, 0%, 0%). 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 #2c6dfe warm or cool?

Cool — it scores 94 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #382CFE; nudged cooler, #116DFF.

Work with #2c6dfe in the Color Lab