# #4d478a color: Moonlight Sonata

#4d478a is rgb(77, 71, 138) in RGB and oklch(43.758% 0.10758 285.111) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #4d478a |
| RGB | rgb(77, 71, 138) |
| HSL | hsl(245.37, 32.06%, 40.98%) |
| HSB / HSV | hsv(245.37 48.55% 54.12%) |
| HWB | hwb(245.37 27.84% 45.88%) |
| CMYK | cmyk(44% 49% 0% 46%) |
| Lab | lab(33.37 16.49 -37.17) |
| LCH | lch(33.37 40.67 293.92) |
| OKLab | oklab(43.758% 0.02804 -0.10386) |
| OKLCH | oklch(43.758% 0.10758 285.111) |
| Display P3 | color(display-p3 0.29794 0.27925 0.52431) |
| Rec. 2020 | color(rec2020 0.25013 0.22413 0.47294) |
| Adobe RGB | color(a98-rgb 0.30041 0.2845 0.52879) |
| ProPhoto RGB | color(prophoto-rgb 0.27171 0.22732 0.44051) |
| Linear sRGB | color(srgb-linear 0.07421 0.06301 0.25415) |
| XYZ D65 | color(xyz-d65 0.09901 0.07919 0.25052) |
| XYZ D50 | color(xyz-d50 0.09299 0.07709 0.18864) |
| SwiftUI | Color(red: 0.302, green: 0.278, blue: 0.541) |
| UIKit | UIColor(red: 0.302, green: 0.278, blue: 0.541, alpha: 1) |
| Flutter / Compose | Color(0xFF4D478A) |
| Android XML | #4D478A |

## 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.13:1
- Contrast with black: 2.58:1

## Tints

#4d478a, #5c5996, #6c6aa2, #7d7cae, #8e8eba, #a0a0c5, #b2b3d1, #c5c5dd, #d8d8e8, #ebecf4

## Shades

#4d478a, #423d77, #373265, #2c2853, #221f42, #181632, #0f0d22, #070614, #020207, #000001

## Tones

#4d478a, #4d4985, #4d4a7f, #4e4b7a, #4e4d74, #4f4e6f, #4f4f69, #505063, #50505e, #515158

## Harmonies

- Complementary: #4d478a, #5b5400
- Split: #4d478a, #734700, #365e1a
- Analogous: #4d478a, #24528c, #683d7a
- Triadic: #4d478a, #803b17, #006443
- Tetradic: #4d478a, #7a365f, #5b5400, #006443
- Square: #4d478a, #82353e, #5b5400, #006162
- Monochromatic: #4d478a, #150342, #2f2665, #6e6ab0, #918ed7

## Questions about #4d478a

### What color is #4d478a?

#4d478a is soft dark indigo. The closest named color is Moonlight Sonata. In RGB it is rgb(77, 71, 138), in HSL hsl(245.37, 32.06%, 40.98%) and in OKLCH oklch(43.758% 0.10758 285.111).

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

The complementary color of #4d478a is #5b5400. For a calmer combination use the analogous colors #24528c and #683d7a. The triadic partners are #803b17 and #006443.

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

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

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

#4d478a is a cool color. In OKLCH its hue is 285 degrees, its lightness 43.8% and its chroma 0.108.
