# #51498d color: Moonlight Sonata

#51498d is rgb(81, 73, 141) in RGB and oklch(44.705% 0.10858 286.522) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/51498d

## Formats

| Format | Value |
| --- | --- |
| HEX | #51498d |
| RGB | rgb(81, 73, 141) |
| HSL | hsl(247.06, 31.78%, 41.96%) |
| HSB / HSV | hsv(247.06 48.23% 55.29%) |
| HWB | hwb(247.06 28.63% 44.71%) |
| CMYK | cmyk(43% 48% 0% 45%) |
| Lab | lab(34.44 17.22 -37.28) |
| LCH | lch(34.44 41.06 294.79) |
| OKLab | oklab(44.705% 0.03088 -0.1041) |
| OKLCH | oklch(44.705% 0.10858 286.522) |
| Display P3 | color(display-p3 0.31235 0.28738 0.53586) |
| Rec. 2020 | color(rec2020 0.26343 0.23286 0.48528) |
| Adobe RGB | color(a98-rgb 0.31317 0.29181 0.54021) |
| ProPhoto RGB | color(prophoto-rgb 0.28285 0.23502 0.45229) |
| Linear sRGB | color(srgb-linear 0.08228 0.06663 0.26636) |
| XYZ D65 | color(xyz-d65 0.10583 0.08437 0.26271) |
| XYZ D50 | color(xyz-d50 0.09965 0.08222 0.19782) |
| SwiftUI | Color(red: 0.318, green: 0.286, blue: 0.553) |
| UIKit | UIColor(red: 0.318, green: 0.286, blue: 0.553, alpha: 1) |
| Flutter / Compose | Color(0xFF51498D) |
| Android XML | #51498D |

## 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.81:1
- Contrast with black: 2.69:1

## Tints

#51498d, #605a99, #706ca4, #807db0, #918fbb, #a2a1c7, #b4b3d2, #c6c6dd, #d9d9e9, #ececf4

## Shades

#51498d, #453e7a, #3a3467, #2f2a55, #242044, #1a1733, #100e23, #070614, #020207, #000001

## Tones

#51498d, #514b88, #514c82, #514e7d, #524f77, #525071, #52516c, #535266, #535360, #54545a

## Harmonies

- Complementary: #51498d, #5c5700
- Split: #51498d, #764a00, #36621f
- Analogous: #51498d, #28548f, #6c3f7c
- Triadic: #51498d, #833e16, #006747
- Tetradic: #51498d, #7e3860, #5c5700, #006747
- Square: #51498d, #86373f, #5c5700, #006466
- Monochromatic: #51498d, #180545, #332868, #726cb3, #9590da

## Questions about #51498d

### What color is #51498d?

#51498d is soft dark violet. The closest named color is Moonlight Sonata. In RGB it is rgb(81, 73, 141), in HSL hsl(247.06, 31.78%, 41.96%) and in OKLCH oklch(44.705% 0.10858 286.522).

### What colors go well with #51498d?

The complementary color of #51498d is #5c5700. For a calmer combination use the analogous colors #28548f and #6c3f7c. The triadic partners are #833e16 and #006747.

### Is white or black text more readable on #51498d?

White text reads better on #51498d: white gives a contrast ratio of 7.81:1 and black gives 2.69:1. WCAG AA asks for at least 4.5:1 for body text.

### Is #51498d a warm or cool color?

#51498d is a cool color. In OKLCH its hue is 287 degrees, its lightness 44.7% and its chroma 0.109.
