# #021d40 color: Midnight Mirage

#021d40 is rgb(2, 29, 64) in RGB and oklch(23.446% 0.07467 255.906) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/021d40

## Formats

| Format | Value |
| --- | --- |
| HEX | #021d40 |
| RGB | rgb(2, 29, 64) |
| HSL | hsl(213.87, 93.94%, 12.94%) |
| HSB / HSV | hsv(213.87 96.88% 25.1%) |
| HWB | hwb(213.87 0.78% 74.9%) |
| CMYK | cmyk(97% 55% 0% 75%) |
| Lab | lab(10.59 2.29 -25.72) |
| LCH | lch(10.59 25.82 275.1) |
| OKLab | oklab(23.446% -0.01818 -0.07242) |
| OKLCH | oklch(23.446% 0.07467 255.906) |
| Display P3 | color(display-p3 0.03463 0.11149 0.24161) |
| Rec. 2020 | color(rec2020 0.02991 0.05365 0.17841) |
| Adobe RGB | color(a98-rgb 0.08061 0.13528 0.25532) |
| ProPhoto RGB | color(prophoto-rgb 0.08402 0.08661 0.18038) |
| Linear sRGB | color(srgb-linear 0.00061 0.01229 0.05127) |
| XYZ D65 | color(xyz-d65 0.0139 0.01262 0.05021) |
| XYZ D50 | color(xyz-d50 0.01233 0.01205 0.03781) |
| SwiftUI | Color(red: 0.008, green: 0.114, blue: 0.251) |
| UIKit | UIColor(red: 0.008, green: 0.114, blue: 0.251, alpha: 1) |
| Flutter / Compose | Color(0xFF021D40) |
| Android XML | #021D40 |

## Facts

- Closest name: Midnight Mirage
- Hue family: Blue, soft very dark blue
- Closest Tailwind class: slate-900
- Gamut: Inside sRGB: displays the same on any screen.
- Contrast with white: 16.77:1
- Contrast with black: 1.25:1

## Tints

#021d40, #183152, #2f4564, #465b76, #5e7089, #77879c, #919eaf, #abb5c3, #c6cdd7, #e2e6eb

## Shades

#021d40, #011836, #01132d, #010e24, #00091b, #000513, #00030b, #000105, #000001, #000000

## Tones

#021d40, #051d3d, #081e39, #0c1e36, #0f1e33, #121e2f, #141f2c, #171e29, #191e25, #1c1e22

## Harmonies

- Complementary: #021d40, #301800
- Split: #021d40, #390e00, #231f00
- Analogous: #021d40, #002336, #1c163f
- Triadic: #021d40, #3a0a12, #0b2500
- Tetradic: #021d40, #2b1035, #301800, #0b2500
- Square: #021d40, #350b25, #301800, #002816
- Monochromatic: #021d40, #000221, #000221, #1f3c62, #3f5d86

## Questions about #021d40

### What color is #021d40?

#021d40 is soft very dark blue. The closest named color is Midnight Mirage. In RGB it is rgb(2, 29, 64), in HSL hsl(213.87, 93.94%, 12.94%) and in OKLCH oklch(23.446% 0.07467 255.906).

### What colors go well with #021d40?

The complementary color of #021d40 is #301800. For a calmer combination use the analogous colors #002336 and #1c163f. The triadic partners are #3a0a12 and #0b2500.

### Is white or black text more readable on #021d40?

White text reads better on #021d40: white gives a contrast ratio of 16.77:1 and black gives 1.25:1. WCAG AA asks for at least 4.5:1 for body text.

### Is #021d40 a warm or cool color?

#021d40 is a cool color. In OKLCH its hue is 256 degrees, its lightness 23.4% and its chroma 0.075.
