Skip to the color picker

#4f418c color: Moonlight Sonata

#4f418c is rgb(79, 65, 140) in RGB and oklch(42.903% 0.11975 288.916) in OKLCH. Every other format, shade and contrast value is below.

Read as HEX

251°
100%

42.9%
0.120
289°
  • Violet
  • Dark
  • Soft
  • Cool
  • ≈ Cobalt
  • indigo-900
  • Black 45%

Inside sRGB: displays the same on any screen.

White text
8.51:1Readable · AA
Lc -94
Black text
2.47:1Hard to read
Lc 15

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 #4f418c

#4f418c is a soft dark violet color. In OKLCH it has 42.9% lightness, 0.12 chroma and a hue of 289°.

Inside sRGB: displays the same on any screen.

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

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

More dark violet colors

Lighter: #4f418c mixed with white

Darker: #4f418c mixed with black

Calmer: #4f418c with less saturation

Similar named colors

  • Nauseous Blue#483d8b

Colors that go with #4f418c

Complementary
Analogous
Triadic
Split

Questions about #4f418c

What color is #4f418c?

#4f418c is soft dark violet. The closest named color is Moonlight Sonata. In RGB it is rgb(79, 65, 140), in HSL hsl(251.2, 36.59%, 40.2%) and in OKLCH oklch(42.903% 0.11975 288.916).

What colors go well with #4f418c?

The complementary color of #4f418c is #555300. For a calmer combination use the analogous colors #224e90 and #6b3679. The triadic partners are #813600 and #006245.

Is white or black text more readable on #4f418c?

White text reads better on #4f418c: white gives a contrast ratio of 8.51:1 and black gives 2.47:1. WCAG AA asks for at least 4.5:1 for body text.

Is #4f418c a warm or cool color?

#4f418c is a cool color. In OKLCH its hue is 289 degrees, its lightness 42.9% and its chroma 0.12.