Skip to content

#2ab7f3

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

RGB
42, 183, 243
HSL
198°, 89%, 56%
CMYK
83, 25, 0, 5
Luminance
0.4083

At a glance

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

Hex
#2ab7f3
Hue
198°
cyan
Saturation
89%
electric
Lightness
56%
balanced
Brightness
95%
HSV value
Perceived
64%
weighted brightness
Luminance
0.4083
WCAG relative
Temperature
Cool
95/100 cool
Color family
Cyan
Tone
Electric
Best ink
Black
9.17:1
Closest name
Deep Sky Blue
ΔE2000 2.3
Where it sits
Hue198° of 360°
Saturation89%
Lightness56%
Temperature
Warm ← → Cool95% 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#2ab7f3
RGBrgb(42, 183, 243)
HSLhsl(198, 89%, 56%)
CMYKcmyk(83%, 25%, 0%, 5%)
LABlab(70.0 -15.8 -39.9)
LCHlch(70.0 42.9 248.4)
OKLCHoklch(0.735 0.141 232.8)
Decimal2799603
Display P3color(display-p3 0.165 0.718 0.953)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2ab7f3 on white: 2.29:1
AA ✗ fail · AA-large · AAA
Aa
#2ab7f3 on black: 9.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #99B5F6
deuteranopia · #7FA3F2
tritanopia · #00C7CB

Color scale — 50 to 950

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

#F2FAFD
#E5F4FB
#C4E8F8
#95DBF9
#60C9F6
#2ab7f3
#0DA6E8
#0B8BC1
#096F9A
#0B516F
#073346
Base = 500Lightest = 50 · #F2FAFDDarkest = 950 · #073346
:root {
  --brand-50: #F2FAFD;
  --brand-100: #E5F4FB;
  --brand-200: #C4E8F8;
  --brand-300: #95DBF9;
  --brand-400: #60C9F6;
  --brand-500: #2ab7f3;
  --brand-600: #0DA6E8;
  --brand-700: #0B8BC1;
  --brand-800: #096F9A;
  --brand-900: #0B516F;
  --brand-950: #073346;
  --brand: #2ab7f3;
  --brand-ink: #000000;
}

Colors that work with #2ab7f3

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#F4F9FA
Tinted page background
Border#C0DFED
Hairlines and dividers
Muted text#4B839B
Captions on the surface
Accent#F73026
Second voice, not a rival
Dark variant#075779
Hover, pressed, headers
Light variant#E7F7FE
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 #2ab7f3

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
  • Thin strokes and 1px borders — they disappear on light UI
  • 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#F3662A
Analogous left#2AF3CA
Analogous right#2A53F3
Split-complement 1#F32A53
Split-complement 2#F3CA2A
Triadic 1#F32AB7
Triadic 2#B7F32A
Tetradic#CA2AF3

RGB percentages

Red16.5%
Green71.8%
Blue95.3%

CMYK percentages

Cyan82.7%
Magenta24.7%
Yellow0.0%
Key (black)4.7%

Color previews

#2ab7f3 text on a black background

contrast 9.17:1

Card sample

#2ab7f3 text on a white background

contrast 2.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2ab7f3

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.

#2ab7f3 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyTravelHealthcareMedia
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#2ab7f3, answered

What color is #2ab7f3?

#2ab7f3 is a balanced electric cyan, closest to Deep Sky Blue (ΔE2000 2.3). It sits at 198° on the hue wheel with 89% saturation and 56% lightness, which reads as cool.

What is the RGB value of #2ab7f3?

rgb(42, 183, 243) — 42 red, 183 green and 243 blue out of 255, or 16.5% / 71.8% / 95.3% by channel.

Is #2ab7f3 a light or a dark color?

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

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

Black. It scores 9.17:1 against #2ab7f3, versus 2.29:1 for white — AAA at any size.

What is the complementary color of #2ab7f3?

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

What colors go well with #2ab7f3?

For interface work: #F4F9FA as the surface, #C0DFED for borders, #4B839B for secondary text, #F73026 as an accent and #075779 for hover and pressed states. For a palette, the analogous pair #2AF3CA and #2A53F3 stays calm, while #F3662A is the loudest partner.

What is #2ab7f3 in CMYK for printing?

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

Cool — it scores 95 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2AF3E5; nudged cooler, #28A1F5.

Work with #2ab7f3 in the Color Lab