Skip to content

#2a2cf7

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

RGB
42, 44, 247
HSL
239°, 93%, 57%
CMYK
83, 82, 0, 3
Luminance
0.0901

At a glance

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

Hex
#2a2cf7
Hue
239°
blue
Saturation
93%
electric
Lightness
57%
balanced
Brightness
97%
HSV value
Perceived
36%
weighted brightness
Luminance
0.0901
WCAG relative
Temperature
Cool
84/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.50:1
Closest name
Blue
ΔE2000 4.1
Where it sits
Hue239° of 360°
Saturation93%
Lightness57%
Temperature
Warm ← → Cool84% 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#2a2cf7
RGBrgb(42, 44, 247)
HSLhsl(239, 93%, 57%)
CMYKcmyk(83%, 82%, 0%, 3%)
LABlab(36.0 66.4 -97.2)
LCHlch(36.0 117.7 304.3)
OKLCHoklch(0.477 0.281 268.7)
Decimal2764023
Display P3color(display-p3 0.165 0.173 0.969)

Copy-ready code

/* CSS */
color: #2a2cf7;
background-color: #2a2cf7;
/* Tailwind (arbitrary) */
class="text-[#2a2cf7] bg-[#2a2cf7]"
/* SCSS */
$brand: #2a2cf7;
/* SwiftUI */
Color(red: 0.165, green: 0.173, blue: 0.969)
/* Android */
Color.parseColor("#2a2cf7")
/* Flutter */
Color(0xFF2A2CF7)
/* Python / OpenCV (BGR) */
(247, 44, 42)

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

Accessibility — WCAG contrast

Aa
#2a2cf7 on white: 7.50:1
AA ✓ pass · AA-large · AAA
Aa
#2a2cf7 on black: 2.80:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005FFC
deuteranopia · #0049F4
tritanopia · #006F95

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2a2cf7 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
#C2C3F9
#9394FB
#5D5EF9
#2a2cf7
#090BEC
#0709C5
#06079D
#090A71
#060647
Base = 500Lightest = 50 · #F2F2FDDarkest = 950 · #060647
:root {
  --brand-50: #F2F2FD;
  --brand-100: #E4E4FB;
  --brand-200: #C2C3F9;
  --brand-300: #9394FB;
  --brand-400: #5D5EF9;
  --brand-500: #2a2cf7;
  --brand-600: #090BEC;
  --brand-700: #0709C5;
  --brand-800: #06079D;
  --brand-900: #090A71;
  --brand-950: #060647;
  --brand: #2a2cf7;
  --brand-ink: #ffffff;
}

Colors that work with #2a2cf7

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#05067B
Hover, pressed, headers
Light variant#E6E7FE
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 #2a2cf7

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#F7F52A
Analogous left#2A93F7
Analogous right#8F2AF7
Split-complement 1#F78F2A
Split-complement 2#93F72A
Triadic 1#F72A2C
Triadic 2#2CF72A
Tetradic#F72A93

RGB percentages

Red16.5%
Green17.3%
Blue96.9%

CMYK percentages

Cyan83.0%
Magenta82.2%
Yellow0.0%
Key (black)3.1%

Color previews

#2a2cf7 text on a black background

contrast 2.80:1

Card sample

#2a2cf7 text on a white background

contrast 7.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2a2cf7

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.

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

#2a2cf7, answered

What color is #2a2cf7?

#2a2cf7 is a balanced electric blue, closest to Blue (ΔE2000 4.1). It sits at 239° on the hue wheel with 93% saturation and 57% lightness, which reads as cool.

What is the RGB value of #2a2cf7?

rgb(42, 44, 247) — 42 red, 44 green and 247 blue out of 255, or 16.5% / 17.3% / 96.9% by channel.

Is #2a2cf7 a light or a dark color?

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

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

White. It scores 7.50:1 against #2a2cf7, versus 2.80:1 for black — AAA at any size.

What is the complementary color of #2a2cf7?

#F7F52A sits directly opposite on the wheel. Softer options are the split-complements #F78F2A and #93F72A, which give the same contrast with far less vibration.

What colors go well with #2a2cf7?

For interface work: #F4F4FA as the surface, #C0C0ED for borders, #4B4B9B for secondary text, #C89604 as an accent and #05067B for hover and pressed states. For a palette, the analogous pair #2A93F7 and #8F2AF7 stays calm, while #F7F52A is the loudest partner.

What is #2a2cf7 in CMYK for printing?

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

Cool — it scores 84 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #732AF7; nudged cooler, #2859F9.

Work with #2a2cf7 in the Color Lab