Skip to content
Kolorvia
#1f2837

Color #1f2837

A muted very dark blue.

Conversions

HEX
#1f2837
RGB
rgb(31, 40, 55)
HSL
hsl(217.5, 27.9%, 16.9%)
HSV / HSB
hsv(217.5, 43.6%, 21.6%)
CMYK
cmyk(43.6%, 27.3%, 0%, 78.4%)
LAB
lab(15.93, 0.73, -10.94)
LCH
lch(15.93, 10.96, 273.82)
OKLCH
oklch(27.5%, 0.0307, 260.45)
HWB
hwb(217.5, 12.2%, 78.4%)

Harmony colors

Complementary

#372e1f

Analogous

#1f3437
#1f2837
#221f37

Triadic

#1f2837
#371f28
#28371f

Split-complementary

#1f2837
#37221f
#34371f

Tetradic

#1f2837
#2e1f37
#372e1f
#28371f

Square

#1f2837
#371f34
#372e1f
#1f3722

Shades

Color #1f2837 mixed toward black.

#1a212e
#151b25
#10141c
#0a0d12
#050709

Tints

Color #1f2837 mixed toward white.

#394964
#526a91
#778eb3
#a5b3cc
#d2d9e6

Tones

Color #1f2837 mixed toward gray.

#212935
#232933
#252a31
#272a2f
#292b2d

Accessibility

Aa White text on this color
14.82:1
Aa Black text on this color
1.42:1

White text reads better on this background (14.82:1). That passes WCAG AAA (≥7:1) for normal-size text.

Under color vision deficiencies

Protanopia

#232334 · ΔE 5.4

Deuteranopia

#232233 · ΔE 6

Tritanopia

#203131 · ΔE 11.6

Achromatopsia

#282828 · ΔE 8.8

Left half is the original, right half is the simulated appearance. See all 8 vision types →

Code

CSS
background-color: #1f2837;
Tailwind (arbitrary value)
bg-[#1f2837]

Related colors

Cornflower Blue #6495ed
Light Steel Blue #b0c4de
Royal Blue #4169e1
Light Slate Gray #778899
Slate Gray #708090
Dodger Blue #1e90ff

Frequently asked questions

#1f2837 (#1f2837) is rgb(31, 40, 55) in RGB.

No, #1f2837 is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.

Related tools

Build something with this color

Generate a full palette from #1f2837, or check how it holds up for accessibility.

We use cookies for site preferences and, where enabled, Google Analytics and Google AdSense — which may use cookies to personalize ads based on your visits here and elsewhere. See our Privacy Policy for details. Your color tool inputs are never sent to us regardless of your choice.