# #504a8c color: Moonlight Sonata

#504a8c is rgb(80, 74, 140) in RGB and oklch(44.754% 0.1056 285.435) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #504a8c |
| RGB | rgb(80, 74, 140) |
| HSL | hsl(245.45, 30.84%, 41.96%) |
| HSB / HSV | hsv(245.45 47.14% 54.9%) |
| HWB | hwb(245.45 29.02% 45.1%) |
| CMYK | cmyk(43% 47% 0% 45%) |
| Lab | lab(34.57 16.07 -36.48) |
| LCH | lch(34.57 39.86 293.77) |
| OKLab | oklab(44.754% 0.02811 -0.10179) |
| OKLCH | oklch(44.754% 0.1056 285.435) |
| Display P3 | color(display-p3 0.3097 0.29101 0.53225) |
| Rec. 2020 | color(rec2020 0.26177 0.23608 0.48147) |
| Adobe RGB | color(a98-rgb 0.31143 0.29547 0.53652) |
| ProPhoto RGB | color(prophoto-rgb 0.28123 0.23731 0.44875) |
| Linear sRGB | color(srgb-linear 0.08022 0.06848 0.26225) |
| XYZ D65 | color(xyz-d65 0.1049 0.08496 0.25899) |
| XYZ D50 | color(xyz-d50 0.09888 0.08284 0.19504) |
| SwiftUI | Color(red: 0.314, green: 0.29, blue: 0.549) |
| UIKit | UIColor(red: 0.314, green: 0.29, blue: 0.549, alpha: 1) |
| Flutter / Compose | Color(0xFF504A8C) |
| Android XML | #504A8C |

## 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.78:1
- Contrast with black: 2.7:1

## Tints

#504a8c, #5f5b98, #6f6da4, #807eaf, #9190bb, #a2a2c6, #b4b4d2, #c6c6dd, #d9d9e8, #ececf4

## Shades

#504a8c, #443f79, #393567, #2e2a55, #242043, #1a1733, #100e23, #070614, #020207, #000001

## Tones

#504a8c, #504c87, #504d81, #514e7c, #514f76, #515171, #52516b, #535266, #535360, #54545a

## Harmonies

- Complementary: #504a8c, #5d5700
- Split: #504a8c, #764a00, #39611f
- Analogous: #504a8c, #28558e, #6b407c
- Triadic: #504a8c, #833e1b, #006646
- Tetradic: #504a8c, #7c3961, #5d5700, #006646
- Square: #504a8c, #853841, #5d5700, #006465
- Monochromatic: #504a8c, #170644, #322967, #716db2, #9491d9

## Questions about #504a8c

### What color is #504a8c?

#504a8c is soft dark indigo. The closest named color is Moonlight Sonata. In RGB it is rgb(80, 74, 140), in HSL hsl(245.45, 30.84%, 41.96%) and in OKLCH oklch(44.754% 0.1056 285.435).

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

The complementary color of #504a8c is #5d5700. For a calmer combination use the analogous colors #28558e and #6b407c. The triadic partners are #833e1b and #006646.

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

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

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

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