# #50418b color: Moonlight Sonata

#50418b is rgb(80, 65, 139) in RGB and oklch(42.928% 0.11829 289.812) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #50418b |
| RGB | rgb(80, 65, 139) |
| HSL | hsl(252.16, 36.27%, 40%) |
| HSB / HSV | hsv(252.16 53.24% 54.51%) |
| HWB | hwb(252.16 25.49% 45.49%) |
| CMYK | cmyk(42% 53% 0% 45%) |
| Lab | lab(32.12 21.28 -39.75) |
| LCH | lch(32.12 45.09 298.16) |
| OKLab | oklab(42.928% 0.04009 -0.11128) |
| OKLCH | oklch(42.928% 0.11829 289.812) |
| Display P3 | color(display-p3 0.30425 0.25711 0.52739) |
| Rec. 2020 | color(rec2020 0.25133 0.20378 0.47603) |
| Adobe RGB | color(a98-rgb 0.3031 0.26266 0.53214) |
| ProPhoto RGB | color(prophoto-rgb 0.27234 0.21208 0.44307) |
| Linear sRGB | color(srgb-linear 0.08022 0.05286 0.25818) |
| XYZ D65 | color(xyz-d65 0.09858 0.0735 0.25326) |
| XYZ D50 | color(xyz-d50 0.09228 0.07139 0.19062) |
| SwiftUI | Color(red: 0.314, green: 0.255, blue: 0.545) |
| UIKit | UIColor(red: 0.314, green: 0.255, blue: 0.545, alpha: 1) |
| Flutter / Compose | Color(0xFF50418B) |
| Android XML | #50418B |

## 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.5:1
- Contrast with black: 2.47:1

## Tints

#50418b, #5f5397, #6f66a3, #7f78af, #908aba, #a29dc6, #b4b0d2, #c6c4dd, #d9d7e8, #ecebf4

## Shades

#50418b, #443778, #392e66, #2e2554, #241c43, #1a1332, #100b23, #070514, #020107, #000001

## Tones

#50418b, #504385, #4f4580, #4f477a, #4f4974, #4f4a6e, #4f4b68, #4f4d62, #4f4e5c, #4f4f56

## Harmonies

- Complementary: #50418b, #545400
- Split: #50418b, #6e4700, #265e17
- Analogous: #50418b, #254d8f, #6b3677
- Triadic: #50418b, #803700, #006146
- Tetradic: #50418b, #7d2f59, #545400, #006146
- Square: #50418b, #842e34, #545400, #005e63
- Monochromatic: #50418b, #180043, #321f66, #7164b1, #9488d9

## Questions about #50418b

### What color is #50418b?

#50418b is soft dark violet. The closest named color is Moonlight Sonata. In RGB it is rgb(80, 65, 139), in HSL hsl(252.16, 36.27%, 40%) and in OKLCH oklch(42.928% 0.11829 289.812).

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

The complementary color of #50418b is #545400. For a calmer combination use the analogous colors #254d8f and #6b3677. The triadic partners are #803700 and #006146.

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

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

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

#50418b is a cool color. In OKLCH its hue is 290 degrees, its lightness 42.9% and its chroma 0.118.
