# #50418d color: Moonlight Sonata

#50418d is rgb(80, 65, 141) in RGB and oklch(43.067% 0.12116 289.39) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/50418d

## Formats

| Format | Value |
| --- | --- |
| HEX | #50418d |
| RGB | rgb(80, 65, 141) |
| HSL | hsl(251.84, 36.89%, 40.39%) |
| HSB / HSV | hsv(251.84 53.9% 55.29%) |
| HWB | hwb(251.84 25.49% 44.71%) |
| CMYK | cmyk(43% 54% 0% 45%) |
| Lab | lab(32.23 21.76 -40.8) |
| LCH | lch(32.23 46.24 298.08) |
| OKLab | oklab(43.067% 0.04022 -0.11428) |
| OKLCH | oklch(43.067% 0.12116 289.39) |
| Display P3 | color(display-p3 0.30425 0.25711 0.53484) |
| Rec. 2020 | color(rec2020 0.25204 0.204 0.48395) |
| Adobe RGB | color(a98-rgb 0.3031 0.26266 0.53967) |
| ProPhoto RGB | color(prophoto-rgb 0.27414 0.21252 0.45056) |
| Linear sRGB | color(srgb-linear 0.08022 0.05286 0.26636) |
| XYZ D65 | color(xyz-d65 0.10006 0.07409 0.26103) |
| XYZ D50 | color(xyz-d50 0.09345 0.07189 0.19645) |
| SwiftUI | Color(red: 0.314, green: 0.255, blue: 0.553) |
| UIKit | UIColor(red: 0.314, green: 0.255, blue: 0.553, alpha: 1) |
| Flutter / Compose | Color(0xFF50418D) |
| Android XML | #50418D |

## 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.46:1
- Contrast with black: 2.48:1

## Tints

#50418d, #5f5399, #6f66a5, #7f78b0, #908bbc, #a29dc7, #b4b0d3, #c6c4de, #d9d7e9, #ecebf4

## Shades

#50418d, #44377a, #392e67, #2e2555, #241c44, #1a1333, #100b23, #070514, #020107, #000001

## Tones

#50418d, #504387, #4f4581, #4f477b, #4f4975, #4f4a6f, #4f4c69, #4f4d63, #4f4e5d, #504f56

## Harmonies

- Complementary: #50418d, #555400
- Split: #50418d, #6f4700, #265f14
- Analogous: #50418d, #234e91, #6c3679
- Triadic: #50418d, #823600, #006246
- Tetradic: #50418d, #7e2e5a, #555400, #006246
- Square: #50418d, #862d34, #555400, #005e63
- Monochromatic: #50418d, #180045, #321f68, #7164b3, #9488db

## Questions about #50418d

### What color is #50418d?

#50418d is soft dark violet. The closest named color is Moonlight Sonata. In RGB it is rgb(80, 65, 141), in HSL hsl(251.84, 36.89%, 40.39%) and in OKLCH oklch(43.067% 0.12116 289.39).

### What colors go well with #50418d?

The complementary color of #50418d is #555400. For a calmer combination use the analogous colors #234e91 and #6c3679. The triadic partners are #823600 and #006246.

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

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

### Is #50418d a warm or cool color?

#50418d is a cool color. In OKLCH its hue is 289 degrees, its lightness 43.1% and its chroma 0.121.
