Skip to content

#2b02cd

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

RGB
43, 2, 205
HSL
252°, 98%, 41%
CMYK
79, 99, 0, 20
Luminance
0.0496

At a glance

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

Hex
#2b02cd
Hue
252°
blue
Saturation
98%
electric
Lightness
41%
dark
Brightness
80%
HSV value
Perceived
29%
weighted brightness
Luminance
0.0496
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Electric
Best ink
White
10.54:1
Closest name
Medium Blue
ΔE2000 1.6
Where it sits
Hue252° of 360°
Saturation98%
Lightness41%
Temperature
Warm ← → Cool77% 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#2b02cd
RGBrgb(43, 2, 205)
HSLhsl(252, 98%, 41%)
CMYKcmyk(79%, 99%, 0%, 20%)
LABlab(26.6 67.3 -88.7)
LCHlch(26.6 111.3 307.2)
OKLCHoklch(0.399 0.256 271.8)
Decimal2818765
Display P3color(display-p3 0.169 0.008 0.804)

Copy-ready code

/* CSS */
color: #2b02cd;
background-color: #2b02cd;
/* Tailwind (arbitrary) */
class="text-[#2b02cd] bg-[#2b02cd]"
/* SCSS */
$brand: #2b02cd;
/* SwiftUI */
Color(red: 0.169, green: 0.008, blue: 0.804)
/* Android */
Color.parseColor("#2b02cd")
/* Flutter */
Color(0xFF2B02CD)
/* Python / OpenCV (BGR) */
(205, 2, 43)

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

Accessibility — WCAG contrast

Aa
#2b02cd on white: 10.54:1
AA ✓ pass · AA-large · AAA
Aa
#2b02cd on black: 1.99:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0047D2
deuteranopia · #0035CA
tritanopia · #005477

Color scale — 50 to 950

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

#F4F1FD
#E8E3FC
#CCC1FB
#A690FE
#7A58FD
#4D21FD
#3302F2
#2b02cd
#2202A2
#1C0674
#120449
Base = 700Lightest = 50 · #F4F1FDDarkest = 950 · #120449
:root {
  --brand-50: #F4F1FD;
  --brand-100: #E8E3FC;
  --brand-200: #CCC1FB;
  --brand-300: #A690FE;
  --brand-400: #7A58FD;
  --brand-500: #4D21FD;
  --brand-600: #3302F2;
  --brand-700: #2b02cd;
  --brand-800: #2202A2;
  --brand-900: #1C0674;
  --brand-950: #120449;
  --brand: #2b02cd;
  --brand-ink: #ffffff;
}

Colors that work with #2b02cd

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#F6F4FA
Tinted page background
Border#C9C0ED
Hairlines and dividers
Muted text#5B4B9B
Captions on the surface
Accent#CCC200
Second voice, not a rival
Dark variant#1A017E
Hover, pressed, headers
Light variant#EBE6FF
Selected rows, tints
Dark surface#171424
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 #2b02cd

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#A4CD02
Analogous left#023FCD
Analogous right#9002CD
Split-complement 1#CD9002
Split-complement 2#3FCD02
Triadic 1#CD2B02
Triadic 2#02CD2B
Tetradic#CD023F

RGB percentages

Red16.9%
Green0.8%
Blue80.4%

CMYK percentages

Cyan79.0%
Magenta99.0%
Yellow0.0%
Key (black)19.6%

Color previews

#2b02cd text on a black background

contrast 1.99:1

Card sample

#2b02cd text on a white background

contrast 10.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(43, 2, 205, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(43, 2, 205, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2b02cd;
background: linear-gradient(135deg, #2b02cd, #B202CD);

Monochromatic scale

Palettes built from #2b02cd

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.

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

#2b02cd, answered

What color is #2b02cd?

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

What is the RGB value of #2b02cd?

rgb(43, 2, 205) — 43 red, 2 green and 205 blue out of 255, or 16.9% / 0.8% / 80.4% by channel.

Is #2b02cd a light or a dark color?

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

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

White. It scores 10.54:1 against #2b02cd, versus 1.99:1 for black — AAA at any size.

What is the complementary color of #2b02cd?

#A4CD02 sits directly opposite on the wheel. Softer options are the split-complements #CD9002 and #3FCD02, which give the same contrast with far less vibration.

What colors go well with #2b02cd?

For interface work: #F6F4FA as the surface, #C9C0ED for borders, #5B4B9B for secondary text, #CCC200 as an accent and #1A017E for hover and pressed states. For a palette, the analogous pair #023FCD and #9002CD stays calm, while #A4CD02 is the loudest partner.

What is #2b02cd in CMYK for printing?

cmyk(79%, 99%, 0%, 20%). 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 #2b02cd warm or cool?

Cool — it scores 77 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7502CD; nudged cooler, #001DCF.

Work with #2b02cd in the Color Lab