# #40508d color: Demon Blue

#40508d is rgb(64, 80, 141) in RGB and oklch(44.845% 0.10182 270.763) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/40508d

## Formats

| Format | Value |
| --- | --- |
| HEX | #40508d |
| RGB | rgb(64, 80, 141) |
| HSL | hsl(227.53, 37.56%, 40.2%) |
| HSB / HSV | hsv(227.53 54.61% 55.29%) |
| HWB | hwb(227.53 25.1% 44.71%) |
| CMYK | cmyk(55% 43% 0% 45%) |
| Lab | lab(35.02 8.05 -36.47) |
| LCH | lch(35.02 37.35 282.44) |
| OKLab | oklab(44.845% 0.00136 -0.10181) |
| OKLCH | oklch(44.845% 0.10182 270.763) |
| Display P3 | color(display-p3 0.26341 0.31188 0.53631) |
| Rec. 2020 | color(rec2020 0.23316 0.25415 0.48602) |
| Adobe RGB | color(a98-rgb 0.27722 0.31752 0.54074) |
| ProPhoto RGB | color(prophoto-rgb 0.26415 0.25024 0.45342) |
| Linear sRGB | color(srgb-linear 0.05127 0.08022 0.26636) |
| XYZ D65 | color(xyz-d65 0.0979 0.0875 0.26373) |
| XYZ D50 | color(xyz-d50 0.09136 0.08506 0.19871) |
| SwiftUI | Color(red: 0.251, green: 0.314, blue: 0.553) |
| UIKit | UIColor(red: 0.251, green: 0.314, blue: 0.553, alpha: 1) |
| Flutter / Compose | Color(0xFF40508D) |
| Android XML | #40508D |

## Facts

- Closest name: Demon Blue
- Hue family: Indigo, muted dark indigo
- Closest Tailwind class: sky-800
- Gamut: Inside sRGB: displays the same on any screen.
- Contrast with white: 7.64:1
- Contrast with black: 2.75:1

## Tints

#40508d, #516199, #6271a4, #7482b0, #8793bb, #9aa5c7, #adb6d2, #c1c8dd, #d5dae9, #eaedf4

## Shades

#40508d, #36447a, #2d3967, #242e55, #1b2444, #131a33, #0b1023, #050714, #010207, #000001

## Tones

#40508d, #425188, #445282, #46527d, #485377, #4a5472, #4c546c, #4e5466, #505461, #53555b

## Harmonies

- Complementary: #40508d, #6a5100
- Split: #40508d, #7c4505, #4d5d0b
- Analogous: #40508d, #065a87, #5f4684
- Triadic: #40508d, #843c30, #1f6436
- Tetradic: #40508d, #743e6f, #6a5100, #1f6436
- Square: #40508d, #813a52, #6a5100, #006658
- Monochromatic: #40508d, #0a0d45, #222f68, #6073b3, #8397da

## Questions about #40508d

### What color is #40508d?

#40508d is muted dark indigo. The closest named color is Demon Blue. In RGB it is rgb(64, 80, 141), in HSL hsl(227.53, 37.56%, 40.2%) and in OKLCH oklch(44.845% 0.10182 270.763).

### What colors go well with #40508d?

The complementary color of #40508d is #6a5100. For a calmer combination use the analogous colors #065a87 and #5f4684. The triadic partners are #843c30 and #1f6436.

### Is white or black text more readable on #40508d?

White text reads better on #40508d: white gives a contrast ratio of 7.64:1 and black gives 2.75:1. WCAG AA asks for at least 4.5:1 for body text.

### Is #40508d a warm or cool color?

#40508d is a cool color. In OKLCH its hue is 271 degrees, its lightness 44.8% and its chroma 0.102.
