Skip to content

#2f09bc

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

RGB
47, 9, 188
HSL
253°, 91%, 39%
CMYK
75, 95, 0, 26
Luminance
0.0443

At a glance

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

Hex
#2f09bc
Hue
253°
blue
Saturation
91%
electric
Lightness
39%
dark
Brightness
74%
HSV value
Perceived
27%
weighted brightness
Luminance
0.0443
WCAG relative
Temperature
Cool
76/100 cool
Color family
Blue
Tone
Electric
Best ink
White
11.13:1
Closest name
Medium Blue
ΔE2000 2.3
Where it sits
Hue253° of 360°
Saturation91%
Lightness39%
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#2f09bc
RGBrgb(47, 9, 188)
HSLhsl(253, 91%, 39%)
CMYKcmyk(75%, 95%, 0%, 26%)
LABlab(25.0 61.8 -81.3)
LCHlch(25.0 102.1 307.2)
OKLCHoklch(0.383 0.235 274.5)
Decimal3082684
Display P3color(display-p3 0.184 0.035 0.737)

Copy-ready code

/* CSS */
color: #2f09bc;
background-color: #2f09bc;
/* Tailwind (arbitrary) */
class="text-[#2f09bc] bg-[#2f09bc]"
/* SCSS */
$brand: #2f09bc;
/* SwiftUI */
Color(red: 0.184, green: 0.035, blue: 0.737)
/* Android */
Color.parseColor("#2f09bc")
/* Flutter */
Color(0xFF2F09BC)
/* Python / OpenCV (BGR) */
(188, 9, 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 #2f09bc · 11.13:1
Use #ffffffAAA at every size.
Aa
White text · 11.13:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.89:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2f09bc as text scores 11.13:1 on white and 1.89:1 on black.

Accessibility — WCAG contrast

Aa
#2f09bc on white: 11.13:1
AA ✓ pass · AA-large · AAA
Aa
#2f09bc on black: 1.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0042C0
deuteranopia · #0033B9
tritanopia · #004D6E

Color scale — 50 to 950

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

#F4F2FD
#E9E5FB
#CEC3F9
#A994FA
#7F5EF7
#5429F5
#3A0BEA
#2f09bc
#27079C
#200A70
#140646
Base = 700Lightest = 50 · #F4F2FDDarkest = 950 · #140646
:root {
  --brand-50: #F4F2FD;
  --brand-100: #E9E5FB;
  --brand-200: #CEC3F9;
  --brand-300: #A994FA;
  --brand-400: #7F5EF7;
  --brand-500: #5429F5;
  --brand-600: #3A0BEA;
  --brand-700: #2f09bc;
  --brand-800: #27079C;
  --brand-900: #200A70;
  --brand-950: #140646;
  --brand: #2f09bc;
  --brand-ink: #ffffff;
}

Colors that work with #2f09bc

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#5C4B9B
Captions on the surface
Accent#C7C005
Second voice, not a rival
Dark variant#1E067A
Hover, pressed, headers
Light variant#ECE7FE
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 #2f09bc

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#96BC09
Analogous left#093DBC
Analogous right#8809BC
Split-complement 1#BC8809
Split-complement 2#3DBC09
Triadic 1#BC2F09
Triadic 2#09BC2F
Tetradic#BC093D

RGB percentages

Red18.4%
Green3.5%
Blue73.7%

CMYK percentages

Cyan75.0%
Magenta95.2%
Yellow0.0%
Key (black)26.3%

Color previews

#2f09bc text on a black background

contrast 1.89:1

Card sample

#2f09bc text on a white background

contrast 11.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f09bc

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.

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

#2f09bc, answered

What color is #2f09bc?

#2f09bc is a dark electric blue, closest to Medium Blue (ΔE2000 2.3). It sits at 253° on the hue wheel with 91% saturation and 39% lightness, which reads as cool.

What is the RGB value of #2f09bc?

rgb(47, 9, 188) — 47 red, 9 green and 188 blue out of 255, or 18.4% / 3.5% / 73.7% by channel.

Is #2f09bc a light or a dark color?

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

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

White. It scores 11.13:1 against #2f09bc, versus 1.89:1 for black — AAA at any size.

What is the complementary color of #2f09bc?

#96BC09 sits directly opposite on the wheel. Softer options are the split-complements #BC8809 and #3DBC09, which give the same contrast with far less vibration.

What colors go well with #2f09bc?

For interface work: #F6F4FA as the surface, #C9C0ED for borders, #5C4B9B for secondary text, #C7C005 as an accent and #1E067A for hover and pressed states. For a palette, the analogous pair #093DBC and #8809BC stays calm, while #96BC09 is the loudest partner.

What is #2f09bc in CMYK for printing?

cmyk(75%, 95%, 0%, 26%). 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 #2f09bc 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 #7009BC; nudged cooler, #0723BE.

Work with #2f09bc in the Color Lab