# #052040 color: Midnight Mirage

#052040 is rgb(5, 32, 64) in RGB and oklch(24.402% 0.06906 254.814) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/052040

## Formats

| Format | Value |
| --- | --- |
| HEX | #052040 |
| RGB | rgb(5, 32, 64) |
| HSL | hsl(212.54, 85.51%, 13.53%) |
| HSB / HSV | hsv(212.54 92.19% 25.1%) |
| HWB | hwb(212.54 1.96% 74.9%) |
| CMYK | cmyk(92% 50% 0% 75%) |
| Lab | lab(11.82 0.76 -23.74) |
| LCH | lch(11.82 23.75 271.82) |
| OKLab | oklab(24.402% -0.01809 -0.06665) |
| OKLCH | oklch(24.402% 0.06906 254.814) |
| Display P3 | color(display-p3 0.04862 0.12324 0.24206) |
| Rec. 2020 | color(rec2020 0.03568 0.06286 0.17896) |
| Adobe RGB | color(a98-rgb 0.09151 0.14561 0.25553) |
| ProPhoto RGB | color(prophoto-rgb 0.08873 0.09411 0.18097) |
| Linear sRGB | color(srgb-linear 0.00152 0.01444 0.05127) |
| XYZ D65 | color(xyz-d65 0.01504 0.01435 0.05048) |
| XYZ D50 | color(xyz-d50 0.01356 0.0138 0.03803) |
| SwiftUI | Color(red: 0.02, green: 0.125, blue: 0.251) |
| UIKit | UIColor(red: 0.02, green: 0.125, blue: 0.251, alpha: 1) |
| Flutter / Compose | Color(0xFF052040) |
| Android XML | #052040 |

## Facts

- Closest name: Midnight Mirage
- Hue family: Blue, soft very dark blue
- Closest Tailwind class: indigo-950
- Gamut: Inside sRGB: displays the same on any screen.
- Contrast with white: 16.32:1
- Contrast with black: 1.29:1

## Tints

#052040, #1b3452, #324864, #495d76, #607289, #79889c, #929faf, #adb6c3, #c7ced6, #e3e6eb

## Shades

#052040, #041a36, #03152d, #020f24, #010a1b, #010613, #00030b, #000105, #000001, #000000

## Tones

#052040, #08203d, #0c213a, #0f2137, #122134, #152130, #17212d, #1a212a, #1c2127, #1e2024

## Harmonies

- Complementary: #052040, #331a00
- Split: #052040, #3a1200, #262100
- Analogous: #052040, #002638, #1e1a3f
- Triadic: #052040, #3b0f15, #102701
- Tetradic: #052040, #2c1436, #331a00, #102701
- Square: #052040, #361028, #331a00, #002a18
- Monochromatic: #052040, #00031f, #000420, #243f62, #436085

## Questions about #052040

### What color is #052040?

#052040 is soft very dark blue. The closest named color is Midnight Mirage. In RGB it is rgb(5, 32, 64), in HSL hsl(212.54, 85.51%, 13.53%) and in OKLCH oklch(24.402% 0.06906 254.814).

### What colors go well with #052040?

The complementary color of #052040 is #331a00. For a calmer combination use the analogous colors #002638 and #1e1a3f. The triadic partners are #3b0f15 and #102701.

### Is white or black text more readable on #052040?

White text reads better on #052040: white gives a contrast ratio of 16.32:1 and black gives 1.29:1. WCAG AA asks for at least 4.5:1 for body text.

### Is #052040 a warm or cool color?

#052040 is a cool color. In OKLCH its hue is 255 degrees, its lightness 24.4% and its chroma 0.069.
