# #504788 color: Moonlight Sonata

#504788 is rgb(80, 71, 136) in RGB and oklch(43.896% 0.10436 287.653) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/504788

## Formats

| Format | Value |
| --- | --- |
| HEX | #504788 |
| RGB | rgb(80, 71, 136) |
| HSL | hsl(248.31, 31.4%, 40.59%) |
| HSB / HSV | hsv(248.31 47.79% 53.33%) |
| HWB | hwb(248.31 27.84% 46.67%) |
| CMYK | cmyk(41% 48% 0% 47%) |
| Lab | lab(33.55 16.92 -35.64) |
| LCH | lch(33.55 39.45 295.39) |
| OKLab | oklab(43.896% 0.03165 -0.09944) |
| OKLCH | oklch(43.896% 0.10436 287.653) |
| Display P3 | color(display-p3 0.30781 0.27969 0.51699) |
| Rec. 2020 | color(rec2020 0.25692 0.22485 0.46516) |
| Adobe RGB | color(a98-rgb 0.30854 0.2845 0.52128) |
| ProPhoto RGB | color(prophoto-rgb 0.27495 0.22799 0.43321) |
| Linear sRGB | color(srgb-linear 0.08022 0.06301 0.2462) |
| XYZ D65 | color(xyz-d65 0.10005 0.07989 0.24308) |
| XYZ D50 | color(xyz-d50 0.09448 0.07794 0.18305) |
| SwiftUI | Color(red: 0.314, green: 0.278, blue: 0.533) |
| UIKit | UIColor(red: 0.314, green: 0.278, blue: 0.533, alpha: 1) |
| Flutter / Compose | Color(0xFF504788) |
| Android XML | #504788 |

## Facts

- Closest name: Moonlight Sonata
- Hue family: Violet, soft dark violet
- Closest Tailwind class: slate-600
- Gamut: Inside sRGB: displays the same on any screen.
- Contrast with white: 8.08:1
- Contrast with black: 2.6:1

## Tints

#504788, #5f5894, #6f6aa0, #807cac, #918eb8, #a2a0c4, #b4b2d0, #c6c5dc, #d9d8e8, #ecebf3

## Shades

#504788, #443d75, #393263, #2e2852, #241f41, #1a1631, #100d22, #070613, #020206, #000001

## Tones

#504788, #504983, #504a7e, #504b78, #504d73, #504e6e, #514f68, #515063, #51515d, #525158

## Harmonies

- Complementary: #504788, #595500
- Split: #504788, #714900, #335f21
- Analogous: #504788, #2a528b, #693e77
- Triadic: #504788, #7f3d16, #006447
- Tetradic: #504788, #7a375d, #595500, #006447
- Square: #504788, #82363c, #595500, #006165
- Monochromatic: #504788, #170441, #322664, #7169ae, #948dd5

## Questions about #504788

### What color is #504788?

#504788 is soft dark violet. The closest named color is Moonlight Sonata. In RGB it is rgb(80, 71, 136), in HSL hsl(248.31, 31.4%, 40.59%) and in OKLCH oklch(43.896% 0.10436 287.653).

### What colors go well with #504788?

The complementary color of #504788 is #595500. For a calmer combination use the analogous colors #2a528b and #693e77. The triadic partners are #7f3d16 and #006447.

### Is white or black text more readable on #504788?

White text reads better on #504788: white gives a contrast ratio of 8.08:1 and black gives 2.6:1. WCAG AA asks for at least 4.5:1 for body text.

### Is #504788 a warm or cool color?

#504788 is a cool color. In OKLCH its hue is 288 degrees, its lightness 43.9% and its chroma 0.104.
