# #2c5274 color: Midnight Sonata

#2c5274 is rgb(44, 82, 116) in RGB and oklch(42.648% 0.0716 247.335) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #2c5274 |
| RGB | rgb(44, 82, 116) |
| HSL | hsl(208.33, 45%, 31.37%) |
| HSB / HSV | hsv(208.33 62.07% 45.49%) |
| HWB | hwb(208.33 17.25% 54.51%) |
| CMYK | cmyk(62% 29% 0% 55%) |
| Lab | lab(33.28 -5.38 -23.95) |
| LCH | lch(33.28 24.54 257.35) |
| OKLab | oklab(42.648% -0.02759 -0.06607) |
| OKLCH | oklch(42.648% 0.0716 247.335) |
| Display P3 | color(display-p3 0.20813 0.31789 0.44367) |
| Rec. 2020 | color(rec2020 0.18917 0.25608 0.38834) |
| Adobe RGB | color(a98-rgb 0.23671 0.3249 0.44788) |
| ProPhoto RGB | color(prophoto-rgb 0.22041 0.24768 0.36316) |
| Linear sRGB | color(srgb-linear 0.02519 0.08438 0.17465) |
| XYZ D65 | color(xyz-d65 0.07208 0.07831 0.17655) |
| XYZ D50 | color(xyz-d50 0.06847 0.07668 0.13326) |
| SwiftUI | Color(red: 0.173, green: 0.322, blue: 0.455) |
| UIKit | UIColor(red: 0.173, green: 0.322, blue: 0.455, alpha: 1) |
| Flutter / Compose | Color(0xFF2C5274) |
| Android XML | #2C5274 |

## Facts

- Closest name: Midnight Sonata
- Hue family: Blue, soft dark blue
- Closest Tailwind class: slate-600
- Gamut: Inside sRGB: displays the same on any screen.
- Contrast with white: 8.18:1
- Contrast with black: 2.57:1

## Tints

#2c5274, #406281, #54728f, #68839d, #7c94aa, #91a5b8, #a6b7c6, #bcc8d4, #d2dae2, #e8edf1

## Shades

#2c5274, #254664, #1e3b54, #172f45, #112537, #0a1a29, #05111b, #02080f, #010205, #000001

## Tones

#2c5274, #305270, #34526d, #385169, #3c5165, #3f5162, #42515e, #46505a, #495056, #4c4f53

## Harmonies

- Complementary: #2c5274, #694720
- Split: #2c5274, #704032, #5a4f1b
- Analogous: #2c5274, #0e5868, #454b76
- Triadic: #2c5274, #703d48, #445629
- Tetradic: #2c5274, #59446d, #694720, #445629
- Square: #2c5274, #683f5d, #694720, #285b3f
- Monochromatic: #2c5274, #001330, #093251, #4e7498, #7099be

## Questions about #2c5274

### What color is #2c5274?

#2c5274 is soft dark blue. The closest named color is Midnight Sonata. In RGB it is rgb(44, 82, 116), in HSL hsl(208.33, 45%, 31.37%) and in OKLCH oklch(42.648% 0.0716 247.335).

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

The complementary color of #2c5274 is #694720. For a calmer combination use the analogous colors #0e5868 and #454b76. The triadic partners are #703d48 and #445629.

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

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

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

#2c5274 is a cool color. In OKLCH its hue is 247 degrees, its lightness 42.6% and its chroma 0.072.
