Skip to content

#1D2951 Color

#1D2951 is rgb(29, 41, 81) in RGB, hsl(226, 47%, 22%) in HSL, and about cmyk(64%, 49%, 0%, 68%) in CMYK. The closest CSS named color is MidnightBlue (#191970). White text is the more readable choice on this background.

#1D2951
HEX#1D2951
RGBrgb(29, 41, 81)
HSLhsl(226, 47%, 22%)
HSVhsv(226, 64%, 32%)
CMYKcmyk(64%, 49%, 0%, 68%)
OKLCHoklch(29.3% 0.074 268.9)
LABlab(17.28% 5.84 -26.60)
LCHlch(17.28% 27.23 282.39)

#1D2951 Channel Values

How #1D2951 breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 29 · G 41 · B 818-bit channels as sent to the display
HSLH 226° · S 47% · L 22%Easiest model for building lighter and darker variants
HSVH 226° · S 64% · V 32%Matches the picker in most design tools
CMYKC 64% · M 49% · Y 0% · K 68%Approximate ink mix; confirm with an ICC profile before printing
Luminance14.11:1 vs white · 1.49:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a #1D2951 background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

TextWhite text14.11:1AA normal AA large AAA normal
TextBlack text1.49:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #1D2951 in the contrast checker.

Colors That Go With #1D2951

Pairings derived from color-wheel relationships. The complementary color sits opposite #1D2951; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of #1D2951

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #1D2951.

How #1D2951 Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#1D2951
Protanopia#272751
Protanomaly#232851
Deuteranopia#252551
Deuteranomaly#222751
Tritanopia#0F3030
Tritanomaly#152D40
Achromatopsia#2B2B2B

Test a full palette in the color blindness simulator.

Using #1D2951 in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--color-1d2951: #1D2951;
CSS backgroundbackground-color: #1D2951;
Tailwind configcolors: { 'color-1d2951': '#1D2951' }
SwiftUIColor(red: 0.114, green: 0.161, blue: 0.318)
Android XML<color name="color_1d2951">#1D2951</color>
SVG fillfill="#1D2951"

#1D2951 Frequently Asked Questions

What is the RGB value of #1D2951?

#1D2951 is rgb(29, 41, 81) — red 29, green 41, and blue 81 on the 0-255 scale.

What is the CMYK value of #1D2951?

#1D2951 converts to approximately cmyk(64%, 49%, 0%, 68%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #1D2951 be black or white?

White text is the more readable choice. #1D2951 scores 14.11:1 against white and 1.49:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Does #1D2951 have a color name?

#1D2951 is not one of the 140 CSS named colors. The closest named color is MidnightBlue (#191970), at a CIE76 distance of 31.6, so the two are clearly different.

Open #1D2951 in a Tool

#1D2951 sits in the blue family — browse every shade of blue with hex codes, or return to the full color library.