Skip to content

#2d2c6f

a dark, soft blue · cool · closest name: Midnight Blue

RGB
45, 44, 111
HSL
241°, 43%, 30%
CMYK
60, 60, 0, 57
Luminance
0.0351

At a glance

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

Hex
#2d2c6f
Hue
241°
blue
Saturation
43%
soft
Lightness
30%
dark
Brightness
44%
HSV value
Perceived
22%
weighted brightness
Luminance
0.0351
WCAG relative
Temperature
Cool
83/100 cool
Color family
Blue
Tone
Soft
Best ink
White
12.34:1
Closest name
Midnight Blue
ΔE2000 5.8
Where it sits
Hue241° of 360°
Saturation43%
Lightness30%
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#2d2c6f
RGBrgb(45, 44, 111)
HSLhsl(241, 43%, 30%)
CMYKcmyk(60%, 60%, 0%, 57%)
LABlab(22.0 21.8 -38.9)
LCHlch(22.0 44.6 299.3)
OKLCHoklch(0.336 0.113 279.1)
Decimal2960495
Display P3color(display-p3 0.176 0.173 0.435)

Copy-ready code

/* CSS */
color: #2d2c6f;
background-color: #2d2c6f;
/* Tailwind (arbitrary) */
class="text-[#2d2c6f] bg-[#2d2c6f]"
/* SCSS */
$brand: #2d2c6f;
/* SwiftUI */
Color(red: 0.176, green: 0.173, blue: 0.435)
/* Android */
Color.parseColor("#2d2c6f")
/* Flutter */
Color(0xFF2D2C6F)
/* Python / OpenCV (BGR) */
(111, 44, 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 #2d2c6f · 12.34:1
Use #ffffffAAA at every size.
Aa
White text · 12.34: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: #2d2c6f as text scores 12.34:1 on white and 1.70:1 on black.

Accessibility — WCAG contrast

Aa
#2d2c6f on white: 12.34:1
AA ✓ pass · AA-large · AAA
Aa
#2d2c6f on black: 1.70:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003771
deuteranopia · #00326E
tritanopia · #093C49

Color scale — 50 to 950

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

#F5F5FA
#EBEBF5
#D2D1EA
#AFAFDF
#8886CF
#605EBF
#4746AF
#3B3A92
#2d2c6f
#262556
#181735
Base = 800Lightest = 50 · #F5F5FADarkest = 950 · #181735
:root {
  --brand-50: #F5F5FA;
  --brand-100: #EBEBF5;
  --brand-200: #D2D1EA;
  --brand-300: #AFAFDF;
  --brand-400: #8886CF;
  --brand-500: #605EBF;
  --brand-600: #4746AF;
  --brand-700: #3B3A92;
  --brand-800: #2d2c6f;
  --brand-900: #262556;
  --brand-950: #181735;
  --brand: #2d2c6f;
  --brand-ink: #ffffff;
}

Colors that work with #2d2c6f

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#F4F4FA
Tinted page background
Border#C5C5E8
Hairlines and dividers
Muted text#4C4B9B
Captions on the surface
Accent#726129
Second voice, not a rival
Dark variant#25245B
Hover, pressed, headers
Light variant#EDEDF8
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 #2d2c6f

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#6E6F2C
Analogous left#2C4D6F
Analogous right#4F2C6F
Split-complement 1#6F4F2C
Split-complement 2#4D6F2C
Triadic 1#6F2D2C
Triadic 2#2C6F2D
Tetradic#6F2C4D

RGB percentages

Red17.6%
Green17.3%
Blue43.5%

CMYK percentages

Cyan59.5%
Magenta60.4%
Yellow0.0%
Key (black)56.5%

Color previews

#2d2c6f text on a black background

contrast 1.70:1

Card sample

#2d2c6f text on a white background

contrast 12.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 44, 111, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 44, 111, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d2c6f;
background: linear-gradient(135deg, #2d2c6f, #5A2C6F);

Monochromatic scale

Palettes built from #2d2c6f

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.

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

#2d2c6f, answered

What color is #2d2c6f?

#2d2c6f is a dark soft blue, closest to Midnight Blue (ΔE2000 5.8). It sits at 241° on the hue wheel with 43% saturation and 30% lightness, which reads as cool.

What is the RGB value of #2d2c6f?

rgb(45, 44, 111) — 45 red, 44 green and 111 blue out of 255, or 17.6% / 17.3% / 43.5% by channel.

Is #2d2c6f a light or a dark color?

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

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

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

What is the complementary color of #2d2c6f?

#6E6F2C sits directly opposite on the wheel. Softer options are the split-complements #6F4F2C and #4D6F2C, which give the same contrast with far less vibration.

What colors go well with #2d2c6f?

For interface work: #F4F4FA as the surface, #C5C5E8 for borders, #4C4B9B for secondary text, #726129 as an accent and #25245B for hover and pressed states. For a palette, the analogous pair #2C4D6F and #4F2C6F stays calm, while #6E6F2C is the loudest partner.

What is #2d2c6f in CMYK for printing?

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

Is #2d2c6f 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 #462C6F; nudged cooler, #2A4371.

Work with #2d2c6f in the Color Lab