# #4f478c color: Moonlight Sonata

#4f478c is rgb(79, 71, 140) in RGB and oklch(44.065% 0.11038 286.239) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #4f478c |
| RGB | rgb(79, 71, 140) |
| HSL | hsl(246.96, 32.7%, 41.37%) |
| HSB / HSV | hsv(246.96 49.29% 54.9%) |
| HWB | hwb(246.96 27.84% 45.1%) |
| CMYK | cmyk(44% 49% 0% 45%) |
| Lab | lab(33.66 17.59 -37.92) |
| LCH | lch(33.66 41.8 294.88) |
| OKLab | oklab(44.065% 0.03087 -0.10598) |
| OKLCH | oklch(44.065% 0.11038 286.239) |
| Display P3 | color(display-p3 0.30451 0.27954 0.53182) |
| Rec. 2020 | color(rec2020 0.25578 0.22494 0.48092) |
| Adobe RGB | color(a98-rgb 0.30582 0.2845 0.53631) |
| ProPhoto RGB | color(prophoto-rgb 0.27678 0.22844 0.44804) |
| Linear sRGB | color(srgb-linear 0.07819 0.06301 0.26225) |
| XYZ D65 | color(xyz-d65 0.10211 0.08062 0.2583) |
| XYZ D50 | color(xyz-d50 0.09589 0.07846 0.19448) |
| SwiftUI | Color(red: 0.31, green: 0.278, blue: 0.549) |
| UIKit | UIColor(red: 0.31, green: 0.278, blue: 0.549, alpha: 1) |
| Flutter / Compose | Color(0xFF4F478C) |
| Android XML | #4F478C |

## 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.04:1
- Contrast with black: 2.61:1

## Tints

#4f478c, #5e5998, #6e6aa4, #7f7caf, #908ebb, #a1a0c6, #b3b3d2, #c6c5dd, #d8d8e9, #ececf4

## Shades

#4f478c, #443d79, #383267, #2e2855, #231f43, #191633, #100d23, #070614, #020207, #000001

## Tones

#4f478c, #4f4986, #4f4a81, #4f4c7b, #504d76, #504e70, #504f6a, #515065, #51515f, #525259

## Harmonies

- Complementary: #4f478c, #5b5500
- Split: #4f478c, #744800, #34601b
- Analogous: #4f478c, #25538e, #6a3d7b
- Triadic: #4f478c, #823b13, #006545
- Tetradic: #4f478c, #7c365f, #5b5500, #006545
- Square: #4f478c, #85343d, #5b5500, #006264
- Monochromatic: #4f478c, #170244, #312667, #706ab2, #938ed9

## Questions about #4f478c

### What color is #4f478c?

#4f478c is soft dark violet. The closest named color is Moonlight Sonata. In RGB it is rgb(79, 71, 140), in HSL hsl(246.96, 32.7%, 41.37%) and in OKLCH oklch(44.065% 0.11038 286.239).

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

The complementary color of #4f478c is #5b5500. For a calmer combination use the analogous colors #25538e and #6a3d7b. The triadic partners are #823b13 and #006545.

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

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

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

#4f478c is a cool color. In OKLCH its hue is 286 degrees, its lightness 44.1% and its chroma 0.11.
