# #1a5171 color: Midnight Sonata

#1a5171 is rgb(26, 81, 113) in RGB and oklch(41.495% 0.07766 238.538) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #1a5171 |
| RGB | rgb(26, 81, 113) |
| HSL | hsl(202.07, 62.59%, 27.25%) |
| HSB / HSV | hsv(202.07 76.99% 44.31%) |
| HWB | hwb(202.07 10.2% 55.69%) |
| CMYK | cmyk(77% 28% 0% 56%) |
| Lab | lab(32.1 -9.39 -23.99) |
| LCH | lch(32.1 25.76 248.61) |
| OKLab | oklab(41.495% -0.04053 -0.06624) |
| OKLCH | oklch(41.495% 0.07766 238.538) |
| Display P3 | color(display-p3 0.16451 0.3131 0.4321) |
| Rec. 2020 | color(rec2020 0.16106 0.25 0.3762) |
| Adobe RGB | color(a98-rgb 0.20555 0.32121 0.43674) |
| ProPhoto RGB | color(prophoto-rgb 0.20132 0.24158 0.35212) |
| Linear sRGB | color(srgb-linear 0.01033 0.08228 0.16513) |
| XYZ D65 | color(xyz-d65 0.06349 0.07296 0.16697) |
| XYZ D50 | color(xyz-d50 0.05982 0.0713 0.12605) |
| SwiftUI | Color(red: 0.102, green: 0.318, blue: 0.443) |
| UIKit | UIColor(red: 0.102, green: 0.318, blue: 0.443, alpha: 1) |
| Flutter / Compose | Color(0xFF1A5171) |
| Android XML | #1A5171 |

## 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.54:1
- Contrast with black: 2.46:1

## Tints

#1a5171, #33617f, #49728d, #5f829a, #7593a8, #8ba5b7, #a2b6c5, #b8c8d3, #d0dae2, #e7ecf0

## Shades

#1a5171, #154561, #103a52, #0c2f43, #072435, #041a27, #02101a, #01070e, #000204, #000001

## Tones

#1a5171, #22516d, #28506a, #2e5066, #334f62, #384f5f, #3c4e5b, #404e57, #444d53, #484c4f

## Harmonies

- Complementary: #1a5171, #6b401c
- Split: #1a5171, #703a33, #5d490e
- Analogous: #1a5171, #005762, #3a4976
- Triadic: #1a5171, #6d384b, #48511b
- Tetradic: #1a5171, #514270, #6b401c, #48511b
- Square: #1a5171, #633c61, #6b401c, #2a5733
- Monochromatic: #1a5171, #00122a, #00304e, #3f7395, #6298bb

## Questions about #1a5171

### What color is #1a5171?

#1a5171 is soft dark sky blue. The closest named color is Midnight Sonata. In RGB it is rgb(26, 81, 113), in HSL hsl(202.07, 62.59%, 27.25%) and in OKLCH oklch(41.495% 0.07766 238.538).

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

The complementary color of #1a5171 is #6b401c. For a calmer combination use the analogous colors #005762 and #3a4976. The triadic partners are #6d384b and #48511b.

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

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

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

#1a5171 is a cool color. In OKLCH its hue is 239 degrees, its lightness 41.5% and its chroma 0.078.
