Skip to content
Kolorvia
#1f2840

Color #1f2840

A muted very dark blue.

Conversions

HEX
#1f2840
RGB
rgb(31, 40, 64)
HSL
hsl(223.6, 34.7%, 18.6%)
HSV / HSB
hsv(223.6, 51.6%, 25.1%)
CMYK
cmyk(51.6%, 37.5%, 0%, 74.9%)
LAB
lab(16.4, 3.89, -16.48)
LCH
lch(16.4, 16.93, 283.28)
OKLCH
oklch(28.1%, 0.0462, 267.77)
HWB
hwb(223.6, 12.2%, 74.9%)

Harmony colors

Complementary

#40371f

Analogous

#1f3840
#1f2840
#261f40

Triadic

#1f2840
#401f28
#28401f

Split-complementary

#1f2840
#40261f
#38401f

Tetradic

#1f2840
#371f40
#40371f
#28401f

Square

#1f2840
#401f38
#40371f
#1f4026

Shades

Color #1f2840 mixed toward black.

#1a2135
#151b2b
#0f1420
#0a0d15
#05070b

Tints

Color #1f2840 mixed toward white.

#36456e
#4c629d
#7387bb
#a2afd2
#d0d7e8

Tones

Color #1f2840 mixed toward gray.

#22293d
#242a3a
#272c38
#2a2d35
#2d2e32

Accessibility

Aa White text on this color
14.63:1
Aa Black text on this color
1.44:1

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

Under color vision deficiencies

Protanopia

#23233b · ΔE 4.1

Deuteranopia

#23223a · ΔE 4.6

Tritanopia

#203736 · ΔE 17.6

Achromatopsia

#292929 · ΔE 12.5

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

Code

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

Related colors

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

Frequently asked questions

#1f2840 (#1f2840) is rgb(31, 40, 64) in RGB.

No, #1f2840 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 #1f2840, 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.