Black Friday 2026: design deals we check every day. See the deals →

#31004A Hex Color

Online color picker to view shades, tints, color codes, and complementary colors

 
#31004a
Hex color #31004a graphic
Dark purple is a near-black violet that designers reach for when a dark mode interface needs more character than plain charcoal. The hex code #31004a is dim and cool, with a blue-leaning undertone that keeps it from reading muddy. White text measures about 17.1:1 contrast on it, so small body copy stays readable. Pair it with muted gold for luxury work.

Color Conversions

Hex color #31004a converted to various formats including hex, rgb, hsl, and more.

  • Hex#31004a
  • RGBrgb(49, 0, 74)
  • RGB Percentagesrgb(19%, 0%, 29%)
  • CMYK34%, 100%, 0%, 71%
  • HSLhsl(280, 100%, 15%)
  • HSVhsv(280, 100%, 29%)
  • OKLCHoklch(24.2% 0.123 309.5)
  • LCH10, 49, 317
  • LAB10, 36, -33
  • LUV10, 7, -27
  • XYZ3, 1, 7
  • Closest Tailwind Colorfuchsia-950

Color Variations

Variations of this color including shaded, tints, and complementary colors.

Brighten

Tints of the color as they brighten toward white.

#31004a
#431d5c
#56356d
#694c7f
#7d6491
#927da3
#a796b5
#bcafc7
#d2c9da
#e8e4ec

Darken

Shades of the color as they darken toward black.

#31004a
#29003f
#220035
#1a002a
#130020
#0c0017
#06000e
#030006
#010002
#000000

Desaturate

Desaturated versions of this color.

#31004a
#381150
#401f56
#482c5c
#503861
#574467
#5f506c
#675c71
#706876
#78747b

Hue

Various hues of this color.

#4a1800
#4a0006
#4a0025
#4a0044
#31004a
#12004a
#000d4a
#002b4a
#004a4a

Analogous

Analogous color palette of this color, meaning colors that are next to each other on the color wheel.

#31004a
#13004a
#22004a

Monochromatic

Monochromatic colors for this color, monochromatic colors are all of the same hue.

#31004a
#4d0074
#69009f
#8500c9
#a200f4
#15001f

Complementary

Complementary colors for this color, complementary colors are opposites on the color wheel.

#31004a
#194a00

Split Complement

Split-complementary colors which use adjacent colors of this color’s complementary color.

#31004a
#4a000a
#004a13

Triad

Triad colors which pull themselves in a triangle across the color wheel.

#31004a
#4a3100
#004a31

Tetrad

Tetrad colors which pull themselves in a square shape across the color wheel.

#31004a
#4a0c00
#194a00
#003e4a

Contrast Checker

Contrast test results for the color #31004a on black and white backgrounds.
Open in contrast checker →

White Background

Passes AAA
Example Headline (24px)

The font-size of this text is 18.5px. Click anywhere to edit this text. Lorem Ipsum is simply dummy text of the printing and typesetting industry.

Black Background

Fails WCAG
Example Headline (24px)

The font-size of this text is 18.5px. Click anywhere to edit this text. Lorem Ipsum is simply dummy text of the printing and typesetting industry.

Color Blindness Simulation

See how #31004a appears to people with color vision deficiency (CVD).

Normal Vision
#31004a
Protanopia
#08084a
Red-blind (~1% of males)
Deuteranopia
#101049
Green-blind (~1% of males)
Tritanopia
#280909
Blue-blind (very rare)
Achromatopsia
#101010
Total color blindness

Questions about #31004a

What is #31004a in RGB, HSL and CMYK?
In RGB, #31004a is rgb(49, 0, 74), in HSL hsl(280, 100%, 15%) and in CMYK 34%, 100%, 0%, 71%. Browse more shades of purple with names and hex codes.
What colors pair well with #31004a?
Muted gold and warm amber give #31004a a rich, regal feel, while dusty pink or soft mauve keep it calmer. Skip bright greens, they clash with its cool blue-leaning undertone.
Is #31004a readable on white or black?
#31004a has a 17.08:1 contrast ratio on white and 1.22:1 on black. WCAG asks for 4.5:1 for body text and 3:1 for large text, so on white it works for body text and on black it is too faint for text. Try other pairs in the contrast checker.