Skip to content

#3f334c

a deep, soft violet · cool · closest name: Dark Slate Blue

RGB
63, 51, 76
HSL
269°, 20%, 25%
CMYK
17, 33, 0, 70
Luminance
0.0395

At a glance

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

Hex
#3f334c
Hue
269°
violet
Saturation
20%
soft
Lightness
25%
deep
Brightness
30%
HSV value
Perceived
23%
weighted brightness
Luminance
0.0395
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Soft
Best ink
White
11.74:1
Closest name
Dark Slate Blue
ΔE2000 14.9
Where it sits
Hue269° of 360°
Saturation20%
Lightness25%
Temperature
Warm ← → Cool60% 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#3f334c
RGBrgb(63, 51, 76)
HSLhsl(269, 20%, 25%)
CMYKcmyk(17%, 33%, 0%, 70%)
LABlab(23.5 11.2 -13.4)
LCHlch(23.5 17.4 309.9)
OKLCHoklch(0.345 0.045 306.1)
Decimal4141900
Display P3color(display-p3 0.247 0.200 0.298)

Copy-ready code

/* CSS */
color: #3f334c;
background-color: #3f334c;
/* Tailwind (arbitrary) */
class="text-[#3f334c] bg-[#3f334c]"
/* SCSS */
$brand: #3f334c;
/* SwiftUI */
Color(red: 0.247, green: 0.200, blue: 0.298)
/* Android */
Color.parseColor("#3f334c")
/* Flutter */
Color(0xFF3F334C)
/* Python / OpenCV (BGR) */
(76, 51, 63)

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

Accessibility — WCAG contrast

Aa
#3f334c on white: 11.74:1
AA ✓ pass · AA-large · AAA
Aa
#3f334c on black: 1.79:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2E384D
deuteranopia · #31384B
tritanopia · #3D373C

Color scale — 50 to 950

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

#F7F6F9
#F0EDF2
#DED8E4
#C6BCD2
#AA9ABB
#8E79A5
#796293
#65527A
#514262
#3f334c
#261F2D
Base = 900Lightest = 50 · #F7F6F9Darkest = 950 · #261F2D
:root {
  --brand-50: #F7F6F9;
  --brand-100: #F0EDF2;
  --brand-200: #DED8E4;
  --brand-300: #C6BCD2;
  --brand-400: #AA9ABB;
  --brand-500: #8E79A5;
  --brand-600: #796293;
  --brand-700: #65527A;
  --brand-800: #514262;
  --brand-900: #3f334c;
  --brand-950: #261F2D;
  --brand: #3f334c;
  --brand-ink: #ffffff;
}

Colors that work with #3f334c

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#F7F6F9
Tinted page background
Border#D6CEDE
Hairlines and dividers
Muted text#725C89
Captions on the surface
Accent#484F30
Second voice, not a rival
Dark variant#3F334C
Hover, pressed, headers
Light variant#F2F0F5
Selected rows, tints
Dark surface#1C1722
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 #3f334c

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • 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#404C33
Analogous left#33334C
Analogous right#4C334C
Split-complement 1#4C4C33
Split-complement 2#334C33
Triadic 1#4C3F33
Triadic 2#334C3F
Tetradic#4C3333

RGB percentages

Red24.7%
Green20.0%
Blue29.8%

CMYK percentages

Cyan17.1%
Magenta32.9%
Yellow0.0%
Key (black)70.2%

Color previews

#3f334c text on a black background

contrast 1.79:1

Card sample

#3f334c text on a white background

contrast 11.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #3f334c;
Background color
Panel with #3f334c background
background-color: #3f334c;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(63, 51, 76, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(63, 51, 76, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3f334c;
background: linear-gradient(135deg, #3f334c, #4C3348);

Monochromatic scale

Palettes built from #3f334c

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.

#3f334c 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

Converts to four-color process without much drama. Proof it anyway.

#3f334c, answered

What color is #3f334c?

#3f334c is a deep soft violet, closest to Dark Slate Blue (ΔE2000 14.9). It sits at 269° on the hue wheel with 20% saturation and 25% lightness, which reads as cool.

What is the RGB value of #3f334c?

rgb(63, 51, 76) — 63 red, 51 green and 76 blue out of 255, or 24.7% / 20% / 29.8% by channel.

Is #3f334c a light or a dark color?

It is a dark color. Relative luminance is 0.0395 and perceived brightness is 23%, so white text on it reaches 11.74:1.

Should I use black or white text on #3f334c?

White. It scores 11.74:1 against #3f334c, versus 1.79:1 for black — AAA at any size.

What is the complementary color of #3f334c?

#404C33 sits directly opposite on the wheel. Softer options are the split-complements #4C4C33 and #334C33, which give the same contrast with far less vibration.

What colors go well with #3f334c?

For interface work: #F7F6F9 as the surface, #D6CEDE for borders, #725C89 for secondary text, #484F30 as an accent and #3F334C for hover and pressed states. For a palette, the analogous pair #33334C and #4C334C stays calm, while #404C33 is the loudest partner.

What is #3f334c in CMYK for printing?

cmyk(17%, 33%, 0%, 70%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #3f334c warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #48334C; nudged cooler, #35324D.

Work with #3f334c in the Color Lab