Skip to content

#2f2f60

a dark, soft blue · cool · closest name: Dark Slate Blue

RGB
47, 47, 96
HSL
240°, 34%, 28%
CMYK
51, 51, 0, 62
Luminance
0.0348

At a glance

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

Hex
#2f2f60
Hue
240°
blue
Saturation
34%
soft
Lightness
28%
dark
Brightness
38%
HSV value
Perceived
22%
weighted brightness
Luminance
0.0348
WCAG relative
Temperature
Cool
83/100 cool
Color family
Blue
Tone
Soft
Best ink
White
12.38:1
Closest name
Dark Slate Blue
ΔE2000 8.6
Where it sits
Hue240° of 360°
Saturation34%
Lightness28%
Temperature
Warm ← → Cool83% 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#2f2f60
RGBrgb(47, 47, 96)
HSLhsl(240, 34%, 28%)
CMYKcmyk(51%, 51%, 0%, 62%)
LABlab(21.9 14.9 -29.3)
LCHlch(21.9 32.8 297.0)
OKLCHoklch(0.332 0.085 280.8)
Decimal3092320
Display P3color(display-p3 0.184 0.184 0.376)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f2f60 on white: 12.38:1
AA ✓ pass · AA-large · AAA
Aa
#2f2f60 on black: 1.70:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1A3662
deuteranopia · #16335F
tritanopia · #1D3943

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2f2f60 is pinned to step 800; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F5F5F9
#ECECF4
#D4D4E8
#B4B4DA
#8E8EC8
#6868B5
#5050A4
#434389
#2f2f60
#2A2A51
#1A1A32
Base = 800Lightest = 50 · #F5F5F9Darkest = 950 · #1A1A32
:root {
  --brand-50: #F5F5F9;
  --brand-100: #ECECF4;
  --brand-200: #D4D4E8;
  --brand-300: #B4B4DA;
  --brand-400: #8E8EC8;
  --brand-500: #6868B5;
  --brand-600: #5050A4;
  --brand-700: #434389;
  --brand-800: #2f2f60;
  --brand-900: #2A2A51;
  --brand-950: #1A1A32;
  --brand: #2f2f60;
  --brand-ink: #ffffff;
}

Colors that work with #2f2f60

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#F5F5FA
Tinted page background
Border#C8C8E4
Hairlines and dividers
Muted text#4B4B9A
Captions on the surface
Accent#63552C
Second voice, not a rival
Dark variant#2A2A56
Hover, pressed, headers
Light variant#EEEEF7
Selected rows, tints
Dark surface#141424
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 #2f2f60

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#60602F
Analogous left#2F4760
Analogous right#472F60
Split-complement 1#60472F
Split-complement 2#47602F
Triadic 1#602F2F
Triadic 2#2F602F
Tetradic#602F47

RGB percentages

Red18.4%
Green18.4%
Blue37.6%

CMYK percentages

Cyan51.0%
Magenta51.0%
Yellow0.0%
Key (black)62.4%

Color previews

#2f2f60 text on a black background

contrast 1.70:1

Card sample

#2f2f60 text on a white background

contrast 12.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f2f60

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.

#2f2f60 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#2f2f60, answered

What color is #2f2f60?

#2f2f60 is a dark soft blue, closest to Dark Slate Blue (ΔE2000 8.6). It sits at 240° on the hue wheel with 34% saturation and 28% lightness, which reads as cool.

What is the RGB value of #2f2f60?

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

Is #2f2f60 a light or a dark color?

It is a dark color. Relative luminance is 0.0348 and perceived brightness is 22%, so white text on it reaches 12.38:1.

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

White. It scores 12.38:1 against #2f2f60, versus 1.70:1 for black — AAA at any size.

What is the complementary color of #2f2f60?

#60602F sits directly opposite on the wheel. Softer options are the split-complements #60472F and #47602F, which give the same contrast with far less vibration.

What colors go well with #2f2f60?

For interface work: #F5F5FA as the surface, #C8C8E4 for borders, #4B4B9A for secondary text, #63552C as an accent and #2A2A56 for hover and pressed states. For a palette, the analogous pair #2F4760 and #472F60 stays calm, while #60602F is the loudest partner.

What is #2f2f60 in CMYK for printing?

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

Is #2f2f60 warm or cool?

Cool — it scores 83 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #412F60; nudged cooler, #2D4061.

Work with #2f2f60 in the Color Lab