Skip to the color picker

#51488c color: Moonlight Sonata

#51488c is rgb(81, 72, 140) in RGB and oklch(44.442% 0.10867 287.183) in OKLCH. Every other format, shade and contrast value is below.

Read as HEX

248°
100%

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

Inside sRGB: displays the same on any screen.

White text
7.91:1Readable · AA
Lc -92
Black text
2.66:1Hard to read
Lc 17

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 #51488c

#51488c is a soft dark violet color. In OKLCH it has 44.4% lightness, 0.109 chroma and a hue of 287°.

Inside sRGB: displays the same on any screen.

White text on it reaches 7.91:1 contrast and black text 2.66: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: #51488c mixed with white

Darker: #51488c mixed with black

Calmer: #51488c with less saturation

Similar named colors

Colors that go with #51488c

Complementary
Analogous
Triadic
Split

Questions about #51488c

What color is #51488c?

#51488c is soft dark violet. The closest named color is Moonlight Sonata. In RGB it is rgb(81, 72, 140), in HSL hsl(247.94, 32.08%, 41.57%) and in OKLCH oklch(44.442% 0.10867 287.183).

What colors go well with #51488c?

The complementary color of #51488c is #5b5700. For a calmer combination use the analogous colors #29538f and #6c3e7b. The triadic partners are #833d14 and #006647.

Is white or black text more readable on #51488c?

White text reads better on #51488c: white gives a contrast ratio of 7.91:1 and black gives 2.66:1. WCAG AA asks for at least 4.5:1 for body text.

Is #51488c a warm or cool color?

#51488c is a cool color. In OKLCH its hue is 287 degrees, its lightness 44.4% and its chroma 0.109.