Skip to content

#2c01b9

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

RGB
44, 1, 185
HSL
254°, 99%, 37%
CMYK
76, 100, 0, 28
Luminance
0.0406

At a glance

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

Hex
#2c01b9
Hue
254°
blue
Saturation
99%
electric
Lightness
37%
dark
Brightness
73%
HSV value
Perceived
26%
weighted brightness
Luminance
0.0406
WCAG relative
Temperature
Cool
76/100 cool
Color family
Blue
Tone
Electric
Best ink
White
11.59:1
Closest name
Medium Blue
ΔE2000 2.5
Where it sits
Hue254° of 360°
Saturation99%
Lightness37%
Temperature
Warm ← → Cool76% 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#2c01b9
RGBrgb(44, 1, 185)
HSLhsl(254, 99%, 37%)
CMYKcmyk(76%, 100%, 0%, 28%)
LABlab(23.9 62.6 -81.5)
LCHlch(23.9 102.8 307.5)
OKLCHoklch(0.373 0.236 273.9)
Decimal2884025
Display P3color(display-p3 0.173 0.004 0.725)

Copy-ready code

/* CSS */
color: #2c01b9;
background-color: #2c01b9;
/* Tailwind (arbitrary) */
class="text-[#2c01b9] bg-[#2c01b9]"
/* SCSS */
$brand: #2c01b9;
/* SwiftUI */
Color(red: 0.173, green: 0.004, blue: 0.725)
/* Android */
Color.parseColor("#2c01b9")
/* Flutter */
Color(0xFF2C01B9)
/* Python / OpenCV (BGR) */
(185, 1, 44)

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

Accessibility — WCAG contrast

Aa
#2c01b9 on white: 11.59:1
AA ✓ pass · AA-large · AAA
Aa
#2c01b9 on black: 1.81:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0040BD
deuteranopia · #0031B6
tritanopia · #004B6B

Color scale — 50 to 950

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

#F4F1FE
#E9E3FC
#CEC0FB
#A98FFE
#7E58FE
#5420FE
#3A01F3
#2c01b9
#2701A2
#200675
#140349
Base = 700Lightest = 50 · #F4F1FEDarkest = 950 · #140349
:root {
  --brand-50: #F4F1FE;
  --brand-100: #E9E3FC;
  --brand-200: #CEC0FB;
  --brand-300: #A98FFE;
  --brand-400: #7E58FE;
  --brand-500: #5420FE;
  --brand-600: #3A01F3;
  --brand-700: #2c01b9;
  --brand-800: #2701A2;
  --brand-900: #200675;
  --brand-950: #140349;
  --brand: #2c01b9;
  --brand-ink: #ffffff;
}

Colors that work with #2c01b9

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#CAC0ED
Hairlines and dividers
Muted text#5D4B9B
Captions on the surface
Accent#CCC900
Second voice, not a rival
Dark variant#1E017F
Hover, pressed, headers
Light variant#ECE6FF
Selected rows, tints
Dark surface#181424
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 #2c01b9

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#8EB901
Analogous left#0132B9
Analogous right#8801B9
Split-complement 1#B98801
Split-complement 2#32B901
Triadic 1#B92C01
Triadic 2#01B92C
Tetradic#B90132

RGB percentages

Red17.3%
Green0.4%
Blue72.5%

CMYK percentages

Cyan76.2%
Magenta99.5%
Yellow0.0%
Key (black)27.5%

Color previews

#2c01b9 text on a black background

contrast 1.81:1

Card sample

#2c01b9 text on a white background

contrast 11.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(44, 1, 185, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(44, 1, 185, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2c01b9;
background: linear-gradient(135deg, #2c01b9, #A701B9);

Monochromatic scale

Palettes built from #2c01b9

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.

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

#2c01b9, answered

What color is #2c01b9?

#2c01b9 is a dark electric blue, closest to Medium Blue (ΔE2000 2.5). It sits at 254° on the hue wheel with 99% saturation and 37% lightness, which reads as cool.

What is the RGB value of #2c01b9?

rgb(44, 1, 185) — 44 red, 1 green and 185 blue out of 255, or 17.3% / 0.4% / 72.5% by channel.

Is #2c01b9 a light or a dark color?

It is a dark color. Relative luminance is 0.0406 and perceived brightness is 26%, so white text on it reaches 11.59:1.

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

White. It scores 11.59:1 against #2c01b9, versus 1.81:1 for black — AAA at any size.

What is the complementary color of #2c01b9?

#8EB901 sits directly opposite on the wheel. Softer options are the split-complements #B98801 and #32B901, which give the same contrast with far less vibration.

What colors go well with #2c01b9?

For interface work: #F6F4FA as the surface, #CAC0ED for borders, #5D4B9B for secondary text, #CCC900 as an accent and #1E017F for hover and pressed states. For a palette, the analogous pair #0132B9 and #8801B9 stays calm, while #8EB901 is the loudest partner.

What is #2c01b9 in CMYK for printing?

cmyk(76%, 100%, 0%, 28%). 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 #2c01b9 warm or cool?

Cool — it scores 76 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6F01B9; nudged cooler, #0019BA.

Work with #2c01b9 in the Color Lab