Skip to content

#2f3f74

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

RGB
47, 63, 116
HSL
226°, 42%, 32%
CMYK
60, 46, 0, 55
Luminance
0.0542

At a glance

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

Hex
#2f3f74
Hue
226°
blue
Saturation
42%
soft
Lightness
32%
dark
Brightness
45%
HSV value
Perceived
26%
weighted brightness
Luminance
0.0542
WCAG relative
Temperature
Cool
91/100 cool
Color family
Blue
Tone
Soft
Best ink
White
10.08:1
Closest name
Dark Slate Blue
ΔE2000 7.1
Where it sits
Hue226° of 360°
Saturation42%
Lightness32%
Temperature
Warm ← → Cool91% 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#2f3f74
RGBrgb(47, 63, 116)
HSLhsl(226, 42%, 32%)
CMYKcmyk(60%, 46%, 0%, 55%)
LABlab(27.9 11.0 -32.5)
LCHlch(27.9 34.3 288.7)
OKLCHoklch(0.382 0.093 269.1)
Decimal3096436
Display P3color(display-p3 0.184 0.247 0.455)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f3f74 on white: 10.08:1
AA ✓ pass · AA-large · AAA
Aa
#2f3f74 on black: 2.08:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #284576
deuteranopia · #1F3F73
tritanopia · #024B54

Color scale — 50 to 950

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

#F5F6FA
#EBEDF5
#D2D7EA
#AFBADF
#8798CE
#5F75BE
#475FAE
#3B4F91
#2f3f74
#253055
#171E35
Base = 800Lightest = 50 · #F5F6FADarkest = 950 · #171E35
:root {
  --brand-50: #F5F6FA;
  --brand-100: #EBEDF5;
  --brand-200: #D2D7EA;
  --brand-300: #AFBADF;
  --brand-400: #8798CE;
  --brand-500: #5F75BE;
  --brand-600: #475FAE;
  --brand-700: #3B4F91;
  --brand-800: #2f3f74;
  --brand-900: #253055;
  --brand-950: #171E35;
  --brand: #2f3f74;
  --brand-ink: #ffffff;
}

Colors that work with #2f3f74

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#F4F6FA
Tinted page background
Border#C5CDE7
Hairlines and dividers
Muted text#4B5D9B
Captions on the surface
Accent#77532C
Second voice, not a rival
Dark variant#25315B
Hover, pressed, headers
Light variant#EDEFF8
Selected rows, tints
Dark surface#141824
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 #2f3f74

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#74642F
Analogous left#2F6274
Analogous right#422F74
Split-complement 1#74422F
Split-complement 2#62742F
Triadic 1#742F3F
Triadic 2#3F742F
Tetradic#742F62

RGB percentages

Red18.4%
Green24.7%
Blue45.5%

CMYK percentages

Cyan59.5%
Magenta45.7%
Yellow0.0%
Key (black)54.5%

Color previews

#2f3f74 text on a black background

contrast 2.08:1

Card sample

#2f3f74 text on a white background

contrast 10.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 63, 116, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 63, 116, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f3f74;
background: linear-gradient(135deg, #2f3f74, #4D2F74);

Monochromatic scale

Palettes built from #2f3f74

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.

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

#2f3f74, answered

What color is #2f3f74?

#2f3f74 is a dark soft blue, closest to Dark Slate Blue (ΔE2000 7.1). It sits at 226° on the hue wheel with 42% saturation and 32% lightness, which reads as cool.

What is the RGB value of #2f3f74?

rgb(47, 63, 116) — 47 red, 63 green and 116 blue out of 255, or 18.4% / 24.7% / 45.5% by channel.

Is #2f3f74 a light or a dark color?

It is a dark color. Relative luminance is 0.0542 and perceived brightness is 26%, so white text on it reaches 10.08:1.

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

White. It scores 10.08:1 against #2f3f74, versus 2.08:1 for black — AAA at any size.

What is the complementary color of #2f3f74?

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

What colors go well with #2f3f74?

For interface work: #F4F6FA as the surface, #C5CDE7 for borders, #4B5D9B for secondary text, #77532C as an accent and #25315B for hover and pressed states. For a palette, the analogous pair #2F6274 and #422F74 stays calm, while #74642F is the loudest partner.

What is #2f3f74 in CMYK for printing?

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

Is #2f3f74 warm or cool?

Cool — it scores 91 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #382F74; nudged cooler, #2D4B76.

Work with #2f3f74 in the Color Lab