# #2a5798 color: Cyan Cobalt Blue

#2a5798 is rgb(42, 87, 152) in RGB and oklch(45.96% 0.11718 257.837) in OKLCH. Every other format, shade and contrast value is below.

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

## Formats

| Format | Value |
| --- | --- |
| HEX | #2a5798 |
| RGB | rgb(42, 87, 152) |
| HSL | hsl(215.45, 56.7%, 38.04%) |
| HSB / HSV | hsv(215.45 72.37% 59.61%) |
| HWB | hwb(215.45 16.47% 40.39%) |
| CMYK | cmyk(72% 43% 0% 40%) |
| Lab | lab(36.46 2.11 -40.91) |
| LCH | lch(36.46 40.96 272.95) |
| OKLab | oklab(45.96% -0.02469 -0.11455) |
| OKLCH | oklch(45.96% 0.11718 257.837) |
| Display P3 | color(display-p3 0.20895 0.337 0.57775) |
| Rec. 2020 | color(rec2020 0.2095 0.27786 0.53047) |
| Adobe RGB | color(a98-rgb 0.24091 0.3434 0.58277) |
| ProPhoto RGB | color(prophoto-rgb 0.25895 0.26944 0.49629) |
| Linear sRGB | color(srgb-linear 0.02315 0.09531 0.31399) |
| XYZ D65 | color(xyz-d65 0.1003 0.09575 0.31026) |
| XYZ D50 | color(xyz-d50 0.09173 0.09251 0.23379) |
| SwiftUI | Color(red: 0.165, green: 0.341, blue: 0.596) |
| UIKit | UIColor(red: 0.165, green: 0.341, blue: 0.596, alpha: 1) |
| Flutter / Compose | Color(0xFF2A5798) |
| Android XML | #2A5798 |

## Facts

- Closest name: Cyan Cobalt Blue
- Hue family: Blue, soft dark blue
- Closest Tailwind class: sky-800
- Gamut: Inside sRGB: displays the same on any screen.
- Contrast with white: 7.2:1
- Contrast with black: 2.92:1

## Tints

#2a5798, #3f67a3, #5378ae, #6788b8, #7c99c3, #91a9cd, #a6bad7, #bccbe1, #d2dceb, #e8eef5

## Shades

#2a5798, #234b84, #1c3e70, #16335c, #10274a, #0a1c38, #051227, #020817, #010308, #000001

## Tones

#2a5798, #305892, #35588c, #3a5985, #3f597f, #435979, #485972, #4c596c, #505965, #54585f

## Harmonies

- Complementary: #2a5798, #7a4d00
- Split: #2a5798, #8a3f0e, #5f5b00
- Analogous: #2a5798, #006288, #564b95
- Triadic: #2a5798, #8d373f, #34661e
- Tetradic: #2a5798, #724082, #7a4d00, #34661e
- Square: #2a5798, #853863, #7a4d00, #006b4b
- Monochromatic: #2a5798, #00124f, #053573, #4c7bbf, #6fa0e7

## Questions about #2a5798

### What color is #2a5798?

#2a5798 is soft dark blue. The closest named color is Cyan Cobalt Blue. In RGB it is rgb(42, 87, 152), in HSL hsl(215.45, 56.7%, 38.04%) and in OKLCH oklch(45.96% 0.11718 257.837).

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

The complementary color of #2a5798 is #7a4d00. For a calmer combination use the analogous colors #006288 and #564b95. The triadic partners are #8d373f and #34661e.

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

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

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

#2a5798 is a cool color. In OKLCH its hue is 258 degrees, its lightness 46% and its chroma 0.117.
