Skip to content

#2d2f4d

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

RGB
45, 47, 77
HSL
236°, 26%, 24%
CMYK
42, 39, 0, 70
Luminance
0.0313

At a glance

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

Hex
#2d2f4d
Hue
236°
blue
Saturation
26%
soft
Lightness
24%
deep
Brightness
30%
HSV value
Perceived
20%
weighted brightness
Luminance
0.0313
WCAG relative
Temperature
Cool
76/100 cool
Color family
Blue
Tone
Soft
Best ink
White
12.92:1
Closest name
Dark Slate Blue
ΔE2000 12.8
Where it sits
Hue236° of 360°
Saturation26%
Lightness24%
Temperature
Warm ← → Cool76% 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#2d2f4d
RGBrgb(45, 47, 77)
HSLhsl(236, 26%, 24%)
CMYKcmyk(42%, 39%, 0%, 70%)
LABlab(20.5 7.8 -18.8)
LCHlch(20.5 20.3 292.7)
OKLCHoklch(0.318 0.053 280.0)
Decimal2961229
Display P3color(display-p3 0.176 0.184 0.302)

Copy-ready code

/* CSS */
color: #2d2f4d;
background-color: #2d2f4d;
/* Tailwind (arbitrary) */
class="text-[#2d2f4d] bg-[#2d2f4d]"
/* SCSS */
$brand: #2d2f4d;
/* SwiftUI */
Color(red: 0.176, green: 0.184, blue: 0.302)
/* Android */
Color.parseColor("#2d2f4d")
/* Flutter */
Color(0xFF2D2F4D)
/* Python / OpenCV (BGR) */
(77, 47, 45)

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

Accessibility — WCAG contrast

Aa
#2d2f4d on white: 12.92:1
AA ✓ pass · AA-large · AAA
Aa
#2d2f4d on black: 1.63:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #25334E
deuteranopia · #23304C
tritanopia · #24353A

Color scale — 50 to 950

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

#F6F6F9
#EDEDF3
#D6D7E5
#B8BAD6
#9598C1
#7175AC
#5A5E9A
#4B4F81
#3C3F67
#2d2f4d
#1D1E2F
Base = 900Lightest = 50 · #F6F6F9Darkest = 950 · #1D1E2F
:root {
  --brand-50: #F6F6F9;
  --brand-100: #EDEDF3;
  --brand-200: #D6D7E5;
  --brand-300: #B8BAD6;
  --brand-400: #9598C1;
  --brand-500: #7175AC;
  --brand-600: #5A5E9A;
  --brand-700: #4B4F81;
  --brand-800: #3C3F67;
  --brand-900: #2d2f4d;
  --brand-950: #1D1E2F;
  --brand: #2d2f4d;
  --brand-ink: #ffffff;
}

Colors that work with #2d2f4d

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#F5F6F9
Tinted page background
Border#CCCDE1
Hairlines and dividers
Muted text#555891
Captions on the surface
Accent#4F442B
Second voice, not a rival
Dark variant#2F3150
Hover, pressed, headers
Light variant#EFEFF6
Selected rows, tints
Dark surface#151623
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 #2d2f4d

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#4D4B2D
Analogous left#2D3F4D
Analogous right#3B2D4D
Split-complement 1#4D3B2D
Split-complement 2#3F4D2D
Triadic 1#4D2D2F
Triadic 2#2F4D2D
Tetradic#4D2D3F

RGB percentages

Red17.6%
Green18.4%
Blue30.2%

CMYK percentages

Cyan41.6%
Magenta39.0%
Yellow0.0%
Key (black)69.8%

Color previews

#2d2f4d text on a black background

contrast 1.63:1

Card sample

#2d2f4d text on a white background

contrast 12.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 47, 77, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 47, 77, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d2f4d;
background: linear-gradient(135deg, #2d2f4d, #402D4D);

Monochromatic scale

Palettes built from #2d2f4d

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.

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

#2d2f4d, answered

What color is #2d2f4d?

#2d2f4d is a deep soft blue, closest to Dark Slate Blue (ΔE2000 12.8). It sits at 236° on the hue wheel with 26% saturation and 24% lightness, which reads as cool.

What is the RGB value of #2d2f4d?

rgb(45, 47, 77) — 45 red, 47 green and 77 blue out of 255, or 17.6% / 18.4% / 30.2% by channel.

Is #2d2f4d a light or a dark color?

It is a dark color. Relative luminance is 0.0313 and perceived brightness is 20%, so white text on it reaches 12.92:1.

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

White. It scores 12.92:1 against #2d2f4d, versus 1.63:1 for black — AAA at any size.

What is the complementary color of #2d2f4d?

#4D4B2D sits directly opposite on the wheel. Softer options are the split-complements #4D3B2D and #3F4D2D, which give the same contrast with far less vibration.

What colors go well with #2d2f4d?

For interface work: #F5F6F9 as the surface, #CCCDE1 for borders, #555891 for secondary text, #4F442B as an accent and #2F3150 for hover and pressed states. For a palette, the analogous pair #2D3F4D and #3B2D4D stays calm, while #4D4B2D is the loudest partner.

What is #2d2f4d in CMYK for printing?

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

Is #2d2f4d warm or cool?

Cool — it scores 76 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #372D4D; nudged cooler, #2C3A4E.

Work with #2d2f4d in the Color Lab