Skip to content

#2f02fc

a balanced, electric blue · cool · closest name: Blue

RGB
47, 2, 252
HSL
251°, 98%, 50%
CMYK
81, 99, 0, 1
Luminance
0.0768

At a glance

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

Hex
#2f02fc
Hue
251°
blue
Saturation
98%
electric
Lightness
50%
balanced
Brightness
99%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0768
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Electric
Best ink
White
8.28:1
Closest name
Blue
ΔE2000 1.2
Where it sits
Hue251° of 360°
Saturation98%
Lightness50%
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#2f02fc
RGBrgb(47, 2, 252)
HSLhsl(251, 98%, 50%)
CMYKcmyk(81%, 99%, 0%, 1%)
LABlab(33.3 78.6 -104.5)
LCHlch(33.3 130.8 307.0)
OKLCHoklch(0.461 0.302 269.9)
Decimal3080956
Display P3color(display-p3 0.184 0.008 0.988)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f02fc on white: 8.28:1
AA ✓ pass · AA-large · AAA
Aa
#2f02fc on black: 2.54:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0059FF
deuteranopia · #0042F8
tritanopia · #006994

Color scale — 50 to 950

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

#F3F1FE
#E8E3FC
#CBC1FB
#A490FE
#7658FE
#4820FD
#2f02fc
#2602CA
#1E01A2
#1A0675
#100449
Base = 600Lightest = 50 · #F3F1FEDarkest = 950 · #100449
:root {
  --brand-50: #F3F1FE;
  --brand-100: #E8E3FC;
  --brand-200: #CBC1FB;
  --brand-300: #A490FE;
  --brand-400: #7658FE;
  --brand-500: #4820FD;
  --brand-600: #2f02fc;
  --brand-700: #2602CA;
  --brand-800: #1E01A2;
  --brand-900: #1A0675;
  --brand-950: #100449;
  --brand: #2f02fc;
  --brand-ink: #ffffff;
}

Colors that work with #2f02fc

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#CCBD00
Second voice, not a rival
Dark variant#18017E
Hover, pressed, headers
Light variant#EAE6FF
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 #2f02fc

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
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • 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#CFFC02
Analogous left#0252FC
Analogous right#AC02FC
Split-complement 1#FCAC02
Split-complement 2#52FC02
Triadic 1#FC2F02
Triadic 2#02FC2F
Tetradic#FC0252

RGB percentages

Red18.4%
Green0.8%
Blue98.8%

CMYK percentages

Cyan81.3%
Magenta99.2%
Yellow0.0%
Key (black)1.2%

Color previews

#2f02fc text on a black background

contrast 2.54:1

Card sample

#2f02fc text on a white background

contrast 8.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f02fc

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.

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

#2f02fc, answered

What color is #2f02fc?

#2f02fc is a balanced electric blue, closest to Blue (ΔE2000 1.2). It sits at 251° on the hue wheel with 98% saturation and 50% lightness, which reads as cool.

What is the RGB value of #2f02fc?

rgb(47, 2, 252) — 47 red, 2 green and 252 blue out of 255, or 18.4% / 0.8% / 98.8% by channel.

Is #2f02fc a light or a dark color?

It is a dark color. Relative luminance is 0.0768 and perceived brightness is 35%, so white text on it reaches 8.28:1.

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

White. It scores 8.28:1 against #2f02fc, versus 2.54:1 for black — AAA at any size.

What is the complementary color of #2f02fc?

#CFFC02 sits directly opposite on the wheel. Softer options are the split-complements #FCAC02 and #52FC02, which give the same contrast with far less vibration.

What colors go well with #2f02fc?

For interface work: #F5F4FA as the surface, #C8C0ED for borders, #594B9B for secondary text, #CCBD00 as an accent and #18017E for hover and pressed states. For a palette, the analogous pair #0252FC and #AC02FC stays calm, while #CFFC02 is the loudest partner.

What is #2f02fc in CMYK for printing?

cmyk(81%, 99%, 0%, 1%). 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 #2f02fc 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 #8B02FC; nudged cooler, #001DFE.

Work with #2f02fc in the Color Lab