Skip to content
Kolorvia
#1f315d

Color #1f315d

A moderately saturated dark blue.

Conversions

HEX
#1f315d
RGB
rgb(31, 49, 93)
HSL
hsl(222.6, 50%, 24.3%)
HSV / HSB
hsv(222.6, 66.7%, 36.5%)
CMYK
cmyk(66.7%, 47.3%, 0%, 63.5%)
LAB
lab(21.12, 8.49, -28.56)
LCH
lch(21.12, 29.8, 286.56)
OKLCH
oklch(32.3%, 0.0818, 265.37)
HWB
hwb(222.6, 12.2%, 63.5%)

Harmony colors

Complementary

#5d4b1f

Analogous

#1f505d
#1f315d
#2c1f5d

Triadic

#1f315d
#5d1f31
#315d1f

Split-complementary

#1f315d
#5d2c1f
#505d1f

Tetradic

#1f315d
#4b1f5d
#5d4b1f
#315d1f

Square

#1f315d
#5d1f50
#5d4b1f
#1f5d2c

Shades

Color #1f315d mixed toward black.

#1a294d
#15213e
#0f182e
#0a101f
#05080f

Tints

Color #1f315d mixed toward white.

#2f4a8d
#3f64bd
#6e8acf
#9eb1df
#cfd8ef

Tones

Color #1f315d mixed toward gray.

#243358
#293553
#2e374d
#343a48
#393c43

Accessibility

Aa White text on this color
12.68:1
Aa Black text on this color
1.66:1

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

Under color vision deficiencies

Protanopia

#282855 · ΔE 5.1

Deuteranopia

#272553 · ΔE 5.9

Tritanopia

#204e4c · ΔE 24.4

Achromatopsia

#333333 · ΔE 18.3

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

Code

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

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

#1f315d (#1f315d) is rgb(31, 49, 93) in RGB.

No, #1f315d is not web-safe. The nearest web-safe colors are among its tones and shades below.

Related tools

Build something with this color

Generate a full palette from #1f315d, 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.