Skip to content

#2829f6

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

RGB
40, 41, 246
HSL
240°, 92%, 56%
CMYK
84, 83, 0, 4
Luminance
0.0869

At a glance

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

Hex
#2829f6
Hue
240°
blue
Saturation
92%
electric
Lightness
56%
balanced
Brightness
96%
HSV value
Perceived
36%
weighted brightness
Luminance
0.0869
WCAG relative
Temperature
Cool
83/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.67:1
Closest name
Blue
ΔE2000 3.6
Where it sits
Hue240° of 360°
Saturation92%
Lightness56%
Temperature
Warm ← → Cool83% 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#2829f6
RGBrgb(40, 41, 246)
HSLhsl(240, 92%, 56%)
CMYKcmyk(84%, 83%, 0%, 4%)
LABlab(35.4 67.3 -97.6)
LCHlch(35.4 118.5 304.6)
OKLCHoklch(0.472 0.283 268.4)
Decimal2632182
Display P3color(display-p3 0.157 0.161 0.965)

Copy-ready code

/* CSS */
color: #2829f6;
background-color: #2829f6;
/* Tailwind (arbitrary) */
class="text-[#2829f6] bg-[#2829f6]"
/* SCSS */
$brand: #2829f6;
/* SwiftUI */
Color(red: 0.157, green: 0.161, blue: 0.965)
/* Android */
Color.parseColor("#2829f6")
/* Flutter */
Color(0xFF2829F6)
/* Python / OpenCV (BGR) */
(246, 41, 40)

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 #2829f6 · 7.67:1
Use #ffffffAAA at every size.
Aa
White text · 7.67:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.74:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2829f6 as text scores 7.67:1 on white and 2.74:1 on black.

Accessibility — WCAG contrast

Aa
#2829f6 on white: 7.67:1
AA ✓ pass · AA-large · AAA
Aa
#2829f6 on black: 2.74:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005EFB
deuteranopia · #0048F3
tritanopia · #006E94

Color scale — 50 to 950

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

#F2F2FD
#E4E4FB
#C3C3F9
#9394FB
#5D5EF8
#2829f6
#0A0BEB
#0809C4
#07079D
#090A71
#060647
Base = 500Lightest = 50 · #F2F2FDDarkest = 950 · #060647
:root {
  --brand-50: #F2F2FD;
  --brand-100: #E4E4FB;
  --brand-200: #C3C3F9;
  --brand-300: #9394FB;
  --brand-400: #5D5EF8;
  --brand-500: #2829f6;
  --brand-600: #0A0BEB;
  --brand-700: #0809C4;
  --brand-800: #07079D;
  --brand-900: #090A71;
  --brand-950: #060647;
  --brand: #2829f6;
  --brand-ink: #ffffff;
}

Colors that work with #2829f6

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#F4F4FA
Tinted page background
Border#C0C0ED
Hairlines and dividers
Muted text#4B4B9B
Captions on the surface
Accent#C89604
Second voice, not a rival
Dark variant#05067A
Hover, pressed, headers
Light variant#E7E7FE
Selected rows, tints
Dark surface#141424
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 #2829f6

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#F6F528
Analogous left#2890F6
Analogous right#8E28F6
Split-complement 1#F68E28
Split-complement 2#90F628
Triadic 1#F62829
Triadic 2#29F628
Tetradic#F62890

RGB percentages

Red15.7%
Green16.1%
Blue96.5%

CMYK percentages

Cyan83.7%
Magenta83.3%
Yellow0.0%
Key (black)3.5%

Color previews

#2829f6 text on a black background

contrast 2.74:1

Card sample

#2829f6 text on a white background

contrast 7.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2829f6;
Background color
Panel with #2829f6 background
background-color: #2829f6;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(40, 41, 246, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 41, 246, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2829f6;
background: linear-gradient(135deg, #2829f6, #B028F6);

Monochromatic scale

Palettes built from #2829f6

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.

#2829f6 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.

#2829f6, answered

What color is #2829f6?

#2829f6 is a balanced electric blue, closest to Blue (ΔE2000 3.6). It sits at 240° on the hue wheel with 92% saturation and 56% lightness, which reads as cool.

What is the RGB value of #2829f6?

rgb(40, 41, 246) — 40 red, 41 green and 246 blue out of 255, or 15.7% / 16.1% / 96.5% by channel.

Is #2829f6 a light or a dark color?

It is a dark color. Relative luminance is 0.0869 and perceived brightness is 36%, so white text on it reaches 7.67:1.

Should I use black or white text on #2829f6?

White. It scores 7.67:1 against #2829f6, versus 2.74:1 for black — AAA at any size.

What is the complementary color of #2829f6?

#F6F528 sits directly opposite on the wheel. Softer options are the split-complements #F68E28 and #90F628, which give the same contrast with far less vibration.

What colors go well with #2829f6?

For interface work: #F4F4FA as the surface, #C0C0ED for borders, #4B4B9B for secondary text, #C89604 as an accent and #05067A for hover and pressed states. For a palette, the analogous pair #2890F6 and #8E28F6 stays calm, while #F6F528 is the loudest partner.

What is #2829f6 in CMYK for printing?

cmyk(84%, 83%, 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 #2829f6 warm or cool?

Cool — it scores 83 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7328F6; nudged cooler, #2656F8.

Work with #2829f6 in the Color Lab