Midnight Blue Color

What Color is Midnight Blue?

Midnight blue is a deep dark blue. It looks calm like night sky.

#191970
FormatCodeImage
Hex
#191970
Midnight Blue Color Code
RGB
25, 25, 112
HSL
240, 64%, 27%
CMYK
78%, 78%, 0%, 56%
OKLCH
oklch(0.288 0.144 273)

Color Harmonies

Balanced color combinations based on color theory. Click to copy.

Analogous

Adjacent colors - harmony and unity

Monochromatic

Same hue, varied lightness - cohesive designs

Complementary

Opposite colors - high contrast

Split Complementary

Base + adjacent complements - balanced contrast

Triadic

Evenly spaced - vibrant palettes

Square

Four colors at 90° - bold combinations

Tetradic

Rectangle shape - rich variety

Compound

Analogous + complements - sophisticated

Accessibility & Contrast Checker

Ensure your color combinations meet WCAG accessibility standards for readability. Test text contrast against different backgrounds.

Sample Text

The quick brown fox jumps over the lazy dog.

Background: #FFFFFF14.85:1
AA AA Large AAA

Sample Text

The quick brown fox jumps over the lazy dog.

Background: #0000001.41:1
AA AA Large AAA

Sample Text

The quick brown fox jumps over the lazy dog.

Background: #F5F5F513.62:1
AA AA Large AAA

Sample Text

The quick brown fox jumps over the lazy dog.

Background: #1A1A1A1.17:1
AA AA Large AAA

Sample Text

The quick brown fox jumps over the lazy dog.

Background: #3333331.18:1
AA AA Large AAA

WCAG Guidelines: AA requires 4.5:1 for normal text, 3:1 for large text. AAA requires 7:1 for normal text, 4.5:1 for large text. Large text is 18pt+ or 14pt bold+.

Code Snippets

Ready-to-use code snippets for CSS, SCSS, Tailwind, and more. Click to copy.

CSS Variables
/* Midnight Blue Color */
:root {
  --color-midnight-blue-color: #191970;
  --color-midnight-blue-color-rgb: 25, 25, 112;
}

.element {
  background-color: var(--color-midnight-blue-color);
  color: rgba(var(--color-midnight-blue-color-rgb), 0.8);
}
SCSS
// Midnight Blue Color Variables
$midnight-blue-color: #191970;
$midnight-blue-color-rgb: 25, 25, 112;

// Usage
.element {
  background-color: $midnight-blue-color;
  border-color: darken($midnight-blue-color, 10%);
  box-shadow: 0 4px 6px rgba($midnight-blue-color-rgb, 0.2);
}
Tailwind Config
// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'midnight-blue-color': '#191970',
        'midnight-blue-color-light': '#2727B0',
        'midnight-blue-color-dark': '#0B0B32',
      },
    },
  },
}
JSON
{
  "name": "Midnight Blue Color",
  "hex": "#191970",
  "rgb": {
    "r": 25,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 240,
    "s": 64,
    "l": 27
  }
}

Visual Usage Examples

See how Midnight Blue Color looks in real-world design applications.

Website Header
Logo
HomeAboutContact
Card Component
Buttons
Background Usage

Heading Text

This is how body text appears on this background color. Good contrast is essential for readability.

Badges & Tags
NewFeaturedPopular
Gradients (Click to copy)
Complementary
Fade
Analogous
Radial