2D2F40

#2D2F40 closest to Midnight Masquerade

#2D2F40 is a dark gray; the closest named color is Midnight Masquerade. In the RGB color model it is made of 17.6% red, 18.4% green and 25.1% blue (rgb(45, 47, 64)). Its HSL value is 234° hue, 17% saturation and 21% lightness, and in CMYK it is 30% cyan, 27% magenta, 0% yellow and 75% black. #2D2F40 is a neutral color. White text reads best on it, with a contrast ratio of 13.19:1.

#2D2F40 color conversion

HEX
RGB
HSL
HSB / HSV
HWB
CMYK
XYZ
CIELAB
CIELCh
CIELUV
OKLCH

Variations of #2D2F40

Shades

Mixed with black: richer and darker.

Tints

Mixed with white: lighter and softer.

Tones

Mixed with gray: calmer and more muted.

Hues

The same lightness and chroma, rotated around the color wheel.

Temperatures

Cooler on the left, warmer on the right.

#2D2F40 color harmonies

Complementary

The opposite hue — maximum contrast and energy.

Open in generator →

Split complementary

The two hues next to the complement — contrast with less tension.

Open in generator →

Analogous

Neighbouring hues — calm, cohesive and natural.

Open in generator →

Triadic

Three hues evenly spaced at 120° — vibrant yet balanced.

Open in generator →

Tetradic

Two complementary pairs — rich, best with one dominant color.

Open in generator →

Square

Four hues spaced at 90° — bold and playful.

Open in generator →

#2D2F40 for color-blind viewers (and dogs)

How #2D2F40 appears with each type of color vision deficiency (Machado 2009 model) — and to your dog. Try the dog vision simulator →

  • Dog vision 99% similarHow dogs see it · simulated as #292F40
  • Protanopia 99% similar1.3% of men, 0.02% of women · simulated as #2A3141
  • Protanomaly 99% similar1.3% of men, 0.02% of women · simulated as #2B3040
  • Deuteranopia 99% similar1.2% of men, 0.01% of women · simulated as #292F40
  • Deuteranomaly 99% similar5% of men, 0.35% of women · simulated as #2B2F40
  • Tritanopia 95% similar0.001% of men, 0.03% of women · simulated as #283235
  • Tritanomaly 98% similar0.0001% of men, 0.0001% of women · simulated as #2C303B
  • Achromatopsia 94% similar0.003% of men, 0.003% of women · simulated as #303030
  • Achromatomaly 96% similar0.001% of men, 0.001% of women · simulated as #2F3035

#2D2F40 contrast checker

AaThe quick brown fox jumps over the lazy dog.
13.19:1 Super#2D2F40 text on white
AA normalPassAAA normalPass
AA largePassAAA largePass
AaThe quick brown fox jumps over the lazy dog.
1.59:1 Very poor#2D2F40 text on black
AA normalFailAAA normalFail
AA largeFailAAA largeFail

Need another background? Pick any pair in the palette generator and open the contrast panel.

Colors similar to #2D2F40

Palettes with #2D2F40

#2D2F40 in CSS

/* Midnight Masquerade */
.color { color: #2D2F40; }
.background { background-color: #2D2F40; }
.border { border: 1px solid #2D2F40; }

/* Other notations */
color: rgb(45 47 64);
color: hsl(234 17% 21%);
color: oklch(0.311 0.031 279.2);

#2D2F40 FAQ

What color is #2D2F40?

#2D2F40 is a dark gray. Its closest named color is Midnight Masquerade. It belongs to the gray color family and is a neutral color.

What is the RGB value of #2D2F40?

#2D2F40 is rgb(45, 47, 64) in RGB, hsl(234, 17%, 21%) in HSL and cmyk(30%, 27%, 0%, 75%) in CMYK.

What is the complementary color of #2D2F40?

The complementary color of #2D2F40 is #403E2D, which sits opposite it on the color wheel.

Which text color works on #2D2F40?

White text has the best contrast on #2D2F40: 13.19:1, which meets the WCAG AA requirement of 4.5:1 for normal text.

Is #2D2F40 a warm or cool color?

#2D2F40 is a neutral color.