Skip to content

#21a7eb

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

RGB
33, 167, 235
HSL
200°, 84%, 53%
CMYK
86, 29, 0, 8
Luminance
0.3396

At a glance

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

Hex
#21a7eb
Hue
200°
blue
Saturation
84%
electric
Lightness
53%
balanced
Brightness
92%
HSV value
Perceived
59%
weighted brightness
Luminance
0.3396
WCAG relative
Temperature
Cool
96/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
7.79:1
Closest name
Deep Sky Blue
ΔE2000 7.2
Where it sits
Hue200° of 360°
Saturation84%
Lightness53%
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#21a7eb
RGBrgb(33, 167, 235)
HSLhsl(200, 84%, 53%)
CMYKcmyk(86%, 29%, 0%, 8%)
LABlab(64.9 -10.5 -43.6)
LCHlch(64.9 44.9 256.4)
OKLCHoklch(0.692 0.146 238.1)
Decimal2205675
Display P3color(display-p3 0.129 0.655 0.922)

Copy-ready code

/* CSS */
color: #21a7eb;
background-color: #21a7eb;
/* Tailwind (arbitrary) */
class="text-[#21a7eb] bg-[#21a7eb]"
/* SCSS */
$brand: #21a7eb;
/* SwiftUI */
Color(red: 0.129, green: 0.655, blue: 0.922)
/* Android */
Color.parseColor("#21a7eb")
/* Flutter */
Color(0xFF21A7EB)
/* Python / OpenCV (BGR) */
(235, 167, 33)

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 #21a7eb · 7.79:1
Use #000000AAA at every size.
Aa
White text · 2.70:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.79:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #21a7eb as text scores 2.70:1 on white and 7.79:1 on black.

Accessibility — WCAG contrast

Aa
#21a7eb on white: 2.70:1
AA ✗ fail · AA-large · AAA
Aa
#21a7eb on black: 7.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #86A7EE
deuteranopia · #6C96EA
tritanopia · #00B8BF

Color scale — 50 to 950

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

#F2F9FC
#E6F3FA
#C5E6F6
#98D6F6
#65C2F1
#21a7eb
#149CE1
#1182BB
#0D6896
#0E4D6C
#093044
Base = 500Lightest = 50 · #F2F9FCDarkest = 950 · #093044
:root {
  --brand-50: #F2F9FC;
  --brand-100: #E6F3FA;
  --brand-200: #C5E6F6;
  --brand-300: #98D6F6;
  --brand-400: #65C2F1;
  --brand-500: #21a7eb;
  --brand-600: #149CE1;
  --brand-700: #1182BB;
  --brand-800: #0D6896;
  --brand-900: #0E4D6C;
  --brand-950: #093044;
  --brand: #21a7eb;
  --brand-ink: #000000;
}

Colors that work with #21a7eb

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#F02E1C
Second voice, not a rival
Dark variant#0B5175
Hover, pressed, headers
Light variant#E8F6FD
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 #21a7eb

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#EB6521
Analogous left#21EBCA
Analogous right#2142EB
Split-complement 1#EB2142
Split-complement 2#EBCA21
Triadic 1#EB21A7
Triadic 2#A7EB21
Tetradic#CA21EB

RGB percentages

Red12.9%
Green65.5%
Blue92.2%

CMYK percentages

Cyan86.0%
Magenta28.9%
Yellow0.0%
Key (black)7.8%

Color previews

#21a7eb text on a black background

contrast 7.79:1

Card sample

#21a7eb text on a white background

contrast 2.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #21a7eb;
Background color
Panel with #21a7eb background
background-color: #21a7eb;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(33, 167, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(33, 167, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #21a7eb;
background: linear-gradient(135deg, #21a7eb, #2121EB);

Monochromatic scale

Palettes built from #21a7eb

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.

#21a7eb 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.

#21a7eb, answered

What color is #21a7eb?

#21a7eb is a balanced electric blue, closest to Deep Sky Blue (ΔE2000 7.2). It sits at 200° on the hue wheel with 84% saturation and 53% lightness, which reads as cool.

What is the RGB value of #21a7eb?

rgb(33, 167, 235) — 33 red, 167 green and 235 blue out of 255, or 12.9% / 65.5% / 92.2% by channel.

Is #21a7eb a light or a dark color?

It is a mid-tone. Relative luminance is 0.3396 and perceived brightness is 59%, so black text on it reaches 7.79:1.

Should I use black or white text on #21a7eb?

Black. It scores 7.79:1 against #21a7eb, versus 2.70:1 for white — AAA at any size.

What is the complementary color of #21a7eb?

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

What colors go well with #21a7eb?

For interface work: #F4F8FA as the surface, #C0DEED for borders, #4B809B for secondary text, #F02E1C as an accent and #0B5175 for hover and pressed states. For a palette, the analogous pair #21EBCA and #2142EB stays calm, while #EB6521 is the loudest partner.

What is #21a7eb in CMYK for printing?

cmyk(86%, 29%, 0%, 8%). 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 #21a7eb 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 #21EBE5; nudged cooler, #1288E1.

Work with #21a7eb in the Color Lab