# #021238 color: Infinite Night

#021238 is rgb(2, 18, 56) in RGB and oklch(19.792% 0.07812 261.821) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #021238 |
| RGB | rgb(2, 18, 56) |
| HSL | hsl(222.22, 93.1%, 11.37%) |
| HSB / HSV | hsv(222.22 96.43% 21.96%) |
| HWB | hwb(222.22 0.78% 78.04%) |
| CMYK | cmyk(96% 68% 0% 78%) |
| Lab | lab(6.2 6.58 -27.11) |
| LCH | lch(6.2 27.89 283.64) |
| OKLab | oklab(19.792% -0.01111 -0.07732) |
| OKLCH | oklch(19.792% 0.07812 261.821) |
| Display P3 | color(display-p3 0.02033 0.06901 0.21045) |
| Rec. 2020 | color(rec2020 0.01838 0.02724 0.14687) |
| Adobe RGB | color(a98-rgb 0.06134 0.09802 0.22651) |
| ProPhoto RGB | color(prophoto-rgb 0.06781 0.06072 0.15516) |
| Linear sRGB | color(srgb-linear 0.00061 0.00605 0.03955) |
| XYZ D65 | color(xyz-d65 0.00955 0.00731 0.03832) |
| XYZ D50 | color(xyz-d50 0.00825 0.00687 0.02884) |
| SwiftUI | Color(red: 0.008, green: 0.071, blue: 0.22) |
| UIKit | UIColor(red: 0.008, green: 0.071, blue: 0.22, alpha: 1) |
| Flutter / Compose | Color(0xFF021238) |
| Android XML | #021238 |

## Facts

- Closest name: Infinite Night
- Hue family: Blue, soft very dark blue
- Closest Tailwind class: slate-900
- Gamut: Inside sRGB: displays the same on any screen.
- Contrast with white: 18.32:1
- Contrast with black: 1.15:1

## Tints

#021238, #14274b, #2a3c5d, #415271, #5a6984, #738098, #8e99ac, #a9b1c0, #c5cbd5, #e2e5ea

## Shades

#021238, #010e2f, #010a27, #01071f, #000417, #00020f, #000108, #000104, #000001, #000000

## Tones

#021238, #041335, #051431, #07142e, #09152b, #0b1527, #0e1524, #101620, #12161d, #141619

## Harmonies

- Complementary: #021238, #231100
- Split: #021238, #2d0600, #171800
- Analogous: #021238, #00192d, #180b35
- Triadic: #021238, #310105, #001d00
- Tetradic: #021238, #25052a, #231100, #001d00
- Square: #021238, #2d0119, #231100, #001e12
- Monochromatic: #021238, #000123, #000123, #1b315a, #3a517d

## Questions about #021238

### What color is #021238?

#021238 is soft very dark blue. The closest named color is Infinite Night. In RGB it is rgb(2, 18, 56), in HSL hsl(222.22, 93.1%, 11.37%) and in OKLCH oklch(19.792% 0.07812 261.821).

### What colors go well with #021238?

The complementary color of #021238 is #231100. For a calmer combination use the analogous colors #00192d and #180b35. The triadic partners are #310105 and #001d00.

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

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

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

#021238 is a cool color. In OKLCH its hue is 262 degrees, its lightness 19.8% and its chroma 0.078.
