Skip to content

#2ab7ef

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

RGB
42, 183, 239
HSL
197°, 86%, 55%
CMYK
82, 23, 0, 6
Luminance
0.4059

At a glance

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

Hex
#2ab7ef
Hue
197°
cyan
Saturation
86%
electric
Lightness
55%
balanced
Brightness
94%
HSV value
Perceived
64%
weighted brightness
Luminance
0.4059
WCAG relative
Temperature
Cool
95/100 cool
Color family
Cyan
Tone
Electric
Best ink
Black
9.12:1
Closest name
Deep Sky Blue
ΔE2000 2.5
Where it sits
Hue197° of 360°
Saturation86%
Lightness55%
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#2ab7ef
RGBrgb(42, 183, 239)
HSLhsl(197, 86%, 55%)
CMYKcmyk(82%, 23%, 0%, 6%)
LABlab(69.9 -17.1 -38.0)
LCHlch(69.9 41.7 245.7)
OKLCHoklch(0.733 0.138 231.0)
Decimal2799599
Display P3color(display-p3 0.165 0.718 0.937)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2ab7ef on white: 2.30:1
AA ✗ fail · AA-large · AAA
Aa
#2ab7ef on black: 9.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #9AB5F2
deuteranopia · #81A3EE
tritanopia · #00C6CA

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2ab7ef 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
#E5F4FA
#C5E9F7
#97DCF7
#62CAF3
#2ab7ef
#11A8E4
#0E8CBE
#0B7098
#0D526E
#083345
Base = 500Lightest = 50 · #F2FAFDDarkest = 950 · #083345
:root {
  --brand-50: #F2FAFD;
  --brand-100: #E5F4FA;
  --brand-200: #C5E9F7;
  --brand-300: #97DCF7;
  --brand-400: #62CAF3;
  --brand-500: #2ab7ef;
  --brand-600: #11A8E4;
  --brand-700: #0E8CBE;
  --brand-800: #0B7098;
  --brand-900: #0D526E;
  --brand-950: #083345;
  --brand: #2ab7ef;
  --brand-ink: #000000;
}

Colors that work with #2ab7ef

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#C0E0ED
Hairlines and dividers
Muted text#4B849B
Captions on the surface
Accent#F42D25
Second voice, not a rival
Dark variant#095777
Hover, pressed, headers
Light variant#E7F7FD
Selected rows, tints
Dark surface#142024
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 #2ab7ef

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#EF622A
Analogous left#2AEFC5
Analogous right#2A54EF
Split-complement 1#EF2A54
Split-complement 2#EFC52A
Triadic 1#EF2AB7
Triadic 2#B7EF2A
Tetradic#C52AEF

RGB percentages

Red16.5%
Green71.8%
Blue93.7%

CMYK percentages

Cyan82.4%
Magenta23.4%
Yellow0.0%
Key (black)6.3%

Color previews

#2ab7ef text on a black background

contrast 9.12:1

Card sample

#2ab7ef text on a white background

contrast 2.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2ab7ef

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.

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

#2ab7ef, answered

What color is #2ab7ef?

#2ab7ef is a balanced electric cyan, closest to Deep Sky Blue (ΔE2000 2.5). It sits at 197° on the hue wheel with 86% saturation and 55% lightness, which reads as cool.

What is the RGB value of #2ab7ef?

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

Is #2ab7ef a light or a dark color?

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

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

Black. It scores 9.12:1 against #2ab7ef, versus 2.30:1 for white — AAA at any size.

What is the complementary color of #2ab7ef?

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

What colors go well with #2ab7ef?

For interface work: #F4F9FA as the surface, #C0E0ED for borders, #4B849B for secondary text, #F42D25 as an accent and #095777 for hover and pressed states. For a palette, the analogous pair #2AEFC5 and #2A54EF stays calm, while #EF622A is the loudest partner.

What is #2ab7ef in CMYK for printing?

cmyk(82%, 23%, 0%, 6%). 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 #2ab7ef 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 #2AEFDF; nudged cooler, #28A0F1.

Work with #2ab7ef in the Color Lab