# #51478e color: Moonlight Sonata

#51478e is rgb(81, 71, 142) in RGB and oklch(44.376% 0.11319 287.315) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #51478e |
| RGB | rgb(81, 71, 142) |
| HSL | hsl(248.45, 33.33%, 41.76%) |
| HSB / HSV | hsv(248.45 50% 55.69%) |
| HWB | hwb(248.45 27.84% 44.31%) |
| CMYK | cmyk(43% 50% 0% 44%) |
| Lab | lab(33.96 18.67 -38.66) |
| LCH | lch(33.96 42.93 295.78) |
| OKLab | oklab(44.376% 0.03369 -0.10806) |
| OKLCH | oklch(44.376% 0.11319 287.315) |
| Display P3 | color(display-p3 0.31111 0.27984 0.53932) |
| Rec. 2020 | color(rec2020 0.26149 0.22577 0.4889) |
| Adobe RGB | color(a98-rgb 0.31128 0.2845 0.54383) |
| ProPhoto RGB | color(prophoto-rgb 0.28191 0.22959 0.4556) |
| Linear sRGB | color(srgb-linear 0.08228 0.06301 0.2705) |
| XYZ D65 | color(xyz-d65 0.10528 0.08209 0.26622) |
| XYZ D50 | color(xyz-d50 0.09885 0.07988 0.20043) |
| SwiftUI | Color(red: 0.318, green: 0.278, blue: 0.557) |
| UIKit | UIColor(red: 0.318, green: 0.278, blue: 0.557, alpha: 1) |
| Flutter / Compose | Color(0xFF51478E) |
| Android XML | #51478E |

## 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.95:1
- Contrast with black: 2.64:1

## Tints

#51478e, #60599a, #706aa5, #807cb1, #918ebc, #a2a0c8, #b4b3d3, #c6c5de, #d9d8e9, #ececf4

## Shades

#51478e, #453d7b, #3a3268, #2f2856, #241f44, #1a1634, #100d24, #070615, #020207, #000001

## Tones

#51478e, #514988, #514b83, #514c7d, #514d77, #514f72, #52506c, #525166, #525260, #53535a

## Harmonies

- Complementary: #51478e, #5b5700
- Split: #51478e, #754900, #32611b
- Analogous: #51478e, #275391, #6c3d7c
- Triadic: #51478e, #843c0e, #006646
- Tetradic: #51478e, #7f355f, #5b5700, #006646
- Square: #51478e, #87343c, #5b5700, #006366
- Monochromatic: #51478e, #180246, #332569, #726ab4, #958edc

## Questions about #51478e

### What color is #51478e?

#51478e is soft dark violet. The closest named color is Moonlight Sonata. In RGB it is rgb(81, 71, 142), in HSL hsl(248.45, 33.33%, 41.76%) and in OKLCH oklch(44.376% 0.11319 287.315).

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

The complementary color of #51478e is #5b5700. For a calmer combination use the analogous colors #275391 and #6c3d7c. The triadic partners are #843c0e and #006646.

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

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

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

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