# #504a8e color: Moonlight Sonata

#504a8e is rgb(80, 74, 142) in RGB and oklch(44.882% 0.10859 285.152) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #504a8e |
| RGB | rgb(80, 74, 142) |
| HSL | hsl(245.29, 31.48%, 42.35%) |
| HSB / HSV | hsv(245.29 47.89% 55.69%) |
| HWB | hwb(245.29 29.02% 44.31%) |
| CMYK | cmyk(44% 48% 0% 44%) |
| Lab | lab(34.67 16.56 -37.53) |
| LCH | lch(34.67 41.02 293.8) |
| OKLab | oklab(44.882% 0.02838 -0.10482) |
| OKLCH | oklch(44.882% 0.10859 285.152) |
| Display P3 | color(display-p3 0.3097 0.29101 0.53968) |
| Rec. 2020 | color(rec2020 0.26246 0.23627 0.48938) |
| Adobe RGB | color(a98-rgb 0.31143 0.29547 0.54405) |
| ProPhoto RGB | color(prophoto-rgb 0.283 0.23772 0.45623) |
| Linear sRGB | color(srgb-linear 0.08022 0.06848 0.2705) |
| XYZ D65 | color(xyz-d65 0.10639 0.08556 0.26683) |
| XYZ D50 | color(xyz-d50 0.10006 0.08334 0.20093) |
| SwiftUI | Color(red: 0.314, green: 0.29, blue: 0.557) |
| UIKit | UIColor(red: 0.314, green: 0.29, blue: 0.557, alpha: 1) |
| Flutter / Compose | Color(0xFF504A8E) |
| Android XML | #504A8E |

## 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.75:1
- Contrast with black: 2.71:1

## Tints

#504a8e, #5f5b9a, #6f6da5, #7f7eb1, #9090bc, #a2a2c7, #b4b4d3, #c6c6de, #d9d9e9, #ececf4

## Shades

#504a8e, #443f7b, #393568, #2e2a56, #242044, #1a1734, #100e24, #070615, #020207, #000001

## Tones

#504a8e, #504c88, #504d83, #514e7d, #515078, #525172, #52526c, #535367, #535361, #54545b

## Harmonies

- Complementary: #504a8e, #5e5700
- Split: #504a8e, #774a00, #38621d
- Analogous: #504a8e, #265590, #6b407e
- Triadic: #504a8e, #843e19, #006746
- Tetradic: #504a8e, #7e3962, #5e5700, #006746
- Square: #504a8e, #863741, #5e5700, #006565
- Monochromatic: #504a8e, #170646, #322969, #716db4, #9491dc

## Questions about #504a8e

### What color is #504a8e?

#504a8e is soft dark indigo. The closest named color is Moonlight Sonata. In RGB it is rgb(80, 74, 142), in HSL hsl(245.29, 31.48%, 42.35%) and in OKLCH oklch(44.882% 0.10859 285.152).

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

The complementary color of #504a8e is #5e5700. For a calmer combination use the analogous colors #265590 and #6b407e. The triadic partners are #843e19 and #006746.

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

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

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

#504a8e is a cool color. In OKLCH its hue is 285 degrees, its lightness 44.9% and its chroma 0.109.
