Skip to the color picker

#51478e color: Moonlight Sonata

#51478e is rgb(81, 71, 142) in RGB and oklch(44.376% 0.11319 287.315) in OKLCH. Every other format, shade and contrast value is below.

Read as HEX

248°
100%

44.4%
0.113
287°
  • Violet
  • Dark
  • Soft
  • Cool
  • ≈ Cobalt
  • slate-600
  • Black 44%

Inside sRGB: displays the same on any screen.

White text
7.95:1Readable · AA
Lc -92
Black text
2.64:1Hard to read
Lc 17

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 #51478e

#51478e is a soft dark violet color. In OKLCH it has 44.4% lightness, 0.113 chroma and a hue of 287°.

Inside sRGB: displays the same on any screen.

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

The closest named color is Moonlight Sonata (#4e468b). In Tailwind CSS the closest color is slate-600.

More dark violet colors

Lighter: #51478e mixed with white

  1. 51478e
  2. 60599a
  3. 706aa5
  4. 807cb1
  5. 918ebc
  6. a2a0c8
  7. b4b3d3
  8. c6c5de
  9. d9d8e9
  10. ececf4

Darker: #51478e mixed with black

  1. 51478e
  2. 453d7b
  3. 3a3268
  4. 2f2856
  5. 241f44
  6. 1a1634
  7. 100d24
  8. 070615
  9. 020207
  10. 000001

Calmer: #51478e with less saturation

  1. 51478e
  2. 514988
  3. 514b83
  4. 514c7d
  5. 514d77
  6. 514f72
  7. 52506c
  8. 525166
  9. 525260
  10. 53535a

Questions about #51478e

What color is #51478e?

#51478e is soft dark violet. The closest named color is Moonlight Sonata. In RGB it is rgb(81, 71, 142), in HSL hsl(248.45, 33.33%, 41.76%) and in OKLCH oklch(44.376% 0.11319 287.315).

What colors go well with #51478e?

The complementary color of #51478e is #5b5700. For a calmer combination use the analogous colors #275391 and #6c3d7c. The triadic partners are #843c0e and #006646.

Is white or black text more readable on #51478e?

White text reads better on #51478e: white gives a contrast ratio of 7.95:1 and black gives 2.64:1. WCAG AA asks for at least 4.5:1 for body text.

Is #51478e a warm or cool color?

#51478e is a cool color. In OKLCH its hue is 287 degrees, its lightness 44.4% and its chroma 0.113.