# #31407e color: Official Violet

#31407e is rgb(49, 64, 126) in RGB and oklch(39.297% 0.10593 270.635) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/31407e

## Formats

| Format | Value |
| --- | --- |
| HEX | #31407e |
| RGB | rgb(49, 64, 126) |
| HSL | hsl(228.31, 44%, 34.31%) |
| HSB / HSV | hsv(228.31 61.11% 49.41%) |
| HWB | hwb(228.31 19.22% 50.59%) |
| CMYK | cmyk(61% 49% 0% 51%) |
| Lab | lab(28.44 9.81 -37.77) |
| LCH | lch(28.44 39.02 284.56) |
| OKLab | oklab(39.297% 0.00117 -0.10592) |
| OKLCH | oklch(39.297% 0.10593 270.635) |
| Display P3 | color(display-p3 0.20399 0.24928 0.47796) |
| Rec. 2020 | color(rec2020 0.17352 0.1904 0.42366) |
| Adobe RGB | color(a98-rgb 0.22215 0.25904 0.48339) |
| ProPhoto RGB | color(prophoto-rgb 0.21433 0.19694 0.39411) |
| Linear sRGB | color(srgb-linear 0.03071 0.05127 0.20864) |
| XYZ D65 | color(xyz-d65 0.06865 0.05826 0.20502) |
| XYZ D50 | color(xyz-d50 0.06299 0.05624 0.15439) |
| SwiftUI | Color(red: 0.192, green: 0.251, blue: 0.494) |
| UIKit | UIColor(red: 0.192, green: 0.251, blue: 0.494, alpha: 1) |
| Flutter / Compose | Color(0xFF31407E) |
| Android XML | #31407E |

## Facts

- Closest name: Official Violet
- Hue family: Indigo, soft dark indigo
- Closest Tailwind class: blue-900
- Gamut: Inside sRGB: displays the same on any screen.
- Contrast with white: 9.7:1
- Contrast with black: 2.17:1

## Tints

#31407e, #42528b, #556498, #6877a5, #7c89b2, #919cbf, #a6afcc, #bbc3d9, #d2d7e6, #e8ebf2

## Shades

#31407e, #29366d, #222d5c, #1a244c, #131b3c, #0c132d, #060b1f, #030511, #010105, #000001

## Tones

#31407e, #334179, #354273, #37436e, #394468, #3b4463, #3d455d, #3f4557, #414552, #44464c

## Harmonies

- Complementary: #31407e, #5a4200
- Split: #31407e, #6d3500, #3e4d00
- Analogous: #31407e, #004b78, #503675
- Triadic: #31407e, #742b20, #015525
- Tetradic: #31407e, #642d60, #5a4200, #015525
- Square: #31407e, #712843, #5a4200, #005548
- Monochromatic: #31407e, #040037, #151f5a, #5062a4, #7286ca

## Questions about #31407e

### What color is #31407e?

#31407e is soft dark indigo. The closest named color is Official Violet. In RGB it is rgb(49, 64, 126), in HSL hsl(228.31, 44%, 34.31%) and in OKLCH oklch(39.297% 0.10593 270.635).

### What colors go well with #31407e?

The complementary color of #31407e is #5a4200. For a calmer combination use the analogous colors #004b78 and #503675. The triadic partners are #742b20 and #015525.

### Is white or black text more readable on #31407e?

White text reads better on #31407e: white gives a contrast ratio of 9.7:1 and black gives 2.17:1. WCAG AA asks for at least 4.5:1 for body text.

### Is #31407e a warm or cool color?

#31407e is a cool color. In OKLCH its hue is 271 degrees, its lightness 39.3% and its chroma 0.106.
