Skip to content

Dark Midnight Blue (#003366)

The hex code for Dark Midnight Blue is #003366. It is rgb(0, 51, 102) in RGB, hsl(210, 100%, 20%) in HSL, and about cmyk(100%, 50%, 0%, 60%) in CMYK — a dark blue. White text is the more readable choice on this background.

#003366
HEX#003366
RGBrgb(0, 51, 102)
HSLhsl(210, 100%, 20%)
HSVhsv(210, 100%, 40%)
CMYKcmyk(100%, 50%, 0%, 60%)
OKLCHoklch(32.3% 0.103 253.9)
LABlab(20.75% 1.89 -34.99)
LCHlch(20.75% 35.04 273.09)

Colors Closest to Dark Midnight Blue

Dark Midnight Blue is a registered color name. These are the named colors nearest to it, measured as CIE76 distance in CIELAB — a perceptual scale, so the ordering matches what the eye sees rather than how close the raw RGB numbers happen to sit.

Browse the full index of named colors A-Z or every blue in the library.

#003366 Channel Values

How Dark Midnight Blue 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 0 · G 51 · B 1028-bit channels as sent to the display
HSLH 210° · S 100% · L 20%Easiest model for building lighter and darker variants
HSVH 210° · S 100% · V 40%Matches the picker in most design tools
CMYKC 100% · M 50% · Y 0% · K 60%Approximate ink mix; confirm with an ICC profile before printing
Luminance12.61:1 vs white · 1.67:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a Dark Midnight Blue 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 text12.61:1AA normal AA large AAA normal
Fails AABlack text1.67:1AA normal AA large AAA normal

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

Colors That Go With Dark Midnight Blue

Pairings derived from color-wheel relationships. The complementary color sits opposite Dark Midnight Blue; 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 Dark Midnight Blue

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 #003366.

How Dark Midnight Blue 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#003366
Protanopia#2E2E66
Protanomaly#233066
Deuteranopia#292966
Deuteranomaly#1E2D66
Tritanopia#003C3C
Tritanomaly#003950
Achromatopsia#333333

Test a full palette in the color blindness simulator.

Using #003366 in Code

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

CSS custom property--dark-midnight-blue: #003366;
CSS backgroundbackground-color: #003366;
Tailwind configcolors: { 'dark-midnight-blue': '#003366' }
SwiftUIColor(red: 0.000, green: 0.200, blue: 0.400)
Android XML<color name="dark_midnight_blue">#003366</color>
SVG fillfill="#003366"

More Blue Colors

Dark Midnight Blue sits in the blue family. These are its neighbours across that family's full range, each with its own breakdown.

#003366 Frequently Asked Questions

What is the hex code for Dark Midnight Blue?

The hex code for Dark Midnight Blue is #003366. That is rgb(0, 51, 102) in RGB, hsl(210, 100%, 20%) in HSL, and approximately cmyk(100%, 50%, 0%, 60%) in CMYK.

What is the RGB value of #003366?

#003366 is rgb(0, 51, 102) — red 0, green 51, and blue 102 on the 0-255 scale.

What is the CMYK value of #003366?

#003366 converts to approximately cmyk(100%, 50%, 0%, 60%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #003366 be black or white?

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

Can I write #003366 as a CSS color keyword?

No. #003366 is not one of the CSS color keywords, so it has to be written as a hex, rgb() or hsl() value. The closest keyword is darkslateblue (#483D8B) at a CIE76 distance of 23.07, which is visibly different.

Open Dark Midnight Blue in a Tool

Keep exploring: every blue in the color library, the guide to shades of blue, or the full color library.