Skip to content

#731cdf

a balanced, electric violet · cool · closest name: Blue Violet

RGB
115, 28, 223
HSL
267°, 78%, 49%
CMYK
48, 87, 0, 13
Luminance
0.0980

At a glance

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

Hex
#731cdf
Hue
267°
violet
Saturation
78%
electric
Lightness
49%
balanced
Brightness
87%
HSV value
Perceived
39%
weighted brightness
Luminance
0.0980
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.09:1
Closest name
Blue Violet
ΔE2000 4.5
Where it sits
Hue267° of 360°
Saturation78%
Lightness49%
Temperature
Warm ← → Cool68% 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#731cdf
RGBrgb(115, 28, 223)
HSLhsl(267, 78%, 49%)
CMYKcmyk(48%, 87%, 0%, 13%)
LABlab(37.5 70.8 -80.9)
LCHlch(37.5 107.5 311.2)
OKLCHoklch(0.494 0.255 294.5)
Decimal7544031
Display P3color(display-p3 0.451 0.110 0.875)

Copy-ready code

/* CSS */
color: #731cdf;
background-color: #731cdf;
/* Tailwind (arbitrary) */
class="text-[#731cdf] bg-[#731cdf]"
/* SCSS */
$brand: #731cdf;
/* SwiftUI */
Color(red: 0.451, green: 0.110, blue: 0.875)
/* Android */
Color.parseColor("#731cdf")
/* Flutter */
Color(0xFF731CDF)
/* Python / OpenCV (BGR) */
(223, 28, 115)

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 #731cdf · 7.09:1
Use #ffffffAAA at every size.
Aa
White text · 7.09:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.96:1
AA fail · AA large fail · AAA fail
Reading the other direction: #731cdf as text scores 7.09:1 on white and 2.96:1 on black.

Accessibility — WCAG contrast

Aa
#731cdf on white: 7.09:1
AA ✓ pass · AA-large · AAA
Aa
#731cdf on black: 2.96:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005AE4
deuteranopia · #0055DC
tritanopia · #515C85

Color scale — 50 to 950

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

#F7F3FC
#EFE6F9
#DBC7F5
#C29BF2
#A469EC
#8638E6
#731cdf
#5E17B5
#4B1291
#391169
#230B42
Base = 600Lightest = 50 · #F7F3FCDarkest = 950 · #230B42
:root {
  --brand-50: #F7F3FC;
  --brand-100: #EFE6F9;
  --brand-200: #DBC7F5;
  --brand-300: #C29BF2;
  --brand-400: #A469EC;
  --brand-500: #8638E6;
  --brand-600: #731cdf;
  --brand-700: #5E17B5;
  --brand-800: #4B1291;
  --brand-900: #391169;
  --brand-950: #230B42;
  --brand: #731cdf;
  --brand-ink: #ffffff;
}

Colors that work with #731cdf

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#D4C0ED
Hairlines and dividers
Muted text#6E4B9B
Captions on the surface
Accent#99B913
Second voice, not a rival
Dark variant#3A0E71
Hover, pressed, headers
Light variant#F1E8FC
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 #731cdf

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#88DF1C
Analogous left#1C26DF
Analogous right#D51CDF
Split-complement 1#DFD51C
Split-complement 2#26DF1C
Triadic 1#DF731C
Triadic 2#1CDF73
Tetradic#DF1C26

RGB percentages

Red45.1%
Green11.0%
Blue87.5%

CMYK percentages

Cyan48.4%
Magenta87.4%
Yellow0.0%
Key (black)12.5%

Color previews

#731cdf text on a black background

contrast 2.96:1

Card sample

#731cdf text on a white background

contrast 7.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #731cdf;
Background color
Panel with #731cdf background
background-color: #731cdf;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(115, 28, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(115, 28, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #731cdf;
background: linear-gradient(135deg, #731cdf, #DF1CC9);

Monochromatic scale

Palettes built from #731cdf

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.

#731cdf 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.

#731cdf, answered

What color is #731cdf?

#731cdf is a balanced electric violet, closest to Blue Violet (ΔE2000 4.5). It sits at 267° on the hue wheel with 78% saturation and 49% lightness, which reads as cool.

What is the RGB value of #731cdf?

rgb(115, 28, 223) — 115 red, 28 green and 223 blue out of 255, or 45.1% / 11% / 87.5% by channel.

Is #731cdf a light or a dark color?

It is a dark color. Relative luminance is 0.0980 and perceived brightness is 39%, so white text on it reaches 7.09:1.

Should I use black or white text on #731cdf?

White. It scores 7.09:1 against #731cdf, versus 2.96:1 for black — AAA at any size.

What is the complementary color of #731cdf?

#88DF1C sits directly opposite on the wheel. Softer options are the split-complements #DFD51C and #26DF1C, which give the same contrast with far less vibration.

What colors go well with #731cdf?

For interface work: #F7F4FA as the surface, #D4C0ED for borders, #6E4B9B for secondary text, #99B913 as an accent and #3A0E71 for hover and pressed states. For a palette, the analogous pair #1C26DF and #D51CDF stays calm, while #88DF1C is the loudest partner.

What is #731cdf in CMYK for printing?

cmyk(48%, 87%, 0%, 13%). 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 #731cdf warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BB1CDF; nudged cooler, #2919E1.

Work with #731cdf in the Color Lab