# #4d478c color: Moonlight Sonata

#4d478c is rgb(77, 71, 140) in RGB and oklch(43.89% 0.11056 284.827) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/4d478c

## Formats

| Format | Value |
| --- | --- |
| HEX | #4d478c |
| RGB | rgb(77, 71, 140) |
| HSL | hsl(245.22, 32.7%, 41.37%) |
| HSB / HSV | hsv(245.22 49.29% 54.9%) |
| HWB | hwb(245.22 27.84% 45.1%) |
| CMYK | cmyk(45% 49% 0% 45%) |
| Lab | lab(33.47 16.99 -38.23) |
| LCH | lch(33.47 41.84 293.96) |
| OKLab | oklab(43.89% 0.02829 -0.10688) |
| OKLCH | oklch(43.89% 0.11056 284.827) |
| Display P3 | color(display-p3 0.29794 0.27925 0.53175) |
| Rec. 2020 | color(rec2020 0.25083 0.22434 0.48085) |
| Adobe RGB | color(a98-rgb 0.30041 0.2845 0.53631) |
| ProPhoto RGB | color(prophoto-rgb 0.2735 0.22774 0.44797) |
| Linear sRGB | color(srgb-linear 0.07421 0.06301 0.26225) |
| XYZ D65 | color(xyz-d65 0.10047 0.07978 0.25822) |
| XYZ D50 | color(xyz-d50 0.09415 0.07758 0.19442) |
| SwiftUI | Color(red: 0.302, green: 0.278, blue: 0.549) |
| UIKit | UIColor(red: 0.302, green: 0.278, blue: 0.549, alpha: 1) |
| Flutter / Compose | Color(0xFF4D478C) |
| Android XML | #4D478C |

## 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: 8.09:1
- Contrast with black: 2.6:1

## Tints

#4d478c, #5c5998, #6c6aa4, #7d7caf, #8e8ebb, #a0a0c6, #b2b3d2, #c5c5dd, #d8d8e9, #ebecf4

## Shades

#4d478c, #423d79, #373267, #2c2855, #221f43, #181633, #0f0d23, #070614, #020207, #000001

## Tones

#4d478c, #4d4986, #4d4a81, #4e4c7b, #4e4d76, #4f4e70, #4f4f6a, #505064, #51515e, #515158

## Harmonies

- Complementary: #4d478c, #5c5400
- Split: #4d478c, #754700, #365f17
- Analogous: #4d478c, #21538d, #693d7c
- Triadic: #4d478c, #823a15, #006442
- Tetradic: #4d478c, #7b3560, #5c5400, #006442
- Square: #4d478c, #84343e, #5c5400, #006162
- Monochromatic: #4d478c, #150244, #2f2667, #6e6ab2, #918ed9

## Questions about #4d478c

### What color is #4d478c?

#4d478c is soft dark indigo. The closest named color is Moonlight Sonata. In RGB it is rgb(77, 71, 140), in HSL hsl(245.22, 32.7%, 41.37%) and in OKLCH oklch(43.89% 0.11056 284.827).

### What colors go well with #4d478c?

The complementary color of #4d478c is #5c5400. For a calmer combination use the analogous colors #21538d and #693d7c. The triadic partners are #823a15 and #006442.

### Is white or black text more readable on #4d478c?

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

### Is #4d478c a warm or cool color?

#4d478c is a cool color. In OKLCH its hue is 285 degrees, its lightness 43.9% and its chroma 0.111.
