Skip to content

#2f10ba

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

RGB
47, 16, 186
HSL
251°, 84%, 40%
CMYK
75, 91, 0, 27
Luminance
0.0452

At a glance

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

Hex
#2f10ba
Hue
251°
blue
Saturation
84%
electric
Lightness
40%
dark
Brightness
73%
HSV value
Perceived
27%
weighted brightness
Luminance
0.0452
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Electric
Best ink
White
11.03:1
Closest name
Medium Blue
ΔE2000 2.6
Where it sits
Hue251° of 360°
Saturation84%
Lightness40%
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#2f10ba
RGBrgb(47, 16, 186)
HSLhsl(251, 84%, 40%)
CMYKcmyk(75%, 91%, 0%, 27%)
LABlab(25.3 59.6 -79.7)
LCHlch(25.3 99.5 306.8)
OKLCHoklch(0.384 0.231 274.6)
Decimal3084474
Display P3color(display-p3 0.184 0.063 0.729)

Copy-ready code

/* CSS */
color: #2f10ba;
background-color: #2f10ba;
/* Tailwind (arbitrary) */
class="text-[#2f10ba] bg-[#2f10ba]"
/* SCSS */
$brand: #2f10ba;
/* SwiftUI */
Color(red: 0.184, green: 0.063, blue: 0.729)
/* Android */
Color.parseColor("#2f10ba")
/* Flutter */
Color(0xFF2F10BA)
/* Python / OpenCV (BGR) */
(186, 16, 47)

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

Accessibility — WCAG contrast

Aa
#2f10ba on white: 11.03:1
AA ✓ pass · AA-large · AAA
Aa
#2f10ba on black: 1.90:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0043BE
deuteranopia · #0034B7
tritanopia · #004D6D

Color scale — 50 to 950

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

#F4F2FC
#E9E6FA
#CEC5F6
#A998F6
#7E64F2
#5330ED
#3913E1
#2f10ba
#260D96
#1F0E6D
#130944
Base = 700Lightest = 50 · #F4F2FCDarkest = 950 · #130944
:root {
  --brand-50: #F4F2FC;
  --brand-100: #E9E6FA;
  --brand-200: #CEC5F6;
  --brand-300: #A998F6;
  --brand-400: #7E64F2;
  --brand-500: #5330ED;
  --brand-600: #3913E1;
  --brand-700: #2f10ba;
  --brand-800: #260D96;
  --brand-900: #1F0E6D;
  --brand-950: #130944;
  --brand: #2f10ba;
  --brand-ink: #ffffff;
}

Colors that work with #2f10ba

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#F5F4FA
Tinted page background
Border#C8C0ED
Hairlines and dividers
Muted text#594B9B
Captions on the surface
Accent#C0B40C
Second voice, not a rival
Dark variant#1E0A75
Hover, pressed, headers
Light variant#EBE8FD
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 #2f10ba

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#9BBA10
Analogous left#1046BA
Analogous right#8410BA
Split-complement 1#BA8410
Split-complement 2#46BA10
Triadic 1#BA2F10
Triadic 2#10BA2F
Tetradic#BA1046

RGB percentages

Red18.4%
Green6.3%
Blue72.9%

CMYK percentages

Cyan74.7%
Magenta91.4%
Yellow0.0%
Key (black)27.1%

Color previews

#2f10ba text on a black background

contrast 1.90:1

Card sample

#2f10ba text on a white background

contrast 11.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 16, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 16, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f10ba;
background: linear-gradient(135deg, #2f10ba, #A010BA);

Monochromatic scale

Palettes built from #2f10ba

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.

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

#2f10ba, answered

What color is #2f10ba?

#2f10ba is a dark electric blue, closest to Medium Blue (ΔE2000 2.6). It sits at 251° on the hue wheel with 84% saturation and 40% lightness, which reads as cool.

What is the RGB value of #2f10ba?

rgb(47, 16, 186) — 47 red, 16 green and 186 blue out of 255, or 18.4% / 6.3% / 72.9% by channel.

Is #2f10ba a light or a dark color?

It is a dark color. Relative luminance is 0.0452 and perceived brightness is 27%, so white text on it reaches 11.03:1.

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

White. It scores 11.03:1 against #2f10ba, versus 1.90:1 for black — AAA at any size.

What is the complementary color of #2f10ba?

#9BBA10 sits directly opposite on the wheel. Softer options are the split-complements #BA8410 and #46BA10, which give the same contrast with far less vibration.

What colors go well with #2f10ba?

For interface work: #F5F4FA as the surface, #C8C0ED for borders, #594B9B for secondary text, #C0B40C as an accent and #1E0A75 for hover and pressed states. For a palette, the analogous pair #1046BA and #8410BA stays calm, while #9BBA10 is the loudest partner.

What is #2f10ba in CMYK for printing?

cmyk(75%, 91%, 0%, 27%). 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 #2f10ba 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 #6D10BA; nudged cooler, #0E2DBC.

Work with #2f10ba in the Color Lab