# #2a5274 color: Midnight Sonata

#2a5274 is rgb(42, 82, 116) in RGB and oklch(42.551% 0.07269 246.246) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/2a5274

## Formats

| Format | Value |
| --- | --- |
| HEX | #2a5274 |
| RGB | rgb(42, 82, 116) |
| HSL | hsl(207.57, 46.84%, 30.98%) |
| HSB / HSV | hsv(207.57 63.79% 45.49%) |
| HWB | hwb(207.57 16.47% 54.51%) |
| CMYK | cmyk(64% 29% 0% 55%) |
| Lab | lab(33.18 -5.85 -24.11) |
| LCH | lch(33.18 24.81 256.35) |
| OKLab | oklab(42.551% -0.02928 -0.06653) |
| OKLCH | oklch(42.551% 0.07269 246.246) |
| Display P3 | color(display-p3 0.20292 0.31776 0.44363) |
| Rec. 2020 | color(rec2020 0.18591 0.2558 0.38829) |
| Adobe RGB | color(a98-rgb 0.23295 0.3249 0.44788) |
| ProPhoto RGB | color(prophoto-rgb 0.2184 0.24734 0.36312) |
| Linear sRGB | color(srgb-linear 0.02315 0.08438 0.17465) |
| XYZ D65 | color(xyz-d65 0.07124 0.07787 0.17651) |
| XYZ D50 | color(xyz-d50 0.06758 0.07623 0.13323) |
| SwiftUI | Color(red: 0.165, green: 0.322, blue: 0.455) |
| UIKit | UIColor(red: 0.165, green: 0.322, blue: 0.455, alpha: 1) |
| Flutter / Compose | Color(0xFF2A5274) |
| Android XML | #2A5274 |

## 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.21:1
- Contrast with black: 2.56:1

## Tints

#2a5274, #3e6281, #53728f, #67839d, #7b94aa, #90a5b8, #a6b7c6, #bcc8d4, #d2dae2, #e8edf1

## Shades

#2a5274, #234664, #1c3b54, #162f45, #102537, #0a1a29, #05111b, #02080f, #010205, #000001

## Tones

#2a5274, #2f5270, #33526d, #375169, #3b5165, #3e5162, #42505e, #45505a, #485056, #4b4f52

## Harmonies

- Complementary: #2a5274, #69461f
- Split: #2a5274, #713f32, #5a4e19
- Analogous: #2a5274, #095868, #444b76
- Triadic: #2a5274, #703d48, #445627
- Tetradic: #2a5274, #59446e, #69461f, #445627
- Square: #2a5274, #673f5e, #69461f, #285a3e
- Monochromatic: #2a5274, #001330, #063251, #4c7498, #6f99be

## Questions about #2a5274

### What color is #2a5274?

#2a5274 is soft dark sky blue. The closest named color is Midnight Sonata. In RGB it is rgb(42, 82, 116), in HSL hsl(207.57, 46.84%, 30.98%) and in OKLCH oklch(42.551% 0.07269 246.246).

### What colors go well with #2a5274?

The complementary color of #2a5274 is #69461f. For a calmer combination use the analogous colors #095868 and #444b76. The triadic partners are #703d48 and #445627.

### Is white or black text more readable on #2a5274?

White text reads better on #2a5274: white gives a contrast ratio of 8.21:1 and black gives 2.56:1. WCAG AA asks for at least 4.5:1 for body text.

### Is #2a5274 a warm or cool color?

#2a5274 is a cool color. In OKLCH its hue is 246 degrees, its lightness 42.6% and its chroma 0.073.
