# #51498e color: Moonlight Sonata

#51498e is rgb(81, 73, 142) in RGB and oklch(44.77% 0.11006 286.362) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #51498e |
| RGB | rgb(81, 73, 142) |
| HSL | hsl(246.96, 32.09%, 42.16%) |
| HSB / HSV | hsv(246.96 48.59% 55.69%) |
| HWB | hwb(246.96 28.63% 44.31%) |
| CMYK | cmyk(43% 49% 0% 44%) |
| Lab | lab(34.49 17.46 -37.81) |
| LCH | lch(34.49 41.65 294.79) |
| OKLab | oklab(44.77% 0.03101 -0.10561) |
| OKLCH | oklch(44.77% 0.11006 286.362) |
| Display P3 | color(display-p3 0.31235 0.28738 0.53958) |
| Rec. 2020 | color(rec2020 0.26378 0.23296 0.48924) |
| Adobe RGB | color(a98-rgb 0.31317 0.29181 0.54397) |
| ProPhoto RGB | color(prophoto-rgb 0.28373 0.23523 0.45604) |
| Linear sRGB | color(srgb-linear 0.08228 0.06663 0.2705) |
| XYZ D65 | color(xyz-d65 0.10658 0.08467 0.26665) |
| XYZ D50 | color(xyz-d50 0.10024 0.08247 0.20078) |
| SwiftUI | Color(red: 0.318, green: 0.286, blue: 0.557) |
| UIKit | UIColor(red: 0.318, green: 0.286, blue: 0.557, alpha: 1) |
| Flutter / Compose | Color(0xFF51498E) |
| Android XML | #51498E |

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

## Tints

#51498e, #605a9a, #706ca5, #807db1, #918fbc, #a2a1c7, #b4b3d3, #c6c6de, #d9d9e9, #ececf4

## Shades

#51498e, #453e7b, #3a3468, #2f2a56, #242044, #1a1734, #100e24, #070615, #020207, #000001

## Tones

#51498e, #514b88, #514c83, #514e7d, #524f78, #525072, #52516c, #535267, #535361, #54545b

## Harmonies

- Complementary: #51498e, #5d5700
- Split: #51498e, #764a00, #36621d
- Analogous: #51498e, #275590, #6c3f7d
- Triadic: #51498e, #843d15, #006747
- Tetradic: #51498e, #7e3861, #5d5700, #006747
- Square: #51498e, #87373f, #5d5700, #006466
- Monochromatic: #51498e, #180446, #332869, #726cb4, #9590dc

## Questions about #51498e

### What color is #51498e?

#51498e is soft dark violet. The closest named color is Moonlight Sonata. In RGB it is rgb(81, 73, 142), in HSL hsl(246.96, 32.09%, 42.16%) and in OKLCH oklch(44.77% 0.11006 286.362).

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

The complementary color of #51498e is #5d5700. For a calmer combination use the analogous colors #275590 and #6c3f7d. The triadic partners are #843d15 and #006747.

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

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

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

#51498e is a cool color. In OKLCH its hue is 286 degrees, its lightness 44.8% and its chroma 0.11.
