Skip to content

#2ab3fb

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

RGB
42, 179, 251
HSL
201°, 96%, 58%
CMYK
83, 29, 0, 2
Luminance
0.3970

At a glance

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

Hex
#2ab3fb
Hue
201°
blue
Saturation
96%
electric
Lightness
58%
balanced
Brightness
98%
HSV value
Perceived
64%
weighted brightness
Luminance
0.3970
WCAG relative
Temperature
Cool
96/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
8.94:1
Closest name
Deep Sky Blue
ΔE2000 4.5
Where it sits
Hue201° of 360°
Saturation96%
Lightness58%
Temperature
Warm ← → Cool96% 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#2ab3fb
RGBrgb(42, 179, 251)
HSLhsl(201, 96%, 58%)
CMYKcmyk(83%, 29%, 0%, 2%)
LABlab(69.3 -10.9 -45.5)
LCHlch(69.3 46.8 256.6)
OKLCHoklch(0.730 0.151 238.3)
Decimal2798587
Display P3color(display-p3 0.165 0.702 0.984)

Copy-ready code

/* CSS */
color: #2ab3fb;
background-color: #2ab3fb;
/* Tailwind (arbitrary) */
class="text-[#2ab3fb] bg-[#2ab3fb]"
/* SCSS */
$brand: #2ab3fb;
/* SwiftUI */
Color(red: 0.165, green: 0.702, blue: 0.984)
/* Android */
Color.parseColor("#2ab3fb")
/* Flutter */
Color(0xFF2AB3FB)
/* Python / OpenCV (BGR) */
(251, 179, 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#000000 on #2ab3fb · 8.94:1
Use #000000AAA at every size.
Aa
White text · 2.35:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.94:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #2ab3fb as text scores 2.35:1 on white and 8.94:1 on black.

Accessibility — WCAG contrast

Aa
#2ab3fb on white: 2.35:1
AA ✗ fail · AA-large · AAA
Aa
#2ab3fb on black: 8.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #90B3FE
deuteranopia · #75A1FA
tritanopia · #00C5CC

Color scale — 50 to 950

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

#F1F9FD
#E4F3FC
#C1E7FA
#91D8FD
#5AC4FC
#2ab3fb
#059FF0
#0484C8
#036AA0
#074E73
#043148
Base = 500Lightest = 50 · #F1F9FDDarkest = 950 · #043148
:root {
  --brand-50: #F1F9FD;
  --brand-100: #E4F3FC;
  --brand-200: #C1E7FA;
  --brand-300: #91D8FD;
  --brand-400: #5AC4FC;
  --brand-500: #2ab3fb;
  --brand-600: #059FF0;
  --brand-700: #0484C8;
  --brand-800: #036AA0;
  --brand-900: #074E73;
  --brand-950: #043148;
  --brand: #2ab3fb;
  --brand-ink: #000000;
}

Colors that work with #2ab3fb

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#F4F8FA
Tinted page background
Border#C0DDED
Hairlines and dividers
Muted text#4B7F9B
Captions on the surface
Accent#FF3B26
Second voice, not a rival
Dark variant#02537D
Hover, pressed, headers
Light variant#E6F6FF
Selected rows, tints
Dark surface#141F24
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 #2ab3fb

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

Works well for
  • 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
  • Text of any size on white — fails WCAG AA
  • 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#FB722A
Analogous left#2AFBDB
Analogous right#2A4BFB
Split-complement 1#FB2A4B
Split-complement 2#FBDB2A
Triadic 1#FB2AB3
Triadic 2#B3FB2A
Tetradic#DB2AFB

RGB percentages

Red16.5%
Green70.2%
Blue98.4%

CMYK percentages

Cyan83.3%
Magenta28.7%
Yellow0.0%
Key (black)1.6%

Color previews

#2ab3fb text on a black background

contrast 8.94:1

Card sample

#2ab3fb text on a white background

contrast 2.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2ab3fb

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.

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

#2ab3fb, answered

What color is #2ab3fb?

#2ab3fb is a balanced electric blue, closest to Deep Sky Blue (ΔE2000 4.5). It sits at 201° on the hue wheel with 96% saturation and 58% lightness, which reads as cool.

What is the RGB value of #2ab3fb?

rgb(42, 179, 251) — 42 red, 179 green and 251 blue out of 255, or 16.5% / 70.2% / 98.4% by channel.

Is #2ab3fb a light or a dark color?

It is a mid-tone. Relative luminance is 0.3970 and perceived brightness is 64%, so black text on it reaches 8.94:1.

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

Black. It scores 8.94:1 against #2ab3fb, versus 2.35:1 for white — AAA at any size.

What is the complementary color of #2ab3fb?

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

What colors go well with #2ab3fb?

For interface work: #F4F8FA as the surface, #C0DDED for borders, #4B7F9B for secondary text, #FF3B26 as an accent and #02537D for hover and pressed states. For a palette, the analogous pair #2AFBDB and #2A4BFB stays calm, while #FB722A is the loudest partner.

What is #2ab3fb in CMYK for printing?

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

Cool — it scores 96 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2AFBF6; nudged cooler, #0F96FD.

Work with #2ab3fb in the Color Lab