# #504a8d color: Moonlight Sonata

#504a8d is rgb(80, 74, 141) in RGB and oklch(44.818% 0.1071 285.293) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/504a8d

## Formats

| Format | Value |
| --- | --- |
| HEX | #504a8d |
| RGB | rgb(80, 74, 141) |
| HSL | hsl(245.37, 31.16%, 42.16%) |
| HSB / HSV | hsv(245.37 47.52% 55.29%) |
| HWB | hwb(245.37 29.02% 44.71%) |
| CMYK | cmyk(43% 48% 0% 45%) |
| Lab | lab(34.62 16.31 -37.01) |
| LCH | lch(34.62 40.44 293.79) |
| OKLab | oklab(44.818% 0.02825 -0.10331) |
| OKLCH | oklch(44.818% 0.1071 285.293) |
| Display P3 | color(display-p3 0.3097 0.29101 0.53596) |
| Rec. 2020 | color(rec2020 0.26212 0.23618 0.48542) |
| Adobe RGB | color(a98-rgb 0.31143 0.29547 0.54028) |
| ProPhoto RGB | color(prophoto-rgb 0.28211 0.23752 0.45249) |
| Linear sRGB | color(srgb-linear 0.08022 0.06848 0.26636) |
| XYZ D65 | color(xyz-d65 0.10564 0.08526 0.26289) |
| XYZ D50 | color(xyz-d50 0.09947 0.08309 0.19797) |
| SwiftUI | Color(red: 0.314, green: 0.29, blue: 0.553) |
| UIKit | UIColor(red: 0.314, green: 0.29, blue: 0.553, alpha: 1) |
| Flutter / Compose | Color(0xFF504A8D) |
| Android XML | #504A8D |

## Facts

- Closest name: Moonlight Sonata
- Hue family: Indigo, soft dark indigo
- Closest Tailwind class: slate-600
- Gamut: Inside sRGB: displays the same on any screen.
- Contrast with white: 7.76:1
- Contrast with black: 2.71:1

## Tints

#504a8d, #5f5b99, #6f6da4, #7f7eb0, #9090bb, #a2a2c7, #b4b4d2, #c6c6dd, #d9d9e9, #ececf4

## Shades

#504a8d, #443f7a, #393567, #2e2a55, #242044, #1a1733, #100e23, #070614, #020207, #000001

## Tones

#504a8d, #504c88, #504d82, #514e7d, #515077, #525172, #52526c, #535366, #535361, #54545b

## Harmonies

- Complementary: #504a8d, #5e5700
- Split: #504a8d, #764a00, #38611e
- Analogous: #504a8d, #27558f, #6b407d
- Triadic: #504a8d, #843e1a, #006746
- Tetradic: #504a8d, #7d3962, #5e5700, #006746
- Square: #504a8d, #863841, #5e5700, #006465
- Monochromatic: #504a8d, #170645, #322968, #716db3, #9491da

## Questions about #504a8d

### What color is #504a8d?

#504a8d is soft dark indigo. The closest named color is Moonlight Sonata. In RGB it is rgb(80, 74, 141), in HSL hsl(245.37, 31.16%, 42.16%) and in OKLCH oklch(44.818% 0.1071 285.293).

### What colors go well with #504a8d?

The complementary color of #504a8d is #5e5700. For a calmer combination use the analogous colors #27558f and #6b407d. The triadic partners are #843e1a and #006746.

### Is white or black text more readable on #504a8d?

White text reads better on #504a8d: white gives a contrast ratio of 7.76:1 and black gives 2.71:1. WCAG AA asks for at least 4.5:1 for body text.

### Is #504a8d a warm or cool color?

#504a8d is a cool color. In OKLCH its hue is 285 degrees, its lightness 44.8% and its chroma 0.107.
