Skip to content

#2f005f

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

RGB
47, 0, 95
HSL
270°, 100%, 19%
CMYK
51, 100, 0, 63
Luminance
0.0143

At a glance

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

Hex
#2f005f
Hue
270°
violet
Saturation
100%
electric
Lightness
19%
deep
Brightness
37%
HSV value
Perceived
16%
weighted brightness
Luminance
0.0143
WCAG relative
Temperature
Cool
67/100 cool
Color family
Violet
Tone
Electric
Best ink
White
16.33:1
Closest name
Indigo
ΔE2000 6.6
Where it sits
Hue270° of 360°
Saturation100%
Lightness19%
Temperature
Warm ← → Cool67% 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#2f005f
RGBrgb(47, 0, 95)
HSLhsl(270, 100%, 19%)
CMYKcmyk(51%, 100%, 0%, 63%)
LABlab(12.2 40.7 -44.4)
LCHlch(12.2 60.2 312.5)
OKLCHoklch(0.262 0.143 296.7)
Decimal3080287
Display P3color(display-p3 0.184 0.000 0.373)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f005f on white: 16.33:1
AA ✓ pass · AA-large · AAA
Aa
#2f005f on black: 1.29:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #002061
deuteranopia · #001F5D
tritanopia · #212034

Color scale — 50 to 950

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

#F7F1FE
#F0E3FC
#DEC0FC
#C68FFF
#AA57FF
#8E1FFF
#7900F5
#6500CC
#5100A3
#3D0576
#2f005f
Base = 950Lightest = 50 · #F7F1FEDarkest = 950 · #2f005f
:root {
  --brand-50: #F7F1FE;
  --brand-100: #F0E3FC;
  --brand-200: #DEC0FC;
  --brand-300: #C68FFF;
  --brand-400: #AA57FF;
  --brand-500: #8E1FFF;
  --brand-600: #7900F5;
  --brand-700: #6500CC;
  --brand-800: #5100A3;
  --brand-900: #3D0576;
  --brand-950: #2f005f;
  --brand: #2f005f;
  --brand-ink: #ffffff;
}

Colors that work with #2f005f

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#D6C0ED
Hairlines and dividers
Muted text#724B9B
Captions on the surface
Accent#485F00
Second voice, not a rival
Dark variant#3F0080
Hover, pressed, headers
Light variant#F2E5FF
Selected rows, tints
Dark surface#1C1424
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 #2f005f

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#305F00
Analogous left#00005F
Analogous right#5E005F
Split-complement 1#5F5E00
Split-complement 2#005F00
Triadic 1#5F2F00
Triadic 2#005F2F
Tetradic#5F0000

RGB percentages

Red18.4%
Green0.0%
Blue37.3%

CMYK percentages

Cyan50.5%
Magenta100.0%
Yellow0.0%
Key (black)62.7%

Color previews

#2f005f text on a black background

contrast 1.29:1

Card sample

#2f005f text on a white background

contrast 16.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f005f

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.

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

#2f005f, answered

What color is #2f005f?

#2f005f is a deep electric violet, closest to Indigo (ΔE2000 6.6). It sits at 270° on the hue wheel with 100% saturation and 19% lightness, which reads as cool.

What is the RGB value of #2f005f?

rgb(47, 0, 95) — 47 red, 0 green and 95 blue out of 255, or 18.4% / 0% / 37.3% by channel.

Is #2f005f a light or a dark color?

It is a dark color. Relative luminance is 0.0143 and perceived brightness is 16%, so white text on it reaches 16.33:1.

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

White. It scores 16.33:1 against #2f005f, versus 1.29:1 for black — AAA at any size.

What is the complementary color of #2f005f?

#305F00 sits directly opposite on the wheel. Softer options are the split-complements #5F5E00 and #005F00, which give the same contrast with far less vibration.

What colors go well with #2f005f?

For interface work: #F7F4FA as the surface, #D6C0ED for borders, #724B9B for secondary text, #485F00 as an accent and #3F0080 for hover and pressed states. For a palette, the analogous pair #00005F and #5E005F stays calm, while #305F00 is the loudest partner.

What is #2f005f in CMYK for printing?

cmyk(51%, 100%, 0%, 63%). 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 #2f005f warm or cool?

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

Work with #2f005f in the Color Lab