Skip to content

#1d2c3c

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

RGB
29, 44, 60
HSL
211°, 35%, 18%
CMYK
52, 27, 0, 77
Luminance
0.0239

At a glance

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

Hex
#1d2c3c
Hue
211°
blue
Saturation
35%
soft
Lightness
18%
deep
Brightness
24%
HSV value
Perceived
17%
weighted brightness
Luminance
0.0239
WCAG relative
Temperature
Cool
99/100 cool
Color family
Blue
Tone
Soft
Best ink
White
14.21:1
Closest name
Midnight Blue
ΔE2000 11.7
Where it sits
Hue211° of 360°
Saturation35%
Lightness18%
Temperature
Warm ← → Cool99% 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#1d2c3c
RGBrgb(29, 44, 60)
HSLhsl(211, 35%, 18%)
CMYKcmyk(52%, 27%, 0%, 77%)
LABlab(17.4 -1.0 -12.2)
LCHlch(17.4 12.2 265.2)
OKLCHoklch(0.287 0.036 250.7)
Decimal1911868
Display P3color(display-p3 0.114 0.173 0.235)

Copy-ready code

/* CSS */
color: #1d2c3c;
background-color: #1d2c3c;
/* Tailwind (arbitrary) */
class="text-[#1d2c3c] bg-[#1d2c3c]"
/* SCSS */
$brand: #1d2c3c;
/* SwiftUI */
Color(red: 0.114, green: 0.173, blue: 0.235)
/* Android */
Color.parseColor("#1d2c3c")
/* Flutter */
Color(0xFF1D2C3C)
/* Python / OpenCV (BGR) */
(60, 44, 29)

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

Accessibility — WCAG contrast

Aa
#1d2c3c on white: 14.21:1
AA ✓ pass · AA-large · AAA
Aa
#1d2c3c on black: 1.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #262C3D
deuteranopia · #22293C
tritanopia · #113031

Color scale — 50 to 950

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

#F5F7F9
#ECF0F4
#D4DEE8
#B3C6DA
#8EAAC8
#688DB6
#5079A5
#436589
#35516E
#2A3D51
#1d2c3c
Base = 950Lightest = 50 · #F5F7F9Darkest = 950 · #1d2c3c
:root {
  --brand-50: #F5F7F9;
  --brand-100: #ECF0F4;
  --brand-200: #D4DEE8;
  --brand-300: #B3C6DA;
  --brand-400: #8EAAC8;
  --brand-500: #688DB6;
  --brand-600: #5079A5;
  --brand-700: #436589;
  --brand-800: #35516E;
  --brand-900: #2A3D51;
  --brand-950: #1d2c3c;
  --brand: #1d2c3c;
  --brand-ink: #ffffff;
}

Colors that work with #1d2c3c

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#F5F7FA
Tinted page background
Border#C8D6E4
Hairlines and dividers
Muted text#4B719B
Captions on the surface
Accent#3E251B
Second voice, not a rival
Dark variant#2A3F56
Hover, pressed, headers
Light variant#EEF2F7
Selected rows, tints
Dark surface#141C24
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 #1d2c3c

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#3C2D1D
Analogous left#1D3C3C
Analogous right#1E1D3C
Split-complement 1#3C1E1D
Split-complement 2#3C3C1D
Triadic 1#3C1D2C
Triadic 2#2C3C1D
Tetradic#3C1D3C

RGB percentages

Red11.4%
Green17.3%
Blue23.5%

CMYK percentages

Cyan51.7%
Magenta26.7%
Yellow0.0%
Key (black)76.5%

Color previews

#1d2c3c text on a black background

contrast 1.48:1

Card sample

#1d2c3c text on a white background

contrast 14.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #1d2c3c;
Background color
Panel with #1d2c3c background
background-color: #1d2c3c;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(29, 44, 60, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(29, 44, 60, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1d2c3c;
background: linear-gradient(135deg, #1d2c3c, #231D3C);

Monochromatic scale

Palettes built from #1d2c3c

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.

#1d2c3c 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.

#1d2c3c, answered

What color is #1d2c3c?

#1d2c3c is a deep soft blue, closest to Midnight Blue (ΔE2000 11.7). It sits at 211° on the hue wheel with 35% saturation and 18% lightness, which reads as cool.

What is the RGB value of #1d2c3c?

rgb(29, 44, 60) — 29 red, 44 green and 60 blue out of 255, or 11.4% / 17.3% / 23.5% by channel.

Is #1d2c3c a light or a dark color?

It is a dark color. Relative luminance is 0.0239 and perceived brightness is 17%, so white text on it reaches 14.21:1.

Should I use black or white text on #1d2c3c?

White. It scores 14.21:1 against #1d2c3c, versus 1.48:1 for black — AAA at any size.

What is the complementary color of #1d2c3c?

#3C2D1D sits directly opposite on the wheel. Softer options are the split-complements #3C1E1D and #3C3C1D, which give the same contrast with far less vibration.

What colors go well with #1d2c3c?

For interface work: #F5F7FA as the surface, #C8D6E4 for borders, #4B719B for secondary text, #3E251B as an accent and #2A3F56 for hover and pressed states. For a palette, the analogous pair #1D3C3C and #1E1D3C stays calm, while #3C2D1D is the loudest partner.

What is #1d2c3c in CMYK for printing?

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

Is #1d2c3c warm or cool?

Cool — it scores 99 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1D213C; nudged cooler, #141F2C.

Work with #1d2c3c in the Color Lab