Skip to the color picker

#1b1731 color: Dark Knight

#1b1731 is rgb(27, 23, 49) in RGB and oklch(22.41% 0.04957 288.811) in OKLCH. Every other format, shade and contrast value is below.

Read as HEX

249°
100%

22.4%
0.050
289°
  • Violet
  • Very dark
  • Soft
  • Cool
  • ≈ Midnight blue
  • slate-900
  • Black 81%

Inside sRGB: displays the same on any screen.

White text
17.31:1Readable · AA
Lc -106
Black text
1.21:1Hard to read
Lc 0

Shades

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

Harmonies

Recent

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

About #1b1731

#1b1731 is a soft very dark violet color. In OKLCH it has 22.4% lightness, 0.05 chroma and a hue of 289°.

Inside sRGB: displays the same on any screen.

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

The closest named color is Dark Knight (#151931). In Tailwind CSS the closest color is slate-900.

More very dark violet colors

Lighter: #1b1731 mixed with white

Darker: #1b1731 mixed with black

  1. 000000

Calmer: #1b1731 with less saturation

Similar named colors

Colors that go with #1b1731

Complementary
Analogous
Triadic
Split

Questions about #1b1731

What color is #1b1731?

#1b1731 is soft very dark violet. The closest named color is Dark Knight. In RGB it is rgb(27, 23, 49), in HSL hsl(249.23, 36.11%, 14.12%) and in OKLCH oklch(22.41% 0.04957 288.811).

What colors go well with #1b1731?

The complementary color of #1b1731 is #1e1d00. For a calmer combination use the analogous colors #0c1b32 and #25132a. The triadic partners are #2e1305 and #002317.

Is white or black text more readable on #1b1731?

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

Is #1b1731 a warm or cool color?

#1b1731 is a cool color. In OKLCH its hue is 289 degrees, its lightness 22.4% and its chroma 0.05.