Skip to the color picker

#021a31 color: Oxford by Night

#021a31 is rgb(2, 26, 49) in RGB and oklch(21.337% 0.05494 249.422) in OKLCH. Every other format, shade and contrast value is below.

Read as HEX

209°
100%

21.3%
0.055
249°
  • Blue
  • Very dark
  • Soft
  • Cool
  • ≈ Midnight blue
  • slate-900
  • Black 81%

Inside sRGB: displays the same on any screen.

White text
17.58:1Readable · AA
Lc -106
Black text
1.19:1Hard to read
Lc 0

Shades

From lightest to darkest. Click a shade to use it.

Harmonies

Open as palette

Recent

Colors you stop on or copy appear here. They stay on this device.

About #021a31

#021a31 is a soft very dark blue color. In OKLCH it has 21.3% lightness, 0.055 chroma and a hue of 249°.

Inside sRGB: displays the same on any screen.

White text on it reaches 17.58:1 contrast and black text 1.19:1, so white text reads better.

The closest named color is Oxford by Night (#001b2e). In Tailwind CSS the closest color is slate-900.

More very dark blue colors

Lighter: #021a31 mixed with white

  1. 021a31
  2. 172d43
  3. 2e4256
  4. 45576a
  5. 5d6d7e
  6. 768492
  7. 909ba7
  8. abb3bd
  9. c6ccd2
  10. e2e5e9

Darker: #021a31 mixed with black

  1. 021a31
  2. 011529
  3. 011022
  4. 010c1a
  5. 000713
  6. 00040c
  7. 000206
  8. 000103
  9. 000001
  10. 000000

Calmer: #021a31 with less saturation

  1. 021a31
  2. 051a2f
  3. 071a2c
  4. 0a1a2a
  5. 0d1a28
  6. 0f1a25
  7. 111a23
  8. 131a20
  9. 151a1e
  10. 17191c

Questions about #021a31

What color is #021a31?

#021a31 is soft very dark blue. The closest named color is Oxford by Night. In RGB it is rgb(2, 26, 49), in HSL hsl(209.36, 92.16%, 10%) and in OKLCH oklch(21.337% 0.05494 249.422).

What colors go well with #021a31?

The complementary color of #021a31 is #291300. For a calmer combination use the analogous colors #001e2a and #141532. The triadic partners are #2d0c13 and #111e01.

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

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

Is #021a31 a warm or cool color?

#021a31 is a cool color. In OKLCH its hue is 249 degrees, its lightness 21.3% and its chroma 0.055.