# #1f5272 color: Midnight Sonata

#1f5272 is rgb(31, 82, 114) in RGB and oklch(41.98% 0.07585 239.781) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/1f5272

## Formats

| Format | Value |
| --- | --- |
| HEX | #1f5272 |
| RGB | rgb(31, 82, 114) |
| HSL | hsl(203.13, 57.24%, 28.43%) |
| HSB / HSV | hsv(203.13 72.81% 44.71%) |
| HWB | hwb(203.13 12.16% 55.29%) |
| CMYK | cmyk(73% 28% 0% 55%) |
| Lab | lab(32.64 -8.77 -23.75) |
| LCH | lch(32.64 25.32 249.73) |
| OKLab | oklab(41.98% -0.03817 -0.06554) |
| OKLCH | oklch(41.98% 0.07585 239.781) |
| Display P3 | color(display-p3 0.1765 0.31717 0.43606) |
| Rec. 2020 | color(rec2020 0.16936 0.25437 0.38038) |
| Adobe RGB | color(a98-rgb 0.21443 0.3249 0.44052) |
| ProPhoto RGB | color(prophoto-rgb 0.20709 0.24545 0.35597) |
| Linear sRGB | color(srgb-linear 0.0137 0.08438 0.16827) |
| XYZ D65 | color(xyz-d65 0.06619 0.0754 0.17027) |
| XYZ D50 | color(xyz-d50 0.06255 0.07374 0.12854) |
| SwiftUI | Color(red: 0.122, green: 0.322, blue: 0.447) |
| UIKit | UIColor(red: 0.122, green: 0.322, blue: 0.447, alpha: 1) |
| Flutter / Compose | Color(0xFF1F5272) |
| Android XML | #1F5272 |

## Facts

- Closest name: Midnight Sonata
- Hue family: Sky blue, soft dark sky blue
- Closest Tailwind class: cyan-900
- Gamut: Inside sRGB: displays the same on any screen.
- Contrast with white: 8.37:1
- Contrast with black: 2.51:1

## Tints

#1f5272, #366280, #4c728d, #61839b, #7794a9, #8da5b7, #a3b7c5, #b9c8d4, #d0dae2, #e7edf0

## Shades

#1f5272, #194662, #143b53, #0f2f44, #0a2536, #061a28, #03111b, #01080e, #000204, #000001

## Tones

#1f5272, #26526e, #2c516b, #315167, #365164, #3a5060, #3e505c, #424f58, #464e55, #494e51

## Harmonies

- Complementary: #1f5272, #6b421e
- Split: #1f5272, #713c34, #5d4b13
- Analogous: #1f5272, #005864, #3d4a77
- Triadic: #1f5272, #6e3a4b, #48531f
- Tetradic: #1f5272, #534370, #6b421e, #48531f
- Square: #1f5272, #643d61, #6b421e, #2b5836
- Monochromatic: #1f5272, #00132c, #00314f, #427496, #6699bc

## Questions about #1f5272

### What color is #1f5272?

#1f5272 is soft dark sky blue. The closest named color is Midnight Sonata. In RGB it is rgb(31, 82, 114), in HSL hsl(203.13, 57.24%, 28.43%) and in OKLCH oklch(41.98% 0.07585 239.781).

### What colors go well with #1f5272?

The complementary color of #1f5272 is #6b421e. For a calmer combination use the analogous colors #005864 and #3d4a77. The triadic partners are #6e3a4b and #48531f.

### Is white or black text more readable on #1f5272?

White text reads better on #1f5272: white gives a contrast ratio of 8.37:1 and black gives 2.51:1. WCAG AA asks for at least 4.5:1 for body text.

### Is #1f5272 a warm or cool color?

#1f5272 is a cool color. In OKLCH its hue is 240 degrees, its lightness 42% and its chroma 0.076.
