# #021e42 color: Midnight Mirage

#021e42 is rgb(2, 30, 66) in RGB and oklch(23.892% 0.0764 255.918) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #021e42 |
| RGB | rgb(2, 30, 66) |
| HSL | hsl(213.75, 94.12%, 13.33%) |
| HSB / HSV | hsv(213.75 96.97% 25.88%) |
| HWB | hwb(213.75 0.78% 74.12%) |
| CMYK | cmyk(97% 55% 0% 74%) |
| Lab | lab(11.1 2.39 -26.31) |
| LCH | lch(11.1 26.42 275.19) |
| OKLab | oklab(23.892% -0.01859 -0.07411) |
| OKLCH | oklch(23.892% 0.0764 255.918) |
| Display P3 | color(display-p3 0.03623 0.11535 0.2492) |
| Rec. 2020 | color(rec2020 0.03157 0.0567 0.18609) |
| Adobe RGB | color(a98-rgb 0.08243 0.13872 0.26246) |
| ProPhoto RGB | color(prophoto-rgb 0.08673 0.08932 0.18655) |
| Linear sRGB | color(srgb-linear 0.00061 0.01298 0.05448) |
| XYZ D65 | color(xyz-d65 0.01473 0.01335 0.05334) |
| XYZ D50 | color(xyz-d50 0.01306 0.01275 0.04017) |
| SwiftUI | Color(red: 0.008, green: 0.118, blue: 0.259) |
| UIKit | UIColor(red: 0.008, green: 0.118, blue: 0.259, alpha: 1) |
| Flutter / Compose | Color(0xFF021E42) |
| Android XML | #021E42 |

## 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.58:1
- Contrast with black: 1.27:1

## Tints

#021e42, #183254, #2f4666, #465b78, #5e718a, #77879d, #919eb0, #abb6c4, #c7ced7, #e3e6eb

## Shades

#021e42, #011938, #01132f, #010e25, #00091c, #000514, #00030b, #000105, #000001, #000000

## Tones

#021e42, #051f3f, #091f3b, #0c1f38, #101f34, #132031, #15202d, #18202a, #1a1f26, #1d1f23

## Harmonies

- Complementary: #021e42, #311900
- Split: #021e42, #3a0f00, #242000
- Analogous: #021e42, #002437, #1d1741
- Triadic: #021e42, #3b0a12, #0b2600
- Tetradic: #021e42, #2d1137, #311900, #0b2600
- Square: #021e42, #370c27, #311900, #002917
- Monochromatic: #021e42, #000222, #000222, #203d64, #405f88

## Questions about #021e42

### What color is #021e42?

#021e42 is soft very dark blue. The closest named color is Midnight Mirage. In RGB it is rgb(2, 30, 66), in HSL hsl(213.75, 94.12%, 13.33%) and in OKLCH oklch(23.892% 0.0764 255.918).

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

The complementary color of #021e42 is #311900. For a calmer combination use the analogous colors #002437 and #1d1741. The triadic partners are #3b0a12 and #0b2600.

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

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

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

#021e42 is a cool color. In OKLCH its hue is 256 degrees, its lightness 23.9% and its chroma 0.076.
