Skip to content

#2ab5fa

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

RGB
42, 181, 250
HSL
200°, 95%, 57%
CMYK
83, 28, 0, 2
Luminance
0.4044

At a glance

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

Hex
#2ab5fa
Hue
200°
cyan
Saturation
95%
electric
Lightness
57%
balanced
Brightness
98%
HSV value
Perceived
64%
weighted brightness
Luminance
0.4044
WCAG relative
Temperature
Cool
96/100 cool
Color family
Cyan
Tone
Electric
Best ink
Black
9.09:1
Closest name
Deep Sky Blue
ΔE2000 3.6
Where it sits
Hue200° of 360°
Saturation95%
Lightness57%
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#2ab5fa
RGBrgb(42, 181, 250)
HSLhsl(200, 95%, 57%)
CMYKcmyk(83%, 28%, 0%, 2%)
LABlab(69.8 -12.3 -44.1)
LCHlch(69.8 45.8 254.4)
OKLCHoklch(0.734 0.149 236.9)
Decimal2799098
Display P3color(display-p3 0.165 0.710 0.980)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2ab5fa on white: 2.31:1
AA ✗ fail · AA-large · AAA
Aa
#2ab5fa on black: 9.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #94B5FD
deuteranopia · #78A2F9
tritanopia · #00C7CD

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2ab5fa 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
#E4F4FC
#C2E7FA
#91D9FC
#5BC6FB
#2ab5fa
#06A2EF
#0587C7
#046C9F
#074F73
#053248
Base = 500Lightest = 50 · #F1F9FDDarkest = 950 · #053248
:root {
  --brand-50: #F1F9FD;
  --brand-100: #E4F4FC;
  --brand-200: #C2E7FA;
  --brand-300: #91D9FC;
  --brand-400: #5BC6FB;
  --brand-500: #2ab5fa;
  --brand-600: #06A2EF;
  --brand-700: #0587C7;
  --brand-800: #046C9F;
  --brand-900: #074F73;
  --brand-950: #053248;
  --brand: #2ab5fa;
  --brand-ink: #000000;
}

Colors that work with #2ab5fa

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#C0DEED
Hairlines and dividers
Muted text#4B809B
Captions on the surface
Accent#FE3826
Second voice, not a rival
Dark variant#03547D
Hover, pressed, headers
Light variant#E6F6FE
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 #2ab5fa

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#FA6F2A
Analogous left#2AFAD7
Analogous right#2A4DFA
Split-complement 1#FA2A4D
Split-complement 2#FAD72A
Triadic 1#FA2AB5
Triadic 2#B5FA2A
Tetradic#D72AFA

RGB percentages

Red16.5%
Green71.0%
Blue98.0%

CMYK percentages

Cyan83.2%
Magenta27.6%
Yellow0.0%
Key (black)2.0%

Color previews

#2ab5fa text on a black background

contrast 9.09:1

Card sample

#2ab5fa text on a white background

contrast 2.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2ab5fa

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.

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

#2ab5fa, answered

What color is #2ab5fa?

#2ab5fa is a balanced electric cyan, closest to Deep Sky Blue (ΔE2000 3.6). It sits at 200° on the hue wheel with 95% saturation and 57% lightness, which reads as cool.

What is the RGB value of #2ab5fa?

rgb(42, 181, 250) — 42 red, 181 green and 250 blue out of 255, or 16.5% / 71% / 98% by channel.

Is #2ab5fa a light or a dark color?

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

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

Black. It scores 9.09:1 against #2ab5fa, versus 2.31:1 for white — AAA at any size.

What is the complementary color of #2ab5fa?

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

What colors go well with #2ab5fa?

For interface work: #F4F8FA as the surface, #C0DEED for borders, #4B809B for secondary text, #FE3826 as an accent and #03547D for hover and pressed states. For a palette, the analogous pair #2AFAD7 and #2A4DFA stays calm, while #FA6F2A is the loudest partner.

What is #2ab5fa in CMYK for printing?

cmyk(83%, 28%, 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 #2ab5fa 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 #2AFAF3; nudged cooler, #0F97FC.

Work with #2ab5fa in the Color Lab