# #4d428b color: Moonlight Sonata

#4d428b is rgb(77, 66, 139) in RGB and oklch(42.84% 0.11684 287.317) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/4d428b

## Formats

| Format | Value |
| --- | --- |
| HEX | #4d428b |
| RGB | rgb(77, 66, 139) |
| HSL | hsl(249.04, 35.61%, 40.2%) |
| HSB / HSV | hsv(249.04 52.52% 54.51%) |
| HWB | hwb(249.04 25.88% 45.49%) |
| CMYK | cmyk(45% 53% 0% 45%) |
| Lab | lab(32.08 19.79 -39.83) |
| LCH | lch(32.08 44.48 296.42) |
| OKLab | oklab(42.84% 0.03478 -0.11154) |
| OKLCH | oklch(42.84% 0.11684 287.317) |
| Display P3 | color(display-p3 0.29484 0.26039 0.52741) |
| Rec. 2020 | color(rec2020 0.24479 0.20633 0.47607) |
| Adobe RGB | color(a98-rgb 0.2957 0.26629 0.53221) |
| ProPhoto RGB | color(prophoto-rgb 0.26815 0.21366 0.44317) |
| Linear sRGB | color(srgb-linear 0.07421 0.05448 0.25818) |
| XYZ D65 | color(xyz-d65 0.09668 0.07338 0.25334) |
| XYZ D50 | color(xyz-d50 0.09029 0.07122 0.19069) |
| SwiftUI | Color(red: 0.302, green: 0.259, blue: 0.545) |
| UIKit | UIColor(red: 0.302, green: 0.259, blue: 0.545, alpha: 1) |
| Flutter / Compose | Color(0xFF4D428B) |
| Android XML | #4D428B |

## Facts

- Closest name: Moonlight Sonata
- Hue family: Violet, soft dark violet
- Closest Tailwind class: blue-900
- Gamut: Inside sRGB: displays the same on any screen.
- Contrast with white: 8.51:1
- Contrast with black: 2.47:1

## Tints

#4d428b, #5c5497, #6c66a3, #7d79af, #8e8bba, #a09ec6, #b2b1d2, #c5c4dd, #d8d7e8, #ebebf4

## Shades

#4d428b, #423878, #372f66, #2c2554, #221c43, #181432, #0f0b23, #070514, #020107, #000001

## Tones

#4d428b, #4d4485, #4d467f, #4d487a, #4d4974, #4d4a6e, #4d4c68, #4e4d62, #4e4e5c, #4f4e56

## Harmonies

- Complementary: #4d428b, #575200
- Split: #4d428b, #704500, #2c5d13
- Analogous: #4d428b, #204e8e, #693779
- Triadic: #4d428b, #803602, #006243
- Tetradic: #4d428b, #7b305b, #575200, #006243
- Square: #4d428b, #832e37, #575200, #005e61
- Monochromatic: #4d428b, #160043, #2f2066, #6e65b1, #9189d9

## Questions about #4d428b

### What color is #4d428b?

#4d428b is soft dark violet. The closest named color is Moonlight Sonata. In RGB it is rgb(77, 66, 139), in HSL hsl(249.04, 35.61%, 40.2%) and in OKLCH oklch(42.84% 0.11684 287.317).

### What colors go well with #4d428b?

The complementary color of #4d428b is #575200. For a calmer combination use the analogous colors #204e8e and #693779. The triadic partners are #803602 and #006243.

### Is white or black text more readable on #4d428b?

White text reads better on #4d428b: white gives a contrast ratio of 8.51:1 and black gives 2.47:1. WCAG AA asks for at least 4.5:1 for body text.

### Is #4d428b a warm or cool color?

#4d428b is a cool color. In OKLCH its hue is 287 degrees, its lightness 42.8% and its chroma 0.117.
