# #51418f color: Moonlight Sonata

#51418f is rgb(81, 65, 143) in RGB and oklch(43.301% 0.12399 289.643) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/51418f

## Formats

| Format | Value |
| --- | --- |
| HEX | #51418f |
| RGB | rgb(81, 65, 143) |
| HSL | hsl(252.31, 37.5%, 40.78%) |
| HSB / HSV | hsv(252.31 54.55% 56.08%) |
| HWB | hwb(252.31 25.49% 43.92%) |
| CMYK | cmyk(43% 55% 0% 44%) |
| Lab | lab(32.45 22.54 -41.67) |
| LCH | lch(32.45 47.38 298.41) |
| OKLab | oklab(43.301% 0.04168 -0.11677) |
| OKLCH | oklch(43.301% 0.12399 289.643) |
| Display P3 | color(display-p3 0.3076 0.25727 0.54233) |
| Rec. 2020 | color(rec2020 0.25532 0.20456 0.49192) |
| Adobe RGB | color(a98-rgb 0.30589 0.26266 0.54721) |
| ProPhoto RGB | color(prophoto-rgb 0.27766 0.21336 0.45811) |
| Linear sRGB | color(srgb-linear 0.08228 0.05286 0.27468) |
| XYZ D65 | color(xyz-d65 0.10241 0.07513 0.26898) |
| XYZ D50 | color(xyz-d50 0.09554 0.07285 0.20242) |
| SwiftUI | Color(red: 0.318, green: 0.255, blue: 0.561) |
| UIKit | UIColor(red: 0.318, green: 0.255, blue: 0.561, alpha: 1) |
| Flutter / Compose | Color(0xFF51418F) |
| Android XML | #51418F |

## Facts

- Closest name: Moonlight Sonata
- Hue family: Violet, soft dark violet
- Closest Tailwind class: indigo-900
- Gamut: Inside sRGB: displays the same on any screen.
- Contrast with white: 8.39:1
- Contrast with black: 2.5:1

## Tints

#51418f, #60539b, #7066a6, #8078b2, #918bbd, #a29ec8, #b4b1d4, #c6c4df, #d9d7e9, #ecebf4

## Shades

#51418f, #45377c, #3a2e69, #2f2557, #241c45, #1a1334, #100b24, #070515, #020107, #000001

## Tones

#51418f, #514389, #504683, #50477d, #504977, #504b71, #504c6a, #504d64, #504f5e, #505057

## Harmonies

- Complementary: #51418f, #565500
- Split: #51418f, #6f4800, #256013
- Analogous: #51418f, #234e93, #6d367a
- Triadic: #51418f, #843600, #006347
- Tetradic: #51418f, #802e5a, #565500, #006347
- Square: #51418f, #882d34, #565500, #005f64
- Monochromatic: #51418f, #190046, #331f6a, #7264b5, #9588dd

## Questions about #51418f

### What color is #51418f?

#51418f is soft dark violet. The closest named color is Moonlight Sonata. In RGB it is rgb(81, 65, 143), in HSL hsl(252.31, 37.5%, 40.78%) and in OKLCH oklch(43.301% 0.12399 289.643).

### What colors go well with #51418f?

The complementary color of #51418f is #565500. For a calmer combination use the analogous colors #234e93 and #6d367a. The triadic partners are #843600 and #006347.

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

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

### Is #51418f a warm or cool color?

#51418f is a cool color. In OKLCH its hue is 290 degrees, its lightness 43.3% and its chroma 0.124.
