Skip to content

#2f0983

a dark, electric violet · cool · closest name: Dark Blue

RGB
47, 9, 131
HSL
259°, 87%, 28%
CMYK
64, 93, 0, 49
Luminance
0.0244

At a glance

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

Hex
#2f0983
Hue
259°
violet
Saturation
87%
electric
Lightness
28%
dark
Brightness
51%
HSV value
Perceived
20%
weighted brightness
Luminance
0.0244
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Electric
Best ink
White
14.12:1
Closest name
Dark Blue
ΔE2000 3.6
Where it sits
Hue259° of 360°
Saturation87%
Lightness28%
Temperature
Warm ← → Cool73% 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#2f0983
RGBrgb(47, 9, 131)
HSLhsl(259, 87%, 28%)
CMYKcmyk(64%, 93%, 0%, 49%)
LABlab(17.6 46.8 -58.8)
LCHlch(17.6 75.1 308.6)
OKLCHoklch(0.312 0.174 283.8)
Decimal3082627
Display P3color(display-p3 0.184 0.035 0.514)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f0983 on white: 14.12:1
AA ✓ pass · AA-large · AAA
Aa
#2f0983 on black: 1.49:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #002F86
deuteranopia · #002781
tritanopia · #00344B

Color scale — 50 to 950

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

#F5F2FD
#ECE5FA
#D4C4F7
#B496F8
#8F62F4
#6A2DF1
#5210E5
#450DBF
#370B99
#2f0983
#1B0845
Base = 900Lightest = 50 · #F5F2FDDarkest = 950 · #1B0845
:root {
  --brand-50: #F5F2FD;
  --brand-100: #ECE5FA;
  --brand-200: #D4C4F7;
  --brand-300: #B496F8;
  --brand-400: #8F62F4;
  --brand-500: #6A2DF1;
  --brand-600: #5210E5;
  --brand-700: #450DBF;
  --brand-800: #370B99;
  --brand-900: #2f0983;
  --brand-950: #1B0845;
  --brand: #2f0983;
  --brand-ink: #ffffff;
}

Colors that work with #2f0983

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#CEC0ED
Hairlines and dividers
Muted text#644B9B
Captions on the surface
Accent#7E8606
Second voice, not a rival
Dark variant#2B0877
Hover, pressed, headers
Light variant#EEE7FD
Selected rows, tints
Dark surface#191424
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 #2f0983

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#5D8309
Analogous left#092083
Analogous right#6C0983
Split-complement 1#836C09
Split-complement 2#208309
Triadic 1#832F09
Triadic 2#09832F
Tetradic#830920

RGB percentages

Red18.4%
Green3.5%
Blue51.4%

CMYK percentages

Cyan64.1%
Magenta93.1%
Yellow0.0%
Key (black)48.6%

Color previews

#2f0983 text on a black background

contrast 1.49:1

Card sample

#2f0983 text on a white background

contrast 14.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f0983

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.

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

#2f0983, answered

What color is #2f0983?

#2f0983 is a dark electric violet, closest to Dark Blue (ΔE2000 3.6). It sits at 259° on the hue wheel with 87% saturation and 28% lightness, which reads as cool.

What is the RGB value of #2f0983?

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

Is #2f0983 a light or a dark color?

It is a dark color. Relative luminance is 0.0244 and perceived brightness is 20%, so white text on it reaches 14.12:1.

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

White. It scores 14.12:1 against #2f0983, versus 1.49:1 for black — AAA at any size.

What is the complementary color of #2f0983?

#5D8309 sits directly opposite on the wheel. Softer options are the split-complements #836C09 and #208309, which give the same contrast with far less vibration.

What colors go well with #2f0983?

For interface work: #F6F4FA as the surface, #CEC0ED for borders, #644B9B for secondary text, #7E8606 as an accent and #2B0877 for hover and pressed states. For a palette, the analogous pair #092083 and #6C0983 stays calm, while #5D8309 is the loudest partner.

What is #2f0983 in CMYK for printing?

cmyk(64%, 93%, 0%, 49%). 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 #2f0983 warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5C0983; nudged cooler, #080F85.

Work with #2f0983 in the Color Lab