# #514a8c color: Moonlight Sonata

#514a8c is rgb(81, 74, 140) in RGB and oklch(44.842% 0.10552 286.168) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/514a8c

## Formats

| Format | Value |
| --- | --- |
| HEX | #514a8c |
| RGB | rgb(81, 74, 140) |
| HSL | hsl(246.36, 30.84%, 41.96%) |
| HSB / HSV | hsv(246.36 47.14% 54.9%) |
| HWB | hwb(246.36 29.02% 45.1%) |
| CMYK | cmyk(42% 47% 0% 45%) |
| Lab | lab(34.66 16.37 -36.32) |
| LCH | lch(34.66 39.84 294.26) |
| OKLab | oklab(44.842% 0.02938 -0.10134) |
| OKLCH | oklch(44.842% 0.10552 286.168) |
| Display P3 | color(display-p3 0.31298 0.29116 0.53228) |
| Rec. 2020 | color(rec2020 0.26426 0.23638 0.48151) |
| Adobe RGB | color(a98-rgb 0.31413 0.29547 0.53652) |
| ProPhoto RGB | color(prophoto-rgb 0.2829 0.23767 0.44879) |
| Linear sRGB | color(srgb-linear 0.08228 0.06848 0.26225) |
| XYZ D65 | color(xyz-d65 0.10575 0.0854 0.25903) |
| XYZ D50 | color(xyz-d50 0.09978 0.0833 0.19507) |
| SwiftUI | Color(red: 0.318, green: 0.29, blue: 0.549) |
| UIKit | UIColor(red: 0.318, green: 0.29, blue: 0.549, alpha: 1) |
| Flutter / Compose | Color(0xFF514A8C) |
| Android XML | #514A8C |

## 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.75:1
- Contrast with black: 2.71:1

## Tints

#514a8c, #605b98, #706ca3, #807eaf, #9190bb, #a3a2c6, #b4b4d2, #c6c6dd, #d9d9e8, #ececf4

## Shades

#514a8c, #453f79, #3a3567, #2f2a55, #242043, #1a1733, #100e23, #070614, #020207, #000001

## Tones

#514a8c, #514c87, #514d81, #514e7c, #525077, #525171, #53526c, #535366, #545360, #54545b

## Harmonies

- Complementary: #514a8c, #5d5800
- Split: #514a8c, #754b00, #386221
- Analogous: #514a8c, #2a558e, #6b407c
- Triadic: #514a8c, #833f1a, #006747
- Tetradic: #514a8c, #7d3a61, #5d5800, #006747
- Square: #514a8c, #853840, #5d5800, #006466
- Monochromatic: #514a8c, #180644, #332967, #726db2, #9591d9

## Questions about #514a8c

### What color is #514a8c?

#514a8c is soft dark violet. The closest named color is Moonlight Sonata. In RGB it is rgb(81, 74, 140), in HSL hsl(246.36, 30.84%, 41.96%) and in OKLCH oklch(44.842% 0.10552 286.168).

### What colors go well with #514a8c?

The complementary color of #514a8c is #5d5800. For a calmer combination use the analogous colors #2a558e and #6b407c. The triadic partners are #833f1a and #006747.

### Is white or black text more readable on #514a8c?

White text reads better on #514a8c: white gives a contrast ratio of 7.75:1 and black gives 2.71:1. WCAG AA asks for at least 4.5:1 for body text.

### Is #514a8c a warm or cool color?

#514a8c is a cool color. In OKLCH its hue is 286 degrees, its lightness 44.8% and its chroma 0.106.
