# #51478f color: Moonlight Sonata

#51478f is rgb(81, 71, 143) in RGB and oklch(44.442% 0.11466 287.142) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/51478f

## Formats

| Format | Value |
| --- | --- |
| HEX | #51478f |
| RGB | rgb(81, 71, 143) |
| HSL | hsl(248.33, 33.64%, 41.96%) |
| HSB / HSV | hsv(248.33 50.35% 56.08%) |
| HWB | hwb(248.33 27.84% 43.92%) |
| CMYK | cmyk(43% 50% 0% 44%) |
| Lab | lab(34.01 18.92 -39.18) |
| LCH | lch(34.01 43.51 295.77) |
| OKLab | oklab(44.442% 0.0338 -0.10957) |
| OKLCH | oklch(44.442% 0.11466 287.142) |
| Display P3 | color(display-p3 0.31111 0.27984 0.54304) |
| Rec. 2020 | color(rec2020 0.26184 0.22587 0.49286) |
| Adobe RGB | color(a98-rgb 0.31128 0.2845 0.5476) |
| ProPhoto RGB | color(prophoto-rgb 0.28281 0.2298 0.45935) |
| Linear sRGB | color(srgb-linear 0.08228 0.06301 0.27468) |
| XYZ D65 | color(xyz-d65 0.10604 0.08239 0.27019) |
| XYZ D50 | color(xyz-d50 0.09945 0.08013 0.20341) |
| SwiftUI | Color(red: 0.318, green: 0.278, blue: 0.561) |
| UIKit | UIColor(red: 0.318, green: 0.278, blue: 0.561, alpha: 1) |
| Flutter / Compose | Color(0xFF51478F) |
| Android XML | #51478F |

## 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: 7.93:1
- Contrast with black: 2.65:1

## Tints

#51478f, #60599b, #706aa6, #807cb2, #918ebd, #a2a0c8, #b4b3d3, #c6c5de, #d9d8e9, #ececf4

## Shades

#51478f, #453d7c, #3a3269, #2f2857, #241f45, #1a1634, #100d24, #070615, #020207, #000001

## Tones

#51478f, #514989, #514b84, #514c7e, #514e78, #514f72, #52506c, #525166, #535260, #53535a

## Harmonies

- Complementary: #51478f, #5c5700
- Split: #51478f, #754900, #32621a
- Analogous: #51478f, #265392, #6d3c7d
- Triadic: #51478f, #853b0d, #006746
- Tetradic: #51478f, #7f3560, #5c5700, #006746
- Square: #51478f, #88343c, #5c5700, #006366
- Monochromatic: #51478f, #190147, #33256a, #726ab5, #958edd

## Questions about #51478f

### What color is #51478f?

#51478f is soft dark violet. The closest named color is Moonlight Sonata. In RGB it is rgb(81, 71, 143), in HSL hsl(248.33, 33.64%, 41.96%) and in OKLCH oklch(44.442% 0.11466 287.142).

### What colors go well with #51478f?

The complementary color of #51478f is #5c5700. For a calmer combination use the analogous colors #265392 and #6d3c7d. The triadic partners are #853b0d and #006746.

### Is white or black text more readable on #51478f?

White text reads better on #51478f: white gives a contrast ratio of 7.93:1 and black gives 2.65:1. WCAG AA asks for at least 4.5:1 for body text.

### Is #51478f a warm or cool color?

#51478f is a cool color. In OKLCH its hue is 287 degrees, its lightness 44.4% and its chroma 0.115.
