#1F273B color

#1F273B rgb(31, 39, 59)
Shades of blue

The hex color #1F273B is a very dark, desaturated blue.

In the RGB color model it is made of 12.2% red, 15.3% green and 23.1% blue (31, 39, 59).

Its hue angle is 223°, with 31% saturation and 18% lightness. For print, the CMYK equivalent is 47% cyan, 34% magenta, 0% yellow and 77% black.

The closest named color is Midnight Express (#21263A), a difference of 1.4 ΔE, which is barely visible.

White text is the more readable choice on this background (contrast 14.88:1).

#1F273B color codes

HEX#1F273B
RGBrgb(31, 39, 59)
RGB percentrgb(12.2%, 15.3%, 23.1%)
HSLhsl(223, 31%, 18%)
HSV / HSBhsv(223, 47%, 23%)
CMYKcmyk(47%, 34%, 0%, 77%)
CIE LABlab(15.79, 2.83, -13.95)
CIE LCHlch(15.79, 14.23, 281.46)
CIE XYZxyz(2.08, 2.058, 4.424)
Decimal2041659
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #1F273B, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #1F273BRatioAAAAAAA large
Sample text1.41:1FailFailFail
Sample text14.88:1PassPassPass
#1F273B as text onRatioAAAAAAA large
Sample text14.88:1PassPassPass
Sample text1.41:1FailFailFail

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #1F273B looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #1f273b; }
.text { color: #1f273b; }
.border { border: 2px solid #1f273b; }
.transparent { background-color: rgb(31 39 59 / 50%); }
.gradient { background: linear-gradient(to right, #1f273b, #251f3b); }
Background
Text color
Border

Similar colors

Closest common color name: Oxford Blue.

Questions

What color is #1F273B?
#1F273B is a very dark, desaturated blue, closest to the named color Midnight Express. It belongs to the blue family of colors.
What is the RGB value of #1F273B?
The RGB value is 31, 39, 59: 31 red, 39 green and 59 blue on a 0 to 255 scale.
What is the complementary color of #1F273B?
The complementary color is #3B331F, found by rotating the hue 180° on the color wheel.
Is black or white text better on #1F273B?
White text. Black text has a contrast ratio of 1.41:1 and white text 14.88:1. WCAG asks for at least 4.5:1 for normal text.