Skip to the color picker

#31407f color: Official Violet

#31407f is rgb(49, 64, 127) in RGB and oklch(39.369% 0.10745 270.7) in OKLCH. Every other format, shade and contrast value is below.

Read as HEX

228°
100%

39.4%
0.107
271°
  • Indigo
  • Dark
  • Soft
  • Cool
  • ≈ Cobalt
  • blue-900
  • Black 50%

Inside sRGB: displays the same on any screen.

White text
9.68:1Readable · AA
Lc -96
Black text
2.17:1Hard to read
Lc 12

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 #31407f

#31407f is a soft dark indigo color. In OKLCH it has 39.4% lightness, 0.107 chroma and a hue of 271°.

Inside sRGB: displays the same on any screen.

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

The closest named color is Official Violet (#2e4182). In Tailwind CSS the closest color is blue-900.

More dark indigo colors

Lighter: #31407f mixed with white

  1. 31407f
  2. 42528c
  3. 556499
  4. 6877a6
  5. 7c89b3
  6. 919cc0
  7. a6afcc
  8. bbc3d9
  9. d1d7e6
  10. e8ebf2

Darker: #31407f mixed with black

  1. 31407f
  2. 29366e
  3. 222d5d
  4. 1a244c
  5. 131b3c
  6. 0c132d
  7. 060b1f
  8. 030511
  9. 010106
  10. 000001

Calmer: #31407f with less saturation

  1. 31407f
  2. 334179
  3. 354274
  4. 37436e
  5. 394469
  6. 3b4463
  7. 3d455d
  8. 3f4558
  9. 414652
  10. 44464c

Questions about #31407f

What color is #31407f?

#31407f is soft dark indigo. The closest named color is Official Violet. In RGB it is rgb(49, 64, 127), in HSL hsl(228.46, 44.32%, 34.51%) and in OKLCH oklch(39.369% 0.10745 270.7).

What colors go well with #31407f?

The complementary color of #31407f is #5a4200. For a calmer combination use the analogous colors #004b79 and #503576. The triadic partners are #752a1f and #005525.

Is white or black text more readable on #31407f?

White text reads better on #31407f: white gives a contrast ratio of 9.68:1 and black gives 2.17:1. WCAG AA asks for at least 4.5:1 for body text.

Is #31407f a warm or cool color?

#31407f is a cool color. In OKLCH its hue is 271 degrees, its lightness 39.4% and its chroma 0.107.