Skip to content

#2f014f

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

RGB
47, 1, 79
HSL
275°, 98%, 16%
CMYK
41, 99, 0, 69
Luminance
0.0119

At a glance

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

Hex
#2f014f
Hue
275°
violet
Saturation
98%
electric
Lightness
16%
deep
Brightness
31%
HSV value
Perceived
15%
weighted brightness
Luminance
0.0119
WCAG relative
Temperature
Cool
64/100 cool
Color family
Violet
Tone
Electric
Best ink
White
16.96:1
Closest name
Indigo
ΔE2000 9
Where it sits
Hue275° of 360°
Saturation98%
Lightness16%
Temperature
Warm ← → Cool64% 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#2f014f
RGBrgb(47, 1, 79)
HSLhsl(275, 98%, 16%)
CMYKcmyk(41%, 99%, 0%, 69%)
LABlab(10.5 36.4 -36.3)
LCHlch(10.5 51.4 315.1)
OKLCHoklch(0.245 0.126 304.6)
Decimal3080527
Display P3color(display-p3 0.184 0.004 0.310)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f014f on white: 16.96:1
AA ✓ pass · AA-large · AAA
Aa
#2f014f on black: 1.24:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #001B51
deuteranopia · #001C4E
tritanopia · #28192B

Color scale — 50 to 950

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

#F8F1FD
#F2E4FC
#E3C1FB
#D190FE
#BA59FD
#A221FC
#9003F2
#7803C9
#6002A1
#470674
#2f014f
Base = 950Lightest = 50 · #F8F1FDDarkest = 950 · #2f014f
:root {
  --brand-50: #F8F1FD;
  --brand-100: #F2E4FC;
  --brand-200: #E3C1FB;
  --brand-300: #D190FE;
  --brand-400: #BA59FD;
  --brand-500: #A221FC;
  --brand-600: #9003F2;
  --brand-700: #7803C9;
  --brand-800: #6002A1;
  --brand-900: #470674;
  --brand-950: #2f014f;
  --brand: #2f014f;
  --brand-ink: #ffffff;
}

Colors that work with #2f014f

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#F8F4FA
Tinted page background
Border#DAC0ED
Hairlines and dividers
Muted text#7A4B9B
Captions on the surface
Accent#355000
Second voice, not a rival
Dark variant#4B027E
Hover, pressed, headers
Light variant#F4E6FF
Selected rows, tints
Dark surface#1E1424
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 #2f014f

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#214F01
Analogous left#08014F
Analogous right#4F0148
Split-complement 1#484F01
Split-complement 2#014F08
Triadic 1#4F2F01
Triadic 2#014F2F
Tetradic#4F0801

RGB percentages

Red18.4%
Green0.4%
Blue31.0%

CMYK percentages

Cyan40.5%
Magenta98.7%
Yellow0.0%
Key (black)69.0%

Color previews

#2f014f text on a black background

contrast 1.24:1

Card sample

#2f014f text on a white background

contrast 16.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f014f

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.

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

#2f014f, answered

What color is #2f014f?

#2f014f is a deep electric violet, closest to Indigo (ΔE2000 9). It sits at 275° on the hue wheel with 98% saturation and 16% lightness, which reads as cool.

What is the RGB value of #2f014f?

rgb(47, 1, 79) — 47 red, 1 green and 79 blue out of 255, or 18.4% / 0.4% / 31% by channel.

Is #2f014f a light or a dark color?

It is a dark color. Relative luminance is 0.0119 and perceived brightness is 15%, so white text on it reaches 16.96:1.

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

White. It scores 16.96:1 against #2f014f, versus 1.24:1 for black — AAA at any size.

What is the complementary color of #2f014f?

#214F01 sits directly opposite on the wheel. Softer options are the split-complements #484F01 and #014F08, which give the same contrast with far less vibration.

What colors go well with #2f014f?

For interface work: #F8F4FA as the surface, #DAC0ED for borders, #7A4B9B for secondary text, #355000 as an accent and #4B027E for hover and pressed states. For a palette, the analogous pair #08014F and #4F0148 stays calm, while #214F01 is the loudest partner.

What is #2f014f in CMYK for printing?

cmyk(41%, 99%, 0%, 69%). 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 #2f014f warm or cool?

Cool — it scores 64 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #4C014F; nudged cooler, #120050.

Work with #2f014f in the Color Lab