Skip to the color picker

#51498d color: Moonlight Sonata

#51498d is rgb(81, 73, 141) in RGB and oklch(44.705% 0.10858 286.522) in OKLCH. Every other format, shade and contrast value is below.

Read as HEX

247°
100%

44.7%
0.109
287°
  • Violet
  • Dark
  • Soft
  • Cool
  • ≈ Cobalt
  • slate-600
  • Black 45%

Inside sRGB: displays the same on any screen.

White text
7.81:1Readable · AA
Lc -92
Black text
2.69: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 #51498d

#51498d is a soft dark violet color. In OKLCH it has 44.7% lightness, 0.109 chroma and a hue of 287°.

Inside sRGB: displays the same on any screen.

White text on it reaches 7.81:1 contrast and black text 2.69: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: #51498d mixed with white

  1. 51498d
  2. 605a99
  3. 706ca4
  4. 807db0
  5. 918fbb
  6. a2a1c7
  7. b4b3d2
  8. c6c6dd
  9. d9d9e9
  10. ececf4

Darker: #51498d mixed with black

  1. 51498d
  2. 453e7a
  3. 3a3467
  4. 2f2a55
  5. 242044
  6. 1a1733
  7. 100e23
  8. 070614
  9. 020207
  10. 000001

Calmer: #51498d with less saturation

  1. 51498d
  2. 514b88
  3. 514c82
  4. 514e7d
  5. 524f77
  6. 525071
  7. 52516c
  8. 535266
  9. 535360
  10. 54545a

Questions about #51498d

What color is #51498d?

#51498d is soft dark violet. The closest named color is Moonlight Sonata. In RGB it is rgb(81, 73, 141), in HSL hsl(247.06, 31.78%, 41.96%) and in OKLCH oklch(44.705% 0.10858 286.522).

What colors go well with #51498d?

The complementary color of #51498d is #5c5700. For a calmer combination use the analogous colors #28548f and #6c3f7c. The triadic partners are #833e16 and #006747.

Is white or black text more readable on #51498d?

White text reads better on #51498d: white gives a contrast ratio of 7.81:1 and black gives 2.69:1. WCAG AA asks for at least 4.5:1 for body text.

Is #51498d a warm or cool color?

#51498d is a cool color. In OKLCH its hue is 287 degrees, its lightness 44.7% and its chroma 0.109.