Skip to content

#021dce

a dark, electric blue · cool · closest name: Medium Blue

RGB
2, 29, 206
HSL
232°, 98%, 41%
CMYK
99, 86, 0, 19
Luminance
0.0535

At a glance

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

Hex
#021dce
Hue
232°
blue
Saturation
98%
electric
Lightness
41%
dark
Brightness
81%
HSV value
Perceived
29%
weighted brightness
Luminance
0.0535
WCAG relative
Temperature
Cool
88/100 cool
Color family
Blue
Tone
Electric
Best ink
White
10.15:1
Closest name
Medium Blue
ΔE2000 2.9
Where it sits
Hue232° of 360°
Saturation98%
Lightness41%
Temperature
Warm ← → Cool88% 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#021dce
RGBrgb(2, 29, 206)
HSLhsl(232, 98%, 41%)
CMYKcmyk(99%, 86%, 0%, 19%)
LABlab(27.7 59.7 -87.5)
LCHlch(27.7 105.9 304.3)
OKLCHoklch(0.403 0.255 264.4)
Decimal138702
Display P3color(display-p3 0.008 0.114 0.808)

Copy-ready code

/* CSS */
color: #021dce;
background-color: #021dce;
/* Tailwind (arbitrary) */
class="text-[#021dce] bg-[#021dce]"
/* SCSS */
$brand: #021dce;
/* SwiftUI */
Color(red: 0.008, green: 0.114, blue: 0.808)
/* Android */
Color.parseColor("#021dce")
/* Flutter */
Color(0xFF021DCE)
/* Python / OpenCV (BGR) */
(206, 29, 2)

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#ffffff on #021dce · 10.15:1
Use #ffffffAAA at every size.
Aa
White text · 10.15:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.07:1
AA fail · AA large fail · AAA fail
Reading the other direction: #021dce as text scores 10.15:1 on white and 2.07:1 on black.

Accessibility — WCAG contrast

Aa
#021dce on white: 10.15:1
AA ✓ pass · AA-large · AAA
Aa
#021dce on black: 2.07:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004BD3
deuteranopia · #0037CB
tritanopia · #005A7A

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #021dce is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F1F3FD
#E3E7FC
#C1C8FB
#909EFE
#586EFD
#213EFD
#0222F2
#021dce
#0217A2
#061574
#040D49
Base = 700Lightest = 50 · #F1F3FDDarkest = 950 · #040D49
:root {
  --brand-50: #F1F3FD;
  --brand-100: #E3E7FC;
  --brand-200: #C1C8FB;
  --brand-300: #909EFE;
  --brand-400: #586EFD;
  --brand-500: #213EFD;
  --brand-600: #0222F2;
  --brand-700: #021dce;
  --brand-800: #0217A2;
  --brand-900: #061574;
  --brand-950: #040D49;
  --brand: #021dce;
  --brand-ink: #ffffff;
}

Colors that work with #021dce

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F4F5FA
Tinted page background
Border#C0C6ED
Hairlines and dividers
Muted text#4B559B
Captions on the surface
Accent#CC7E00
Second voice, not a rival
Dark variant#01127E
Hover, pressed, headers
Light variant#E6E9FF
Selected rows, tints
Dark surface#141624
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 #021dce

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#CEB302
Analogous left#0283CE
Analogous right#4D02CE
Split-complement 1#CE4D02
Split-complement 2#83CE02
Triadic 1#CE021D
Triadic 2#1DCE02
Tetradic#CE0283

RGB percentages

Red0.8%
Green11.4%
Blue80.8%

CMYK percentages

Cyan99.0%
Magenta85.9%
Yellow0.0%
Key (black)19.2%

Color previews

#021dce text on a black background

contrast 2.07:1

Card sample

#021dce text on a white background

contrast 10.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #021dce;
Background color
Panel with #021dce background
background-color: #021dce;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(2, 29, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 29, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #021dce;
background: linear-gradient(135deg, #021dce, #6F02CE);

Monochromatic scale

Palettes built from #021dce

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.

#021dce 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.

#021dce, answered

What color is #021dce?

#021dce is a dark electric blue, closest to Medium Blue (ΔE2000 2.9). It sits at 232° on the hue wheel with 98% saturation and 41% lightness, which reads as cool.

What is the RGB value of #021dce?

rgb(2, 29, 206) — 2 red, 29 green and 206 blue out of 255, or 0.8% / 11.4% / 80.8% by channel.

Is #021dce a light or a dark color?

It is a dark color. Relative luminance is 0.0535 and perceived brightness is 29%, so white text on it reaches 10.15:1.

Should I use black or white text on #021dce?

White. It scores 10.15:1 against #021dce, versus 2.07:1 for black — AAA at any size.

What is the complementary color of #021dce?

#CEB302 sits directly opposite on the wheel. Softer options are the split-complements #CE4D02 and #83CE02, which give the same contrast with far less vibration.

What colors go well with #021dce?

For interface work: #F4F5FA as the surface, #C0C6ED for borders, #4B559B for secondary text, #CC7E00 as an accent and #01127E for hover and pressed states. For a palette, the analogous pair #0283CE and #4D02CE stays calm, while #CEB302 is the loudest partner.

What is #021dce in CMYK for printing?

cmyk(99%, 86%, 0%, 19%). 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 #021dce warm or cool?

Cool — it scores 88 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #3202CE; nudged cooler, #003ED0.

Work with #021dce in the Color Lab