# #021f42 color: Midnight Mirage

#021f42 is rgb(2, 31, 66) in RGB and oklch(24.162% 0.07498 254.994) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #021f42 |
| RGB | rgb(2, 31, 66) |
| HSL | hsl(212.81, 94.12%, 13.33%) |
| HSB / HSV | hsv(212.81 96.97% 25.88%) |
| HWB | hwb(212.81 0.78% 74.12%) |
| CMYK | cmyk(97% 53% 0% 74%) |
| Lab | lab(11.46 1.67 -25.73) |
| LCH | lch(11.46 25.79 273.72) |
| OKLab | oklab(24.162% -0.01941 -0.07243) |
| OKLCH | oklch(24.162% 0.07498 254.994) |
| Display P3 | color(display-p3 0.03788 0.11921 0.24933) |
| Rec. 2020 | color(rec2020 0.03264 0.05967 0.18625) |
| Adobe RGB | color(a98-rgb 0.08426 0.14216 0.26253) |
| ProPhoto RGB | color(prophoto-rgb 0.08766 0.09171 0.18673) |
| Linear sRGB | color(srgb-linear 0.00061 0.0137 0.05448) |
| XYZ D65 | color(xyz-d65 0.01498 0.01386 0.05343) |
| XYZ D50 | color(xyz-d50 0.01334 0.01326 0.04024) |
| SwiftUI | Color(red: 0.008, green: 0.122, blue: 0.259) |
| UIKit | UIColor(red: 0.008, green: 0.122, blue: 0.259, alpha: 1) |
| Flutter / Compose | Color(0xFF021F42) |
| Android XML | #021F42 |

## 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.44:1
- Contrast with black: 1.28:1

## Tints

#021f42, #183354, #2f4766, #475c78, #5f728a, #78889d, #919fb0, #acb6c4, #c7ced7, #e3e6eb

## Shades

#021f42, #011938, #01142f, #010f25, #000a1c, #000614, #00030b, #000105, #000001, #000000

## Tones

#021f42, #051f3f, #09203b, #0d2038, #102035, #132031, #16202e, #18202a, #1b2027, #1d2023

## Harmonies

- Complementary: #021f42, #321900
- Split: #021f42, #3b1000, #252100
- Analogous: #021f42, #002537, #1d1841
- Triadic: #021f42, #3c0b14, #0e2700
- Tetradic: #021f42, #2d1238, #321900, #0e2700
- Square: #021f42, #370d28, #321900, #002a16
- Monochromatic: #021f42, #000222, #000322, #203e64, #406088

## Questions about #021f42

### What color is #021f42?

#021f42 is soft very dark blue. The closest named color is Midnight Mirage. In RGB it is rgb(2, 31, 66), in HSL hsl(212.81, 94.12%, 13.33%) and in OKLCH oklch(24.162% 0.07498 254.994).

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

The complementary color of #021f42 is #321900. For a calmer combination use the analogous colors #002537 and #1d1841. The triadic partners are #3c0b14 and #0e2700.

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

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

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

#021f42 is a cool color. In OKLCH its hue is 255 degrees, its lightness 24.2% and its chroma 0.075.
