midnightblue

#312868

Balanced

UI Preview

Pro

Conversions

RGB49, 40, 104
CMYK53, 62, 0, 59
HSL248°, 44%, 28%
LAB20, 19, -37
Closest Library Match
indigo-90094% Match

Readability

12.85On WhitePASS AA
1.63On BlackFAIL

For optimal readability, use White text on this background.

Magic Gradients

subtle
Copy CSS
vibrant
Copy CSS
rich
Copy CSS

About #312868

The hexadecimal color code #312868 is a dark, moderate shade of Blue (known as midnightblue). In the RGB color model, #312868 is comprised of 49 red, 40 green, and 104 blue. In the HSL color space, which is often used in digital design and color grading, it has a hue of 248 degrees, a saturation of 44%, and a lightness of 28%. This color has an approximate wavelength of 478 nm. The closest web-safe color is often utilized in web design, user interfaces (UI), and vector graphics to create moderate Blue atmospheres. Designers searching for Blue color schemes often pair this with its complementary color or use it as an accent against neutral backgrounds. It is commonly used in digital design for backgrounds, typography, and accent elements. When paired with its complementary color in the palette below, it creates a high-contrast visual hierarchy. Engineers can implement this color using the CSS hex code #312868.

Vision Simulation

ProtanopiaRed-blind
DeuteranopiaGreen-blind
TritanopiaBlue-blind