Skip to content

#2a2df8

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

RGB
42, 45, 248
HSL
239°, 94%, 57%
CMYK
83, 82, 0, 3
Luminance
0.0915

At a glance

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

Hex
#2a2df8
Hue
239°
blue
Saturation
94%
electric
Lightness
57%
balanced
Brightness
97%
HSV value
Perceived
37%
weighted brightness
Luminance
0.0915
WCAG relative
Temperature
Cool
84/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.42:1
Closest name
Blue
ΔE2000 4.3
Where it sits
Hue239° of 360°
Saturation94%
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#2a2df8
RGBrgb(42, 45, 248)
HSLhsl(239, 94%, 57%)
CMYKcmyk(83%, 82%, 0%, 3%)
LABlab(36.3 66.2 -97.3)
LCHlch(36.3 117.7 304.2)
OKLCHoklch(0.479 0.282 268.6)
Decimal2764280
Display P3color(display-p3 0.165 0.176 0.973)

Copy-ready code

/* CSS */
color: #2a2df8;
background-color: #2a2df8;
/* Tailwind (arbitrary) */
class="text-[#2a2df8] bg-[#2a2df8]"
/* SCSS */
$brand: #2a2df8;
/* SwiftUI */
Color(red: 0.165, green: 0.176, blue: 0.973)
/* Android */
Color.parseColor("#2a2df8")
/* Flutter */
Color(0xFF2A2DF8)
/* Python / OpenCV (BGR) */
(248, 45, 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 #2a2df8 · 7.42:1
Use #ffffffAAA at every size.
Aa
White text · 7.42:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.83:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2a2df8 as text scores 7.42:1 on white and 2.83:1 on black.

Accessibility — WCAG contrast

Aa
#2a2df8 on white: 7.42:1
AA ✓ pass · AA-large · AAA
Aa
#2a2df8 on black: 2.83:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0060FD
deuteranopia · #004AF5
tritanopia · #007096

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2a2df8 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
#C2C3FA
#9294FB
#5C5EFA
#2a2df8
#080BED
#0709C5
#05089E
#080A72
#050647
Base = 500Lightest = 50 · #F2F2FDDarkest = 950 · #050647
:root {
  --brand-50: #F2F2FD;
  --brand-100: #E4E4FB;
  --brand-200: #C2C3FA;
  --brand-300: #9294FB;
  --brand-400: #5C5EFA;
  --brand-500: #2a2df8;
  --brand-600: #080BED;
  --brand-700: #0709C5;
  --brand-800: #05089E;
  --brand-900: #080A72;
  --brand-950: #050647;
  --brand: #2a2df8;
  --brand-ink: #ffffff;
}

Colors that work with #2a2df8

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#4B4C9B
Captions on the surface
Accent#C99503
Second voice, not a rival
Dark variant#04067B
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 #2a2df8

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#F8F52A
Analogous left#2A94F8
Analogous right#8E2AF8
Split-complement 1#F88E2A
Split-complement 2#94F82A
Triadic 1#F82A2D
Triadic 2#2DF82A
Tetradic#F82A94

RGB percentages

Red16.5%
Green17.6%
Blue97.3%

CMYK percentages

Cyan83.1%
Magenta81.9%
Yellow0.0%
Key (black)2.7%

Color previews

#2a2df8 text on a black background

contrast 2.83:1

Card sample

#2a2df8 text on a white background

contrast 7.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2a2df8

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.

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

#2a2df8, answered

What color is #2a2df8?

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

What is the RGB value of #2a2df8?

rgb(42, 45, 248) — 42 red, 45 green and 248 blue out of 255, or 16.5% / 17.6% / 97.3% by channel.

Is #2a2df8 a light or a dark color?

It is a dark color. Relative luminance is 0.0915 and perceived brightness is 37%, so white text on it reaches 7.42:1.

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

White. It scores 7.42:1 against #2a2df8, versus 2.83:1 for black — AAA at any size.

What is the complementary color of #2a2df8?

#F8F52A sits directly opposite on the wheel. Softer options are the split-complements #F88E2A and #94F82A, which give the same contrast with far less vibration.

What colors go well with #2a2df8?

For interface work: #F4F4FA as the surface, #C0C0ED for borders, #4B4C9B for secondary text, #C99503 as an accent and #04067B for hover and pressed states. For a palette, the analogous pair #2A94F8 and #8E2AF8 stays calm, while #F8F52A is the loudest partner.

What is #2a2df8 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 #2a2df8 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 #732AF8; nudged cooler, #2859FA.

Work with #2a2df8 in the Color Lab