# #021f3d color: Midnight Mirage

#021f3d is rgb(2, 31, 61) in RGB and oklch(23.741% 0.06713 252.096) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #021f3d |
| RGB | rgb(2, 31, 61) |
| HSL | hsl(210.51, 93.65%, 12.35%) |
| HSB / HSV | hsv(210.51 96.72% 23.92%) |
| HWB | hwb(210.51 0.78% 76.08%) |
| CMYK | cmyk(97% 49% 0% 76%) |
| Lab | lab(11.13 -0.35 -22.76) |
| LCH | lch(11.13 22.76 269.11) |
| OKLab | oklab(23.741% -0.02064 -0.06388) |
| OKLCH | oklch(23.741% 0.06713 252.096) |
| Display P3 | color(display-p3 0.03788 0.11921 0.23071) |
| Rec. 2020 | color(rec2020 0.03111 0.05927 0.16752) |
| Adobe RGB | color(a98-rgb 0.08426 0.14216 0.24488) |
| ProPhoto RGB | color(prophoto-rgb 0.08329 0.09088 0.17187) |
| Linear sRGB | color(srgb-linear 0.00061 0.0137 0.04667) |
| XYZ D65 | color(xyz-d65 0.01357 0.0133 0.046) |
| XYZ D50 | color(xyz-d50 0.01222 0.01279 0.03466) |
| SwiftUI | Color(red: 0.008, green: 0.122, blue: 0.239) |
| UIKit | UIColor(red: 0.008, green: 0.122, blue: 0.239, alpha: 1) |
| Flutter / Compose | Color(0xFF021F3D) |
| Android XML | #021F3D |

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

## Tints

#021f3d, #19334f, #2f4761, #475c74, #5f7187, #78889a, #919eae, #acb6c1, #c7ced6, #e3e6ea

## Shades

#021f3d, #011934, #01142b, #010f22, #000a1a, #000612, #00030a, #000104, #000001, #000000

## Tones

#021f3d, #051f3a, #091f37, #0d2034, #102031, #13202e, #15202b, #181f28, #1a1f25, #1c1f22

## Harmonies

- Complementary: #021f3d, #311800
- Split: #021f3d, #371102, #251f00
- Analogous: #021f3d, #002434, #1b193d
- Triadic: #021f3d, #380e16, #122500
- Tetradic: #021f3d, #291335, #311800, #122500
- Square: #021f3d, #330f27, #311800, #002814
- Monochromatic: #021f3d, #00041e, #00041e, #203e5f, #405f82

## Questions about #021f3d

### What color is #021f3d?

#021f3d is soft very dark blue. The closest named color is Midnight Mirage. In RGB it is rgb(2, 31, 61), in HSL hsl(210.51, 93.65%, 12.35%) and in OKLCH oklch(23.741% 0.06713 252.096).

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

The complementary color of #021f3d is #311800. For a calmer combination use the analogous colors #002434 and #1b193d. The triadic partners are #380e16 and #122500.

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

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

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

#021f3d is a cool color. In OKLCH its hue is 252 degrees, its lightness 23.7% and its chroma 0.067.
