Skip to content

#2f026f

a deep, electric violet · cool · closest name: Navy

RGB
47, 2, 111
HSL
265°, 97%, 22%
CMYK
58, 98, 0, 57
Luminance
0.0180

At a glance

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

Hex
#2f026f
Hue
265°
violet
Saturation
97%
electric
Lightness
22%
deep
Brightness
44%
HSV value
Perceived
18%
weighted brightness
Luminance
0.0180
WCAG relative
Temperature
Cool
70/100 cool
Color family
Violet
Tone
Electric
Best ink
White
15.45:1
Closest name
Navy
ΔE2000 4.8
Where it sits
Hue265° of 360°
Saturation97%
Lightness22%
Temperature
Warm ← → Cool70% 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#2f026f
RGBrgb(47, 2, 111)
HSLhsl(265, 97%, 22%)
CMYKcmyk(58%, 98%, 0%, 57%)
LABlab(14.4 43.9 -51.3)
LCHlch(14.4 67.5 310.5)
OKLCHoklch(0.283 0.157 290.2)
Decimal3080815
Display P3color(display-p3 0.184 0.008 0.435)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f026f on white: 15.45:1
AA ✓ pass · AA-large · AAA
Aa
#2f026f on black: 1.36:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #002672
deuteranopia · #00226D
tritanopia · #14293E

Color scale — 50 to 950

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

#F6F1FD
#EEE4FC
#D9C1FB
#BE91FD
#9D5AFC
#7C23FB
#6604F1
#5504C8
#4403A0
#2f026f
#200448
Base = 900Lightest = 50 · #F6F1FDDarkest = 950 · #200448
:root {
  --brand-50: #F6F1FD;
  --brand-100: #EEE4FC;
  --brand-200: #D9C1FB;
  --brand-300: #BE91FD;
  --brand-400: #9D5AFC;
  --brand-500: #7C23FB;
  --brand-600: #6604F1;
  --brand-700: #5504C8;
  --brand-800: #4403A0;
  --brand-900: #2f026f;
  --brand-950: #200448;
  --brand: #2f026f;
  --brand-ink: #ffffff;
}

Colors that work with #2f026f

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#F7F4FA
Tinted page background
Border#D2C0ED
Hairlines and dividers
Muted text#6C4B9B
Captions on the surface
Accent#5F7100
Second voice, not a rival
Dark variant#35027D
Hover, pressed, headers
Light variant#F0E6FF
Selected rows, tints
Dark surface#1B1424
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 #2f026f

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#426F02
Analogous left#020B6F
Analogous right#66026F
Split-complement 1#6F6602
Split-complement 2#0B6F02
Triadic 1#6F2F02
Triadic 2#026F2F
Tetradic#6F020B

RGB percentages

Red18.4%
Green0.8%
Blue43.5%

CMYK percentages

Cyan57.7%
Magenta98.2%
Yellow0.0%
Key (black)56.5%

Color previews

#2f026f text on a black background

contrast 1.36:1

Card sample

#2f026f text on a white background

contrast 15.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f026f

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.

#2f026f in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#2f026f, answered

What color is #2f026f?

#2f026f is a deep electric violet, closest to Navy (ΔE2000 4.8). It sits at 265° on the hue wheel with 97% saturation and 22% lightness, which reads as cool.

What is the RGB value of #2f026f?

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

Is #2f026f a light or a dark color?

It is a dark color. Relative luminance is 0.0180 and perceived brightness is 18%, so white text on it reaches 15.45:1.

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

White. It scores 15.45:1 against #2f026f, versus 1.36:1 for black — AAA at any size.

What is the complementary color of #2f026f?

#426F02 sits directly opposite on the wheel. Softer options are the split-complements #6F6602 and #0B6F02, which give the same contrast with far less vibration.

What colors go well with #2f026f?

For interface work: #F7F4FA as the surface, #D2C0ED for borders, #6C4B9B for secondary text, #5F7100 as an accent and #35027D for hover and pressed states. For a palette, the analogous pair #020B6F and #66026F stays calm, while #426F02 is the loudest partner.

What is #2f026f in CMYK for printing?

cmyk(58%, 98%, 0%, 57%). 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 #2f026f warm or cool?

Cool — it scores 70 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #57026F; nudged cooler, #060170.

Work with #2f026f in the Color Lab